Method Summary |
|
public static synchronized void | clearCaches() |
public static synchronized T | createCache(String name) Returns the named cache, creating it as necessary.
Parameters: name - the name of the cache to create. |
public static void | destroyCache(String name) Destroys the cache for the cache name specified. |
public static void | doClusterTask(ClusterTask task) Invokes a task on other cluster members in an asynchronous fashion. |
public static void | doClusterTask(ClusterTask task, byte[] nodeID) Invokes a task on a given cluster member in an asynchronous fashion. |
public static Collection<Object> | 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. |
public static Object | doSynchronousClusterTask(ClusterTask task, byte[] nodeID) Invokes a task on a given cluster member synchronously and returns the result of
the remote operation. |
public static Cache[] | getAllCaches() Returns an array of all caches in the system. |
public static String | getCacheTypeProperty(String cacheName) |
public static byte[] | getClusterMemberID() Returns a byte[] that uniquely identifies this member within the cluster or null
when not in a cluster. |
public static Collection<ClusterNodeInfo> | getClusterNodesInfo() Returns basic information about the current members of the cluster or an empty
collection if not running in a cluster. |
public static long | getMaxCacheLifetime(String cacheName) If a local property is found for the supplied name which specifies a value for cache entry lifetime, it
is returned. |
public static long | getMaxCacheSize(String cacheName) If a local property is found for the supplied name which specifies a value for cache size, it is returned.
Otherwise, the defaultSize argument is returned.
Parameters: cacheName - the name of the cache to look up a corresponding property for. |
public static int | getMaxClusterNodes() Returns the maximum number of cluster members allowed. |
public static long | getMinCacheSize(String cacheName) |
public static byte[] | getSeniorClusterMemberID() Returns a byte[] that uniquely identifies this senior cluster member or null
when not in a cluster. |
public static boolean | hasMaxLifetimeFromProperty(String cacheName) |
public static boolean | hasMaxSizeFromProperty(String cacheName) |
public static synchronized void | initialize() |
public static boolean | isClusteringAvailable() Returns true if clustering is installed and can be used by this JVM
to join a cluster. |
public static boolean | isClusteringStarted() Returns true if this node is currently a member of a cluster. |
public static boolean | isClusteringStarting() Returns true is clustering is currently being started. |
public static boolean | isSeniorClusterMember() Returns true if this member is the senior member in the cluster. |
public static void | joinedCluster() Notification message indicating that this JVM has joined a cluster. |
public static void | leftCluster() Notification message indicating that this JVM has left the cluster. |
public static void | lockKey(Object key, long timeout) |
public static void | setCacheTypeProperty(String cacheName, String type) |
public static void | setMaxLifetimeProperty(String cacheName, long lifetime) Sets a local property which overrides the maximum cache entry lifetime as configured in coherence-cache-config.xml
for the supplied cache name. |
public static void | setMaxSizeProperty(String cacheName, long size) Sets a local property which overrides the maximum cache size as configured in coherence-cache-config.xml for the
supplied cache name. |
public static void | setMinCacheSize(String cacheName, long size) |
public static void | startClustering() |
public static void | stopClustering() |
public static void | unlockKey(Object key) |