Package org.graylog2.cluster.nodes
Interface NodeService<T extends NodeDto>
- All Known Implementing Classes:
AbstractNodeService,DataNodeClusterService,ServerNodeClusterService
public interface NodeService<T extends NodeDto>
-
Method Summary
Modifier and TypeMethodDescriptionbyNodeIds(Collection<String> nodeIds) voidbooleanbooleanisOnlyLeader(NodeId nodeIde) voidmarkAsAlive(NodeDto dto) voidSets the last seen date of the node, additionally updating the settings.booleanregisterServer(NodeDto dto) void
-
Method Details
-
registerServer
-
byNodeId
- Throws:
NodeNotFoundException
-
byNodeId
- Throws:
NodeNotFoundException
-
byNodeIds
-
allActive
-
dropOutdated
void dropOutdated() -
markAsAlive
- Throws:
NodeNotFoundException
-
isOnlyLeader
-
isAnyLeaderPresent
boolean isAnyLeaderPresent() -
ping
Sets the last seen date of the node, additionally updating the settings. If the node hasn't been registered yet, it will be registered.- Parameters:
dto- Dto of the node to be marked as alive
-
update
-