Package org.graylog2.cluster
Interface NodeService
- All Superinterfaces:
PersistedService
- All Known Implementing Classes:
NodeServiceImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
isOnlyLeader
(NodeId nodeIde) void
markAsAlive
(Node node, boolean isLeader, String restTransportAddress) void
markAsAlive
(Node node, boolean isLeader, URI restTransportAddress) registerServer
(String nodeId, boolean isLeader, URI httpPublishUri, String hostname) Methods inherited from interface org.graylog2.plugin.database.PersistedService
destroy, destroyAll, save, saveWithoutValidation, validate, validate, validate
-
Method Details
-
registerServer
-
byNodeId
- Throws:
NodeNotFoundException
-
byNodeId
- Throws:
NodeNotFoundException
-
allActive
-
allActive
-
dropOutdated
void dropOutdated() -
markAsAlive
-
markAsAlive
-
isOnlyLeader
-
isAnyLeaderPresent
boolean isAnyLeaderPresent()
-