public abstract class AbstractCoherenceClusterMember extends AbstractJavaApplication<JavaApplicationProcess> implements CoherenceClusterMember
CoherenceClusterMember.
Copyright (c) 2014. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
CoherenceClusterMember.MetaClassRemoteChannel.AcknowledgeWhen, RemoteChannel.Inject| Modifier and Type | Field and Description |
|---|---|
static String |
MBEAN_NAME_CLUSTER
The MBean name of the Coherence Cluster MBean.
|
console, displayName, optionsByType, platform, processJAVA_HOME, JAVA_NET_PREFER_IPV4_STACK, JAVA_NET_PREFER_IPV6_STACK, JAVA_RMI_SERVER_HOSTNAME| Constructor and Description |
|---|
AbstractCoherenceClusterMember(Platform platform,
JavaApplicationProcess process,
com.oracle.bedrock.OptionsByType optionsByType)
Constructs an
AbstractCoherenceClusterMember. |
| Modifier and Type | Method and Description |
|---|---|
com.tangosol.net.NamedCache |
getCache(String cacheName)
Obtains a proxy of the specified
NamedCache available in the
CoherenceClusterMember. |
<K,V> com.tangosol.net.NamedCache<K,V> |
getCache(String cacheName,
Class<K> keyClass,
Class<V> valueClass)
Obtains a proxy of a strongly-typed
NamedCache available in the
CoherenceClusterMember. |
MBeanInfo |
getClusterMBeanInfo()
Obtains the Coherence Cluster
MBeanInfo for the AbstractCoherenceClusterMember. |
Set<com.tangosol.util.UID> |
getClusterMemberUIDs()
|
String |
getClusterName()
Obtains the cluster name for the local member.
|
int |
getClusterSize()
Obtains the number of members in the cluster in which the member represented
by this
CoherenceClusterMember belongs. |
int |
getLocalMemberId()
Obtains the local member id for the
CoherenceClusterMember. |
com.tangosol.util.UID |
getLocalMemberUID()
Obtains the local member
UID for the CoherenceClusterMember. |
String |
getRoleName()
Obtains the role name for the local member.
|
MBeanInfo |
getServiceMBeanInfo(String serviceName,
int nodeId)
Obtains the Coherence Service
MBeanInfo for the AbstractCoherenceClusterMember. |
com.oracle.bedrock.runtime.coherence.ServiceStatus |
getServiceStatus(String serviceName)
Determines the status of a service being run by the
CoherenceClusterMember. |
String |
getSiteName()
Obtains the site name for the local member.
|
boolean |
isServiceRunning(String serviceName)
Determines if a specified service is being run by the
CoherenceClusterMember. |
com.oracle.bedrock.util.Trilean |
isStorageEnabled(String serviceName)
Determines if a specified service is storage enabled.
|
addListener, getProxyFor, getSystemProperties, getSystemProperty, raise, removeListener, submit, submitclose, close, exitValue, getDefaultTimeout, getId, getName, getOptions, getPlatform, isOperational, waitForadd, add, get, getInstancesOf, has, remove, removeAllFeaturesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProxyFor, getSystemProperties, getSystemProperty, invokeclose, close, exitValue, getDefaultTimeout, getId, getName, getOptions, getPlatform, isOperational, waitForadd, add, get, has, removeaddListener, get, raise, removeListener, submit, submitpublic static final String MBEAN_NAME_CLUSTER
public AbstractCoherenceClusterMember(Platform platform, JavaApplicationProcess process, com.oracle.bedrock.OptionsByType optionsByType)
AbstractCoherenceClusterMember.platform - the Platform on which the Application was launchedprocess - the underlying ApplicationProcess representing the ApplicationoptionsByType - the OptionsByType used to launch the Applicationpublic MBeanInfo getClusterMBeanInfo()
MBeanInfo for the AbstractCoherenceClusterMember.
If the JMX infrastructure in the JavaApplication is not yet
available, it will block at wait for the default application timeout
until it becomes available.
MBeanInfoPermanentlyUnavailableException - when the resource is not availableUnsupportedOperationException - when JMX is not enabled for the
JavaApplicationpublic int getClusterSize()
CoherenceClusterMemberCoherenceClusterMember belongs.getClusterSize in interface CoherenceClusterMemberpublic int getLocalMemberId()
CoherenceClusterMemberCoherenceClusterMember.getLocalMemberId in interface CoherenceClusterMemberpublic com.tangosol.util.UID getLocalMemberUID()
CoherenceClusterMemberUID for the CoherenceClusterMember.getLocalMemberUID in interface CoherenceClusterMemberUIDpublic Set<com.tangosol.util.UID> getClusterMemberUIDs()
CoherenceClusterMembergetClusterMemberUIDs in interface CoherenceClusterMemberSet of UID, one for each CoherenceClusterMemberpublic MBeanInfo getServiceMBeanInfo(String serviceName, int nodeId)
MBeanInfo for the AbstractCoherenceClusterMember.
If the JMX infrastructure in the JavaApplication is not yet
available, it will block at wait for the default application timeout
until it becomes available.
serviceName - the name of the servicenodeId - the nodeId on which the service is definedMBeanInfoPermanentlyUnavailableException - when the resource is not availableUnsupportedOperationException - when JMX is not enabled for the
JavaApplicationpublic String getRoleName()
CoherenceClusterMembergetRoleName in interface CoherenceClusterMemberpublic String getSiteName()
CoherenceClusterMembergetSiteName in interface CoherenceClusterMemberpublic String getClusterName()
CoherenceClusterMembergetClusterName in interface CoherenceClusterMemberpublic com.tangosol.net.NamedCache getCache(String cacheName)
CoherenceClusterMemberNamedCache available in the
CoherenceClusterMember.
WARNING: Some methods on the returned NamedCache proxy are not
available for remote execution and are thus not supported. Attempts to
use such methods will thrown UnsupportedOperationException.
The unsupported methods are: getCacheService, addMapListener, removeMapListener, entrySet, values, addIndex and removeIndex.
Additionally note that method invocations taking unserializable parameters
or returning unserializable values will throw NotSerializableExceptions.
getCache in interface CoherenceClusterMembercacheName - the name of the NamedCacheNamedCachepublic <K,V> com.tangosol.net.NamedCache<K,V> getCache(String cacheName, Class<K> keyClass, Class<V> valueClass)
CoherenceClusterMemberNamedCache available in the
CoherenceClusterMember.
WARNING: Some methods on the returned NamedCache proxy are not
available for remote execution and are thus not supported. Attempts to
use such methods will thrown UnsupportedOperationException.
The unsupported methods are: getCacheService, addMapListener, removeMapListener, entrySet, values, addIndex and removeIndex.
Additionally note that method invocations taking unserializable parameters
or returning unserializable values will throw NotSerializableExceptions.
getCache in interface CoherenceClusterMemberK - 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 NamedCacheNamedCachepublic boolean isServiceRunning(String serviceName)
CoherenceClusterMemberCoherenceClusterMember.isServiceRunning in interface CoherenceClusterMemberserviceName - the name of the servicetrue if the service is running, false otherwisepublic com.oracle.bedrock.util.Trilean isStorageEnabled(String serviceName)
CoherenceClusterMemberisStorageEnabled in interface CoherenceClusterMemberserviceName - the name of the serviceTrilean indicating if the service is storage enabled Trilean.TRUE,
disabled Trilean.FALSE or unknown / undefined / not applicable Trilean.UNKNOWNpublic com.oracle.bedrock.runtime.coherence.ServiceStatus getServiceStatus(String serviceName)
CoherenceClusterMemberCoherenceClusterMember.getServiceStatus in interface CoherenceClusterMemberserviceName - the name of the serviceServiceStatusCopyright © 2017. All rights reserved.