public final class NodeDescriptor extends java.lang.Object implements NodeDescriptor
Default node descriptor.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
id |
private static long |
serialVersionUID |
private ImmutableSet<java.lang.String> |
services |
private NodeType |
type |
Constructor and Description |
---|
NodeDescriptor(java.lang.String id,
NodeType type,
java.util.Set<java.lang.String> services) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
id()
Returns the ID of the node described in this descriptor.
|
java.util.Set<java.lang.String> |
services()
Returns the set of services running on the node described by this descriptor.
|
java.lang.String |
toString() |
NodeType |
type()
Returns the type of the node described in this descriptor.
|
private static final long serialVersionUID
private final java.lang.String id
private final NodeType type
private final ImmutableSet<java.lang.String> services
public NodeDescriptor(java.lang.String id, NodeType type, java.util.Set<java.lang.String> services)
public java.util.Set<java.lang.String> services()
NodeDescriptor
Returns the set of services running on the node described by this descriptor.
services
in interface NodeDescriptor
public java.lang.String id()
NodeDescriptor
Returns the ID of the node described in this descriptor.
id
in interface NodeDescriptor
public NodeType type()
NodeDescriptor
Returns the type of the node described in this descriptor.
type
in interface NodeDescriptor
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(@Nullable java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object