public interface NodeService extends PersistedService
| Modifier and Type | Method and Description |
|---|---|
Map<String,Node> |
allActive() |
Map<String,Node> |
allActive(Node.Type type) |
Node |
byNodeId(NodeId nodeId) |
Node |
byNodeId(String nodeId) |
void |
dropOutdated() |
boolean |
isAnyMasterPresent() |
boolean |
isOnlyMaster(NodeId nodeIde) |
void |
markAsAlive(Node node,
boolean isMaster,
String restTransportAddress) |
void |
markAsAlive(Node node,
boolean isMaster,
URI restTransportAddress) |
String |
registerServer(String nodeId,
boolean isMaster,
URI restTransportUri,
String hostname) |
destroy, destroyAll, save, saveWithoutValidation, validate, validate, validateString registerServer(String nodeId, boolean isMaster, URI restTransportUri, String hostname)
Node byNodeId(String nodeId) throws NodeNotFoundException
NodeNotFoundExceptionNode byNodeId(NodeId nodeId) throws NodeNotFoundException
NodeNotFoundExceptionvoid dropOutdated()
boolean isOnlyMaster(NodeId nodeIde)
boolean isAnyMasterPresent()
Copyright © 2012-2016 Graylog, Inc.. All Rights Reserved.