public interface PRCluster
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT |
static java.util.UUID |
NULL_UUID_VALUE |
static java.lang.String |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
void |
alterState(ClusterState aState)
alters the state of the cluster.
|
boolean |
checkMembershipConsistency()
An implementation-specific check of cluster membership consistency.
|
boolean |
checkNodeId(java.lang.String aNodeId)
Check to ensure that a given nodeid is actually unique in the cluster.
|
java.io.Serializable |
get(java.lang.String key)
finds data based on given key
|
java.lang.String |
getClusterAddress()
Get's this node's cluster address.
|
java.util.UUID |
getClusterId(java.lang.String aNodeId)
Fetch the Cluster UUID for the given node.
|
java.lang.String |
getClusterName()
Get the name of the Cluster.
|
ClusterExecutor |
getDistributedExecutor()
Acquire the interface for a Cluster-wide executor implementation, based on the current clustering protocol.
|
java.util.List<java.util.UUID> |
getMemberUuids()
Provide a list of the string representation for the UUIDs of all members in the cluster.
|
java.lang.String |
getNodeInfo(java.lang.String aNodeId)
Descriptive Member info
|
java.lang.String |
getPotentialClusterMembers()
Get a list of potential cluster members to be used for discovery
|
ClusterState |
getState()
fetches the state of the cluster
|
java.net.InetAddress |
getThisMembersAddress()
Provide the
InetAddress associated with this node. |
int |
getThisMembersPort()
Provide the port associated with this node.
|
java.util.UUID |
getThisMembersUuid()
Provide the unique identifier associated with the node executing this method.
|
java.lang.String |
getTransportProtocol()
name of the transport [implementation] used for Clustering
|
boolean |
hasValidClusterAddress()
Does this cluster have a valid cluster address?
|
void |
set(java.lang.String key,
java.io.Serializable value)
Add value to cache which will be available across nodes
|
void |
shutdown()
Shut down the cluster and all it's threads
|
static final java.lang.String COPYRIGHT
static final java.lang.String VERSION
static final java.util.UUID NULL_UUID_VALUE
ClusterState getState()
boolean checkNodeId(java.lang.String aNodeId)
aNodeId - true if aNodeId is NOT actually uniquejava.lang.String getClusterName()
java.lang.String getPotentialClusterMembers()
java.lang.String getNodeInfo(java.lang.String aNodeId)
aNodeId - String identifying a nodeboolean checkMembershipConsistency()
void alterState(ClusterState aState)
aState - - new state that should be entered.java.lang.String getTransportProtocol()
java.util.List<java.util.UUID> getMemberUuids()
java.util.UUID getThisMembersUuid()
null if the cluster protocol is 'default'.java.net.InetAddress getThisMembersAddress()
InetAddress associated with this node.
Multiple PRPC nodes may have the same InetAddress. Use getThisMembersUuid() to get unique identifier.int getThisMembersPort()
java.lang.String getClusterAddress()
ClusterExecutor getDistributedExecutor()
java.util.UUID getClusterId(java.lang.String aNodeId)
aNodeId - java.io.Serializable get(java.lang.String key)
key - void set(java.lang.String key,
java.io.Serializable value)
key - value - void shutdown()
boolean hasValidClusterAddress()
Copyright © 2014 Pegasystems Inc. All Rights Reserved.