Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public class DatanodeDetails extends NodeImpl implements
* DataNode's unique identifier in the cluster.
*/
private final UUID uuid;
private final String uuidString;

private String ipAddress;
private String hostName;
Expand Down Expand Up @@ -77,6 +78,7 @@ private DatanodeDetails(UUID uuid, String ipAddress, String hostName,
String version, long setupTime, String revision, String buildDate) {
super(hostName, networkLocation, NetConstants.NODE_COST_DEFAULT);
this.uuid = uuid;
this.uuidString = uuid.toString();
this.ipAddress = ipAddress;
this.hostName = hostName;
this.ports = ports;
Expand All @@ -91,6 +93,7 @@ public DatanodeDetails(DatanodeDetails datanodeDetails) {
super(datanodeDetails.getHostName(), datanodeDetails.getNetworkLocation(),
datanodeDetails.getCost());
this.uuid = datanodeDetails.uuid;
this.uuidString = uuid.toString();
this.ipAddress = datanodeDetails.ipAddress;
this.hostName = datanodeDetails.hostName;
this.ports = datanodeDetails.ports;
Expand All @@ -117,7 +120,7 @@ public UUID getUuid() {
* @return UUID of DataNode
*/
public String getUuidString() {
return uuid.toString();
return uuidString;
}

/**
Expand Down