ClusterParams defines the interface to eXtremeDB Cluster.
public static class ClusterParams
{
public ClusterNodeParams nodes[];
public int nodeId;
public int connPoolFactor;
public int syncMsgObjects;
public int syncMsgSize;
public int clusterSendBuf;
public int clusterRecvBuf;
public int mode;
public ClusterWindow window;
public ClusterQuorumCallback quorumCallback;
public ClusterNotifying notifyCallback;
public ClusterNWParams nwParams;
public ClusterParams(ClusterNodeParams nodes[], int nodeId)
{
this.nodes = nodes;
this.nodeId = nodeId;
connPoolFactor = 50;
syncMsgObjects = 100;
syncMsgSize = 0;
clusterSendBuf = 0;
clusterRecvBuf = 0;
mode = 0;
nwParams = null;
};
};
nodes
|
The list of nodes in the cluster |
nodeId
|
The integer identifier of this cluster node |
connPoolFactor
|
An integer value specifying the size of the connection pool (as a percent of the maximum number of connections to this database) |
syncMsgObjects
|
The maximum number of objects per message during synchronization |
syncMsgSize
|
The maximum size of a message in bytes during synchronization |
clusterSendBuf
|
An integer value specifying the internal send buffer size in bytes |
clusterRecvBuf
|
An integer value specifying the internal receive buffer size in bytes |
mode
|
A cluster mode mask; a combination of CLUSTER_MODE_DEBUG_OUTPUT and
CLUSTER_MODE_EARLY_DATA_SEND |
window
|
A ClusterWindow defining the transaction window (the size of the transaction packet) |
quorumCallback
|
The ClusterQuorumCallback function to be called when a Cluster Quorum is not reached |
notifyCallback
|
The ClusterNotifying function to receive Cluster notifications |
nwParams
|
The network parameters |