public final class VirtualNodeID extends Object implements Serializable, Comparable<VirtualNodeID>
Modifier and Type | Field and Description |
---|---|
static VirtualNodeID |
MASTER
The virtual node of type
VirtualNodeType.MASTER . |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(VirtualNodeID o) |
boolean |
equals(Object obj) |
static VirtualNodeID |
forDistributedWorker(String physicalNodeID,
int offset)
Creates a distributed worker node id
|
static VirtualNodeID |
forPseudoDistributedWorker(int offset)
Creates a pseudo-distributed worker node id
|
String |
getID()
Returns the unique id.
|
int |
getOffset()
Returns the offset within the physical node.
|
String |
getPhysicalNodeID()
Returns the physical node on which this virtual node resides.
|
VirtualNodeType |
getType()
Returns the type of this node
|
int |
hashCode() |
String |
toString() |
public static final VirtualNodeID MASTER
VirtualNodeType.MASTER
. Has no physical node id or offset.public static VirtualNodeID forPseudoDistributedWorker(int offset)
offset
- the offsetpublic static VirtualNodeID forDistributedWorker(String physicalNodeID, int offset)
physicalNodeID
- the worker physical node idoffset
- the offsetpublic String getID()
client
embedded
master-physicalid
worker-physicalid-offset
public VirtualNodeType getType()
public String getPhysicalNodeID()
public int getOffset()
public int compareTo(VirtualNodeID o)
compareTo
in interface Comparable<VirtualNodeID>
Copyright © 2019 Actian Corporation. All rights reserved.