Package org.graylog2.cluster.nodes
Class NodeDto
java.lang.Object
org.graylog2.cluster.nodes.NodeDto
- All Implemented Interfaces:
Node,MongoEntity
- Direct Known Subclasses:
DataNodeDto,ServerNodeDto
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NodeDto
public NodeDto()
-
-
Method Details
-
id
Description copied from interface:MongoEntityID of the entity. Will be stored as field "_id" with type ObjectId in MongoDB.- Specified by:
idin interfaceMongoEntity- Returns:
- Hex string representation of the entity's ID
-
getObjectId
-
getId
-
getNodeId
-
getTransportAddress
- Specified by:
getTransportAddressin interfaceNode
-
getLastSeen
@Nullable public abstract org.joda.time.DateTime getLastSeen()- Specified by:
getLastSeenin interfaceNode
-
getHostname
- Specified by:
getHostnamein interfaceNode
-
isLeader
public abstract 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. -
getShortNodeId
- Specified by:
getShortNodeIdin interfaceNode
-
toEntityParameters
-