mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 06:33:06 +08:00
Add hostname to nodeinfo(#6156)
This commit is contained in:
@@ -12,14 +12,17 @@ public class NodeInfo {
|
||||
|
||||
public final String nodeAddress;
|
||||
|
||||
public final String nodeHostname;
|
||||
|
||||
public final boolean isAlive;
|
||||
|
||||
public final Map<String, Double> resources;
|
||||
|
||||
public NodeInfo(UniqueId nodeId, String nodeAddress,
|
||||
public NodeInfo(UniqueId nodeId, String nodeAddress, String nodeHostname,
|
||||
boolean isAlive, Map<String, Double> resources) {
|
||||
this.nodeId = nodeId;
|
||||
this.nodeAddress = nodeAddress;
|
||||
this.nodeHostname = nodeHostname;
|
||||
this.isAlive = isAlive;
|
||||
this.resources = resources;
|
||||
}
|
||||
@@ -28,6 +31,7 @@ public class NodeInfo {
|
||||
return "NodeInfo{"
|
||||
+ "nodeId='" + nodeId + '\''
|
||||
+ ", nodeAddress='" + nodeAddress + "\'"
|
||||
+ ", nodeHostname'" + nodeHostname + "\'"
|
||||
+ ", isAlive=" + isAlive
|
||||
+ ", resources=" + resources
|
||||
+ "}";
|
||||
|
||||
Reference in New Issue
Block a user