public class NodeInfo
extends java.lang.Object
Constructor and Description |
---|
NodeInfo(java.lang.String publicKey,
int port,
NetworkType networkIdentifier,
int version,
java.util.List<RoleType> roles,
java.lang.String host,
java.lang.String friendlyName,
java.lang.String networkGenerationHashSeed) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFriendlyName()
The name of the node.
|
java.lang.String |
getHost()
The IP address of the endpoint.
|
java.lang.String |
getNetworkGenerationHashSeed()
The network generation hash (block/1 generation hash)
|
NetworkType |
getNetworkIdentifier()
The network identifier.
|
int |
getPort()
The port used for the communication.
|
java.lang.String |
getPublicKey()
The public key used to identify the node.
|
java.util.List<RoleType> |
getRoles()
The roles of the application.
|
int |
getVersion()
The version of the application.
|
public NodeInfo(java.lang.String publicKey, int port, NetworkType networkIdentifier, int version, java.util.List<RoleType> roles, java.lang.String host, java.lang.String friendlyName, java.lang.String networkGenerationHashSeed)
public int getPort()
public int getVersion()
public NetworkType getNetworkIdentifier()
NetworkType
public java.lang.String getFriendlyName()
public java.lang.String getPublicKey()
public java.lang.String getHost()
public java.lang.String getNetworkGenerationHashSeed()