doSynchronousClusterTask(ClusterTask task, boolean includeLocalMember) Invokes a task on other cluster members synchronously and returns the result as a Collection
(method will not return until the task has been executed on each cluster member).
The task will not be executed on the local cluster member.
doSynchronousClusterTask(ClusterTask task, byte[] nodeID) Invokes a task on a given cluster member synchronously and returns the result of
the remote operation.
byte[]
getClusterMemberID() Returns a byte[] that uniquely identifies this member within the cluster or null
when not in a cluster.
Creates a new cache for the cache name specified. The created cache is
already configured. Different implementations could store the cache
configuration in different ways. It is recommended to store the cache
configuration in an external file so it is easier for customers to change
the default configuration.
Parameters: name - name of the cache to create. newly created and configured cache.
Invokes a task on other cluster members in an asynchronous fashion. The task will not be
executed on the local cluster member. If clustering is not enabled, this method
will do nothing.
Parameters: task - the task to be invoked on all other cluster members.
Invokes a task on other the specified cluster member in an asynchronous fashion. If clustering is not
enabled, this method will do nothing.
Parameters: task - the task to be invoked on the specified cluster member. Parameters: nodeID - the byte array that identifies the target cluster member. false if not in a cluster or specified cluster node was not found.
Invokes a task on other cluster members synchronously and returns the result as a Collection
(method will not return until the task has been executed on each cluster member).
The task will not be executed on the local cluster member. If clustering is not enabled,
this method will return an empty collection.
Parameters: task - the ClusterTask object to be invoked on all other cluster members. Parameters: includeLocalMember - true to run the task on the local member, false otherwise collection with the result of the execution.
Invokes a task on a given cluster member synchronously and returns the result of
the remote operation. If clustering is not enabled, this method will return null.
Parameters: task - the ClusterTask object to be invoked on a given cluster member. Parameters: nodeID - the byte array that identifies the target cluster member. result of remote operation or null if operation failed or operation returned null. throws: IllegalStateException - if requested node was not found.
Returns a byte[] that uniquely identifies this member within the cluster or null
when not in a cluster.
a byte[] that uniquely identifies this member within the cluster or null when not in a cluster.
Returns basic information about the current members of the cluster or an empty
collection if not running in a cluster.
information about the current members of the cluster or an emptycollection if not running in a cluster.
Returns the maximum number of cluster members allowed. A value of 0 will
be returned when clustering is not allowed.
the maximum number of cluster members allowed or 0 if clustering is not allowed.
Returns a byte[] that uniquely identifies this senior cluster member or null
when not in a cluster.
a byte[] that uniquely identifies this senior cluster member or null when not in a cluster.
Returns true if this node is the maste node of the cluster. When not running
in cluster mode a value of true should be returned.
true if this node is the maste node of the cluster.
Locks the specified key in the locking map. The map should be clusterable
thus locking a key is visible to the cluster. When not in cluster mode
the lock is only visible to this JVM.
Parameters: key - the key to lock. Parameters: timeout - number of milliseconds to wait to obtain the lock. -1 means wait forever.
Unlocks the specified key in the locking map. The map should be clusterable
thus locking a key is visible to the cluster. When not in cluster mode
the lock is only visible to this JVM.
Parameters: key - the key to unlock.
Updates the statistics of the specified caches and publishes them into
a cache for statistics. The statistics cache is already known to the application
but this could change in the future (?). When not in cluster mode then
do nothing.
The statistics cache must contain a long array of 5 positions for each cache
with the following content:
cache.getCacheSize()
cache.getMaxCacheSize()
cache.size()
cache.getCacheHits()
cache.getCacheMisses()
Parameters: caches - caches to get their stats and publish them in a statistics cache.