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.
|
void |
broadcastSystemPulse(java.util.Collection<PRPulseMessage> aPulseMessages)
Broadcast a list of System Pulse Messages via 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.
|
boolean |
checkProtocolConsistency()
Checks that active members in the cluster are using the same cluster protocol.
|
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.
|
PRDistributedObjectManager |
getDistributedObjectManager() |
ILockProviderService |
getLockProviderService()
Returns Lock Provider service
|
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
|
IPulseProvider |
getPulseProvider()
Returns Lock Provider service
|
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?
|
boolean |
isInitialized() |
void |
set(java.lang.String key,
java.io.Serializable value)
Add value to cache which will be available across nodes
|
void |
setInitialized(boolean isInitialized) |
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()
boolean checkProtocolConsistency()
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()
void broadcastSystemPulse(java.util.Collection<PRPulseMessage> aPulseMessages)
aPulseMessages
- - The list of messages to broadcastPRDistributedObjectManager getDistributedObjectManager()
ILockProviderService getLockProviderService()
IPulseProvider getPulseProvider()
boolean isInitialized()
void setInitialized(boolean isInitialized)
isInitialized
- set the initialized parameterCopyright © 2015 Pegasystems Inc. All Rights Reserved.