Modifier and Type | Class and Description |
---|---|
static class |
H2ONode.AckAckTimeOutThread |
static class |
H2ONode.H2Okey |
Modifier and Type | Field and Description |
---|---|
boolean |
_announcedLostContact |
HeartBeat |
_heartbeat |
H2ONode.H2Okey |
_key |
long |
_last_heard_from |
boolean |
_node_healthy |
int |
_tcp_readers |
int |
_unique_idx |
static H2ONode[] |
IDX |
static java.util.concurrent.atomic.AtomicInteger |
TCPS |
Constructor and Description |
---|
H2ONode() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object o) |
void |
freeTCPSocket(java.nio.channels.SocketChannel sock) |
long |
get_max_mem() |
java.nio.channels.SocketChannel |
getTCPSocket() |
int |
hashCode() |
int |
index() |
static H2ONode |
intern(H2ONode.H2Okey key) |
static H2ONode |
intern(java.net.InetAddress ip,
int port) |
static H2ONode |
intern(int ip,
int port) |
int |
ip4() |
int |
nextTaskNum() |
H2ONode |
read(AutoBuffer ab)
Deserialize from the AutoBuffer into a pre-existing 'this' object.
|
long |
runtime()
Returns run time for this node based on last heartbeat.
|
RPC |
taskGet(int tnum) |
void |
taskPut(int tnum,
RPC rpc) |
void |
taskRemove(int tnum) |
java.util.Collection<RPC> |
tasks() |
int |
taskSize() |
java.lang.String |
toString() |
AutoBuffer |
write(AutoBuffer ab)
Serialize the 'this' object into the AutoBuffer, returning the AutoBuffer.
|
clone, frozenType, init, newInstance, toDocField, writeJSON, writeJSONFields
public int _unique_idx
public long _last_heard_from
public boolean _announcedLostContact
public volatile HeartBeat _heartbeat
public int _tcp_readers
public boolean _node_healthy
public H2ONode.H2Okey _key
public static H2ONode[] IDX
public static final java.util.concurrent.atomic.AtomicInteger TCPS
public final int ip4()
public static final H2ONode intern(H2ONode.H2Okey key)
public static final H2ONode intern(java.net.InetAddress ip, int port)
public static final H2ONode intern(int ip, int port)
public AutoBuffer write(AutoBuffer ab)
Freezable
public H2ONode read(AutoBuffer ab)
Freezable
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public int index()
public long get_max_mem()
public java.nio.channels.SocketChannel getTCPSocket() throws java.io.IOException
java.io.IOException
public void freeTCPSocket(java.nio.channels.SocketChannel sock)
public void taskPut(int tnum, RPC rpc)
public RPC taskGet(int tnum)
public void taskRemove(int tnum)
public java.util.Collection<RPC> tasks()
public int taskSize()
public int nextTaskNum()
public long runtime()