public class Node extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Node.Builder
Node builder.
|
static class |
Node.State
Represents the operational state of the instance.
|
static class |
Node.Type
Node type.
|
| Modifier and Type | Method and Description |
|---|---|
static Node.Builder |
builder()
Returns a new node builder with no ID.
|
static Node.Builder |
builder(NodeId nodeId)
Returns a new node builder.
|
static Node.Builder |
builder(String nodeId)
Returns a new node builder.
|
static Node |
client(NodeId nodeId,
io.atomix.messaging.Endpoint endpoint)
Returns a new client node.
|
static Node |
data(NodeId nodeId,
io.atomix.messaging.Endpoint endpoint)
Returns a new data node.
|
io.atomix.messaging.Endpoint |
endpoint()
Returns the node endpoint.
|
boolean |
equals(Object object) |
Node.State |
getState()
Returns the node state.
|
int |
hashCode() |
NodeId |
id()
Returns the instance identifier.
|
String |
toString() |
Node.Type |
type()
Returns the node type.
|
public static Node.Builder builder()
public static Node.Builder builder(String nodeId)
nodeId - the node identifierNullPointerException - if the node ID is nullpublic static Node.Builder builder(NodeId nodeId)
nodeId - the node identifierNullPointerException - if the node ID is nullpublic static Node data(NodeId nodeId, io.atomix.messaging.Endpoint endpoint)
nodeId - the data node IDendpoint - the data node endpointpublic static Node client(NodeId nodeId, io.atomix.messaging.Endpoint endpoint)
nodeId - the client node IDendpoint - the client node endpointpublic NodeId id()
public Node.Type type()
public io.atomix.messaging.Endpoint endpoint()
public Node.State getState()
Copyright © 2013–2018. All rights reserved.