Class ClusteredSingletonLookupImplBase
- java.lang.Object
-
- com.sun.enterprise.container.common.impl.util.ClusteredSingletonLookupImplBase
-
- All Implemented Interfaces:
ClusteredSingletonLookup
- Direct Known Subclasses:
ClusteredSingletonLookupImpl,ClusteredSingletonLookupImpl
public abstract class ClusteredSingletonLookupImplBase extends Object implements ClusteredSingletonLookup
Base class for implementing Clustered Singleton Lookups- Author:
- lprimak
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.sun.enterprise.container.common.spi.ClusteredSingletonLookup
ClusteredSingletonLookup.SingletonType
-
-
Constructor Summary
Constructors Constructor Description ClusteredSingletonLookupImplBase(String componentId, ClusteredSingletonLookup.SingletonType singletonType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()destroys usage count and distributed lock objectscom.hazelcast.map.IMap<String,Object>getClusteredSingletonMap()com.hazelcast.cp.IAtomicLonggetClusteredUsageCount()com.hazelcast.cp.lock.FencedLockgetDistributedLock()HazelcastCoregetHazelcastCore()protected StringgetKeyPrefix()protected StringgetMapKey()StringgetSessionHzKey()booleanisClusteredEnabled()booleanisDistributedLockEnabled()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.enterprise.container.common.spi.ClusteredSingletonLookup
getClusteredSessionKey
-
-
-
-
Constructor Detail
-
ClusteredSingletonLookupImplBase
public ClusteredSingletonLookupImplBase(String componentId, ClusteredSingletonLookup.SingletonType singletonType)
-
-
Method Detail
-
getKeyPrefix
protected final String getKeyPrefix()
-
getMapKey
protected final String getMapKey()
-
getSessionHzKey
public final String getSessionHzKey()
-
getDistributedLock
public com.hazelcast.cp.lock.FencedLock getDistributedLock()
- Specified by:
getDistributedLockin interfaceClusteredSingletonLookup
-
getClusteredSingletonMap
public com.hazelcast.map.IMap<String,Object> getClusteredSingletonMap()
- Specified by:
getClusteredSingletonMapin interfaceClusteredSingletonLookup
-
getClusteredUsageCount
public com.hazelcast.cp.IAtomicLong getClusteredUsageCount()
- Specified by:
getClusteredUsageCountin interfaceClusteredSingletonLookup
-
isClusteredEnabled
public boolean isClusteredEnabled()
- Specified by:
isClusteredEnabledin interfaceClusteredSingletonLookup
-
isDistributedLockEnabled
public boolean isDistributedLockEnabled()
- Specified by:
isDistributedLockEnabledin interfaceClusteredSingletonLookup
-
destroy
public void destroy()
Description copied from interface:ClusteredSingletonLookupdestroys usage count and distributed lock objects- Specified by:
destroyin interfaceClusteredSingletonLookup
-
getHazelcastCore
public HazelcastCore getHazelcastCore()
- Specified by:
getHazelcastCorein interfaceClusteredSingletonLookup
-
-