public class CoherenceCluster extends AbstractAssembly<CoherenceClusterMember>
Assembly that represents a collection of CoherenceClusterMembers.
Copyright (c) 2014. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CoherenceCluster.Predicates
Useful
Predicates for a CoherenceCluster. |
applicationCount, applications, isClosed, optionsByType| Constructor and Description |
|---|
CoherenceCluster(List<? extends CoherenceClusterMember> members,
com.oracle.bedrock.OptionsByType optionsByType)
Constructs a
CoherenceCluster given a list of CoherenceClusterMembers. |
| Modifier and Type | Method and Description |
|---|---|
com.tangosol.net.NamedCache |
getCache(String cacheName)
Obtains a proxy of the specified
NamedCache available in the
CoherenceCluster. |
<K,V> com.tangosol.net.NamedCache<K,V> |
getCache(String cacheName,
Class<K> keyClass,
Class<V> valueClass)
Obtains a proxy of the specified
NamedCache available in the
CoherenceCluster. |
Set<com.tangosol.util.UID> |
getClusterMemberUIDs()
Obtains the member
UIDs for the CoherenceCluster. |
int |
getClusterSize()
Obtains the current number of
CoherenceClusterMembers in the underlying
CoherenceCluster by asking a CoherenceClusterMember. |
protected void |
onRelaunched(CoherenceClusterMember original,
CoherenceClusterMember restarted,
com.oracle.bedrock.OptionsByType optionsByType) |
protected void |
onRelaunching(CoherenceClusterMember member,
com.oracle.bedrock.OptionsByType optionsByType) |
add, allMatch, anyMatch, clone, clone, close, close, collect, collect, count, expand, filter, findAny, findFirst, forEach, get, getAll, getAll, isClosed, iterator, limit, noneMatch, onChanged, onClosed, onClosing, onExpanded, onLaunched, onRelaunching, peek, relaunch, relaunch, remove, stream, unorderedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitspliteratorpublic CoherenceCluster(List<? extends CoherenceClusterMember> members, com.oracle.bedrock.OptionsByType optionsByType)
CoherenceCluster given a list of CoherenceClusterMembers.members - the CoherenceClusterMembersoptionsByType - the shared / common OptionsByType used to launch the CoherenceClusterMemberspublic int getClusterSize()
CoherenceClusterMembers in the underlying
CoherenceCluster by asking a CoherenceClusterMember.CoherenceClusterMemberspublic Set<com.tangosol.util.UID> getClusterMemberUIDs()
UIDs for the CoherenceCluster.Set of UID, one for each CoherenceClusterMemberpublic com.tangosol.net.NamedCache getCache(String cacheName)
NamedCache available in the
CoherenceCluster.cacheName - the name of the NamedCacheNamedCachepublic <K,V> com.tangosol.net.NamedCache<K,V> getCache(String cacheName, Class<K> keyClass, Class<V> valueClass)
NamedCache available in the
CoherenceCluster.K - the type of the key classV - the type of the value classcacheName - the name of the NamedCachekeyClass - the type of the keys for the NamedCachevalueClass - the type of the values for the NamedCacheNamedCacheprotected void onRelaunching(CoherenceClusterMember member, com.oracle.bedrock.OptionsByType optionsByType)
onRelaunching in class AbstractAssembly<CoherenceClusterMember>protected void onRelaunched(CoherenceClusterMember original, CoherenceClusterMember restarted, com.oracle.bedrock.OptionsByType optionsByType)
onRelaunched in class AbstractAssembly<CoherenceClusterMember>Copyright © 2017. All rights reserved.