Package jadex.bridge.service.types.cms
Class CmsState.CmsComponentState
- java.lang.Object
-
- jadex.bridge.service.types.cms.CmsState.CmsComponentState
-
- Enclosing class:
- CmsState
public static class CmsState.CmsComponentState extends java.lang.ObjectState for a particular component.
-
-
Field Summary
Fields Modifier and Type Field Description protected IPlatformComponentAccessaccessThe component access.protected intchildcountThe child count.protected IFuture<java.util.Map<java.lang.String,java.lang.Object>>cleanupfutureThe cleanup future.protected java.util.Collection<SubscriptionIntermediateFuture<CMSStatusEvent>>cmslistenersThe cms listeners for the component.protected InitInfoinitinfoThe initialization infos.protected LockEntrylockComponent lock for locking parent.
-
Constructor Summary
Constructors Constructor Description CmsComponentState()Creates the component state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCmsListener(SubscriptionIntermediateFuture<CMSStatusEvent> sub)IPlatformComponentAccessgetAccess()Gets the access.intgetChildCount()Gets the childcount.IFuture<java.util.Map<java.lang.String,java.lang.Object>>getCleanupFuture()Gets the cleanupfuture.java.util.Collection<SubscriptionIntermediateFuture<CMSStatusEvent>>getCmsListeners()Gets the cmslisteners.InitInfogetInitInfo()Gets the initinfo.LockEntrygetLock()Gets the lock.voidsetAccess(IPlatformComponentAccess access)Sets the access.voidsetChildCount(int childcount)Sets the childcount.voidsetCleanupFuture(IFuture<java.util.Map<java.lang.String,java.lang.Object>> cleanupfuture)Sets the cleanupfuture.voidsetInitInfo(InitInfo initinfo)Sets the initinfo.voidsetLock(LockEntry lock)Sets the lock.
-
-
-
Field Detail
-
access
protected IPlatformComponentAccess access
The component access.
-
initinfo
protected InitInfo initinfo
The initialization infos.
-
childcount
protected int childcount
The child count.
-
cleanupfuture
protected IFuture<java.util.Map<java.lang.String,java.lang.Object>> cleanupfuture
The cleanup future.
-
lock
protected LockEntry lock
Component lock for locking parent.
-
cmslisteners
protected java.util.Collection<SubscriptionIntermediateFuture<CMSStatusEvent>> cmslisteners
The cms listeners for the component.
-
-
Method Detail
-
getAccess
public IPlatformComponentAccess getAccess()
Gets the access. This may return null, e.g. if component is terminating.- Returns:
- The access.
-
setAccess
public void setAccess(IPlatformComponentAccess access)
Sets the access.- Parameters:
access- The access to set.
-
getInitInfo
public InitInfo getInitInfo()
Gets the initinfo.- Returns:
- The initinfo.
-
setInitInfo
public void setInitInfo(InitInfo initinfo)
Sets the initinfo.- Parameters:
initinfo- The initinfo to set.
-
getChildCount
public int getChildCount()
Gets the childcount.- Returns:
- The childcount.
-
setChildCount
public void setChildCount(int childcount)
Sets the childcount.- Parameters:
childcount- The childcount to set.
-
getCleanupFuture
public IFuture<java.util.Map<java.lang.String,java.lang.Object>> getCleanupFuture()
Gets the cleanupfuture.- Returns:
- The cleanupfuture.
-
setCleanupFuture
public void setCleanupFuture(IFuture<java.util.Map<java.lang.String,java.lang.Object>> cleanupfuture)
Sets the cleanupfuture.- Parameters:
cleanupfuture- The cleanupfuture to set.
-
getLock
public LockEntry getLock()
Gets the lock.- Returns:
- The lock.
-
setLock
public void setLock(LockEntry lock)
Sets the lock.- Parameters:
lock- The lock to set.
-
getCmsListeners
public java.util.Collection<SubscriptionIntermediateFuture<CMSStatusEvent>> getCmsListeners()
Gets the cmslisteners.- Returns:
- The cmslisteners.
-
addCmsListener
public void addCmsListener(SubscriptionIntermediateFuture<CMSStatusEvent> sub)
-
-