public class NodeInfo extends Object
Node ID, data center name, and node group name are all as configured in the
MonitoringCenter.
The IP addresses in are auto-detected on a best effort basis via introspecting the available instances of
NetworkInterface. As such, the load balancer IP address is searched for in the loopback network interface.
| Modifier and Type | Method and Description |
|---|---|
static NodeInfo |
create(NamingConfig namingConfig) |
static NodeInfo |
create(String datacenterName,
String nodeGroupName,
String nodeId) |
String |
getDatacenterName()
Retrieves the data center name, as specified in the MonitoringCenter configuration.
|
String |
getLoadBalancerIpAddress()
Retrieves the IP address of the load balancer, if applicable.
|
String |
getNodeGroupName()
Retrieves the node group name, as specified in the MonitoringCenter configuration.
|
String |
getNodeId()
Retrieves the node ID, as specified in the MonitoringCenter configuration.
|
String |
getPublicIpAddress()
Retrieves the public IP address of this node.
|
public static NodeInfo create(NamingConfig namingConfig)
public String getNodeId()
public String getDatacenterName()
public String getNodeGroupName()
public String getPublicIpAddress()
public String getLoadBalancerIpAddress()
Copyright © 2016–2018. All rights reserved.