Package org.graylog2.cluster.nodes
Class AbstractNode<DTO extends NodeDto>
java.lang.Object
org.graylog2.database.PersistedImpl
org.graylog2.cluster.nodes.AbstractNode<DTO>
- Direct Known Subclasses:
DataNodeEntity,ServerNodeEntity
-
Field Summary
Fields inherited from class org.graylog2.database.PersistedImpl
fields, id -
Constructor Summary
ConstructorsConstructorDescriptionAbstractNode(Map<String, Object> fields) AbstractNode(org.bson.types.ObjectId id, Map<String, Object> fields) -
Method Summary
Methods inherited from class org.graylog2.database.PersistedImpl
asMap, equals, getFields, getId, getObjectId, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.graylog2.cluster.Node
getShortNodeId, getTitle, isMaster
-
Constructor Details
-
AbstractNode
-
AbstractNode
-
-
Method Details
-
getNodeId
-
isLeader
public boolean isLeader()Description copied from interface:NodeReturns 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:
getTransportAddressin interfaceNode
-
getLastSeen
public org.joda.time.DateTime getLastSeen()- Specified by:
getLastSeenin interfaceNode
-
getHostname
- Specified by:
getHostnamein interfaceNode
-
getValidations
- Specified by:
getValidationsin interfacePersisted
-
getEmbeddedValidations
- Specified by:
getEmbeddedValidationsin interfacePersisted
-
toString
- Overrides:
toStringin classPersistedImpl
-
toDto
-