public interface ClusterNode
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_ADD |
static int |
ACTION_CHK |
static int |
ACTION_DEL |
static int |
ACTION_IGR |
static int |
ACTION_MOD |
static int |
ACTION_OVR |
static int |
ACTION_VOTE |
static int |
DEBUG_ALL |
static int |
DEBUG_CHECK |
static int |
DEBUG_CLOSE |
static int |
DEBUG_EXAM |
static int |
DEBUG_HBEAT |
static int |
DEBUG_INIT |
static int |
DEBUG_NONE |
static int |
DEBUG_RELAY |
static int |
HB_ECOUNT |
static int |
HB_ETIME |
static int |
HB_PCOUNT |
static int |
HB_PTIME |
static int |
HB_SIZE |
static int |
HB_TYPE |
static int |
NODE_DOWN |
static int |
NODE_NEW |
static int |
NODE_RUNNING |
static int |
NODE_STANDBY |
static int |
NODE_TIMEOUT |
static int |
RCVR_COMM |
static int |
RCVR_JMS |
static int |
RCVR_NONE |
static int |
RCVR_TCP |
static int |
RCVR_UDP |
Modifier and Type | Method and Description |
---|---|
void |
close()
closes the node and all resources
|
int |
getDebug()
returns the debug mode of the node
|
int |
getRole()
returns the role of the node
|
int |
getSize()
returns the size of the cluster
|
int |
getStatus()
returns the status of the node
|
int |
getTimeout()
returns the sessionTimeout of the node
|
java.lang.String |
getURI()
returns the URI of the node
|
boolean |
isMaster() |
int |
relay(Event data,
int waitTime)
It is the API to for application to send data to the cluster
asynchronously.
|
void |
setDebug(int mode)
sets the debug mode of the node
|
void |
start(XQueue out,
int begin,
int len)
It starts the cluster node with partitioned XQueue as the escalation
channel, and supervises the cluster.
|
static final int NODE_NEW
static final int NODE_RUNNING
static final int NODE_STANDBY
static final int NODE_TIMEOUT
static final int NODE_DOWN
static final int RCVR_NONE
static final int RCVR_COMM
static final int RCVR_UDP
static final int RCVR_TCP
static final int RCVR_JMS
static final int HB_SIZE
static final int HB_TYPE
static final int HB_PCOUNT
static final int HB_ECOUNT
static final int HB_PTIME
static final int HB_ETIME
static final int ACTION_MOD
static final int ACTION_ADD
static final int ACTION_DEL
static final int ACTION_OVR
static final int ACTION_IGR
static final int ACTION_CHK
static final int ACTION_VOTE
static final int DEBUG_NONE
static final int DEBUG_INIT
static final int DEBUG_EXAM
static final int DEBUG_CHECK
static final int DEBUG_RELAY
static final int DEBUG_CLOSE
static final int DEBUG_HBEAT
static final int DEBUG_ALL
void start(XQueue out, int begin, int len)
int relay(Event data, int waitTime)
void close()
boolean isMaster()
int getRole()
int getStatus()
int getTimeout()
java.lang.String getURI()
int getSize()
int getDebug()
void setDebug(int mode)