public class NodeInfo extends Object
| Constructor and Description |
|---|
NodeInfo(NodeConfig config) |
NodeInfo(String environment) |
NodeInfo(String environment,
String pool,
String nodeId,
String internalAddress,
InetAddress bindIp,
String externalAddress,
String location,
String binarySpec,
String configSpec,
NodeConfig.AddressSource internalAddressSource) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBinarySpec()
Binary this JavaVM is running.
|
InetAddress |
getBindIp()
The IP address the server should use when binding a server socket.
|
String |
getConfigSpec()
Configuration this JavaVM is running.
|
String |
getEnvironment()
The environment in which this server is running.
|
String |
getExternalAddress()
The address to use when contacting this server from an external network.
|
String |
getInstanceId()
The unique id of this JavaVM instance.
|
String |
getInternalAddress()
The internal network address the server should use when announcing its location to other machines.
|
String |
getLocation()
Location of this JavaVM.
|
String |
getNodeId()
The unique id of the deployment slot in which this binary is running.
|
String |
getPool()
The pool of which this server is a member.
|
long |
getStartTime()
The time this server was started.
|
String |
toString() |
public NodeInfo(String environment)
@Inject public NodeInfo(NodeConfig config)
public NodeInfo(String environment, String pool, String nodeId, String internalAddress, InetAddress bindIp, String externalAddress, String location, String binarySpec, String configSpec, NodeConfig.AddressSource internalAddressSource)
public String getEnvironment()
public String getPool()
public String getNodeId()
public String getLocation()
public String getBinarySpec()
public String getConfigSpec()
public String getInstanceId()
public String getInternalAddress()
public String getExternalAddress()
If this is not set, the internal address is used.
public InetAddress getBindIp()
If this is not set, this will be the IPv4 any local address (e.g., 0.0.0.0).
public long getStartTime()
Copyright © 2010–2020 Airlift. All rights reserved.