public class SimpleClusterService extends AbstractClusterService implements ClusterService
ClusterService implementation.AbstractClusterService.WorkUnitEvaluationTask| Constructor and Description |
|---|
SimpleClusterService() |
| Modifier and Type | Method and Description |
|---|---|
String |
addToMap(String inMapName,
String inKey,
String inValue) |
<Clazz extends Serializable> |
addToQueue(QueueDescriptor<Clazz> inQueueDescriptor,
Clazz inObject) |
<Clazz extends Serializable> |
execute(CallableClusterTask<Clazz> inTask) |
void |
execute(RunnableClusterTask inTask) |
String |
getAttribute(String inKey) |
Map<String,Map<String,String>> |
getAttributes() |
Map<String,String> |
getAttributes(String inUuid) |
Set<ClusterMember> |
getClusterMembers() |
protected int |
getHostNumber(String inHostId) |
Lock |
getLock(String inLockName) |
Map<String,String> |
getMap(String inMapName) |
protected String |
getMemberUuid() |
protected boolean |
isActive() |
<Clazz extends Serializable> |
peekFromQueue(QueueDescriptor<Clazz> inQueueDescriptor) |
void |
removeAttribute(String inKey) |
void |
removeAttribute(String inUuid,
String inKey) |
String |
removeFromMap(String inMapName,
String inKey) |
void |
setAttribute(String inKey,
String inValue) |
void |
start()
Validate and start the object.
|
void |
stop()
Stop the object.
|
<Clazz extends Serializable> |
takeFromQueue(QueueDescriptor<Clazz> inQueueDescriptor) |
activateWorkUnit, addClusterListener, establishWorkUnitSpecs, evaluateWorkUnits, findAllBeansWith, findAllBeansWith, findAndActivateWorkUnit, findCandidateFor, generateClusterData, generateWorkUnitDescriptor, getAbandonedLockTimeout, getActiveWorkUnitSpecs, getInstanceData, getInstanceName, getLockTimeout, getMethod, getTypeAnnotation, getUuid, getWorkUnitEvaluationDelay, logClusterMetaData, marshall, memberAdded, memberChanged, memberRemoved, notifyMemberAdded, notifyMemberChanged, notifyMemberRemoved, register, removeClusterListener, setAbandonedLockTimeout, setApplicationContext, setInstanceName, setLockTimeout, setWorkUnitEvaluationDelay, toString, unmarshall, updateClusterMetaDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddClusterListener, getInstanceData, removeClusterListener@PostConstruct public void start()
start in class AbstractClusterService@PreDestroy public void stop()
stop in class AbstractClusterServiceprotected String getMemberUuid()
getMemberUuid in class AbstractClusterServiceprotected int getHostNumber(String inHostId)
getHostNumber in class AbstractClusterServiceprotected boolean isActive()
isActive in class AbstractClusterServicepublic <Clazz extends Serializable> void addToQueue(QueueDescriptor<Clazz> inQueueDescriptor, Clazz inObject)
addToQueue in interface ClusterServicepublic <Clazz extends Serializable> Clazz peekFromQueue(QueueDescriptor<Clazz> inQueueDescriptor)
peekFromQueue in interface ClusterServicepublic <Clazz extends Serializable> Clazz takeFromQueue(QueueDescriptor<Clazz> inQueueDescriptor) throws InterruptedException
takeFromQueue in interface ClusterServiceInterruptedExceptionpublic void execute(RunnableClusterTask inTask)
execute in interface ClusterServicepublic <Clazz extends Serializable> Map<Object,Future<Clazz>> execute(CallableClusterTask<Clazz> inTask) throws Exception
execute in interface ClusterServiceExceptionpublic Map<String,String> getMap(String inMapName)
getMap in interface ClusterServicepublic String addToMap(String inMapName, String inKey, String inValue)
addToMap in interface ClusterServicepublic String removeFromMap(String inMapName, String inKey)
removeFromMap in interface ClusterServicepublic void setAttribute(String inKey, String inValue)
setAttribute in interface ClusterServicepublic String getAttribute(String inKey)
getAttribute in interface ClusterServicepublic Map<String,String> getAttributes(String inUuid)
getAttributes in interface ClusterServicepublic Map<String,Map<String,String>> getAttributes()
getAttributes in interface ClusterServicepublic void removeAttribute(String inKey)
removeAttribute in interface ClusterServicepublic void removeAttribute(String inUuid, String inKey)
removeAttribute in interface ClusterServicepublic Lock getLock(String inLockName)
getLock in interface ClusterServicepublic Set<ClusterMember> getClusterMembers()
getClusterMembers in interface ClusterServiceCopyright © 2020. All rights reserved.