Package org.graylog2.cluster
Class NodeImpl
java.lang.Object
org.graylog2.database.PersistedImpl
org.graylog2.cluster.NodeImpl
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.graylog2.database.PersistedImpl
fields, id
-
Constructor Summary
-
Method Summary
Methods inherited from class org.graylog2.database.PersistedImpl
asMap, equals, getFields, getId, getObjectId, hashCode, toString
-
Constructor Details
-
NodeImpl
-
NodeImpl
-
-
Method Details
-
getNodeId
-
isLeader
public boolean isLeader()Description copied from interface:Node
Returns the current leader status of the node. This is only informational and should be used with care. To determine if the current node is acting as leader, useLeaderElectionService.isLeader()
instead. -
getTransportAddress
- Specified by:
getTransportAddress
in interfaceNode
-
getLastSeen
public org.joda.time.DateTime getLastSeen()- Specified by:
getLastSeen
in interfaceNode
-
getShortNodeId
- Specified by:
getShortNodeId
in interfaceNode
-
getType
-
getHostname
- Specified by:
getHostname
in interfaceNode
-
getValidations
- Specified by:
getValidations
in interfacePersisted
-
getEmbeddedValidations
- Specified by:
getEmbeddedValidations
in interfacePersisted
-