Package org.graylog2.cluster
Interface NodeService
- All Superinterfaces:
PersistedService
- All Known Implementing Classes:
NodeServiceImpl
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.voidbooleanbooleanisOnlyLeader(NodeId nodeIde) voidmarkAsAlive(NodeId node, boolean isLeader, URI restTransportAddress) booleanregisterServer(String nodeId, boolean isLeader, URI httpPublishUri, String hostname) type()Methods inherited from interface org.graylog2.plugin.database.PersistedService
destroy, destroyAll, save, saveWithoutValidation, validate, validate, validate
-
Method Details
-
type
Node.Type type() -
registerServer
-
byNodeId
- Throws:
NodeNotFoundException
-
byNodeId
- Throws:
NodeNotFoundException
-
allActive
-
allActive
Deprecated.Please use theallActive(Node.Type)method and provide explicit type of the node. Otherwise, the implementation will fall back totype()and provide only nodes of this type. -
dropOutdated
void dropOutdated() -
markAsAlive
void markAsAlive(NodeId node, boolean isLeader, URI restTransportAddress) throws NodeNotFoundException - Throws:
NodeNotFoundException
-
isOnlyLeader
-
isAnyLeaderPresent
boolean isAnyLeaderPresent()
-