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 void
destroy()
destroys usage count and distributed lock objectscom.hazelcast.map.IMap<String,Object>
getClusteredSingletonMap()
com.hazelcast.cp.IAtomicLong
getClusteredUsageCount()
com.hazelcast.cp.lock.FencedLock
getDistributedLock()
HazelcastCore
getHazelcastCore()
protected String
getKeyPrefix()
protected String
getMapKey()
String
getSessionHzKey()
boolean
isClusteredEnabled()
boolean
isDistributedLockEnabled()
-
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:
getDistributedLock
in interfaceClusteredSingletonLookup
-
getClusteredSingletonMap
public com.hazelcast.map.IMap<String,Object> getClusteredSingletonMap()
- Specified by:
getClusteredSingletonMap
in interfaceClusteredSingletonLookup
-
getClusteredUsageCount
public com.hazelcast.cp.IAtomicLong getClusteredUsageCount()
- Specified by:
getClusteredUsageCount
in interfaceClusteredSingletonLookup
-
isClusteredEnabled
public boolean isClusteredEnabled()
- Specified by:
isClusteredEnabled
in interfaceClusteredSingletonLookup
-
isDistributedLockEnabled
public boolean isDistributedLockEnabled()
- Specified by:
isDistributedLockEnabled
in interfaceClusteredSingletonLookup
-
destroy
public void destroy()
Description copied from interface:ClusteredSingletonLookup
destroys usage count and distributed lock objects- Specified by:
destroy
in interfaceClusteredSingletonLookup
-
getHazelcastCore
public HazelcastCore getHazelcastCore()
- Specified by:
getHazelcastCore
in interfaceClusteredSingletonLookup
-
-