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.Object
State for a particular component.
-
-
Field Summary
Fields Modifier and Type Field Description protected IPlatformComponentAccess
access
The component access.protected int
childcount
The child count.protected IFuture<java.util.Map<java.lang.String,java.lang.Object>>
cleanupfuture
The cleanup future.protected java.util.Collection<SubscriptionIntermediateFuture<CMSStatusEvent>>
cmslisteners
The cms listeners for the component.protected InitInfo
initinfo
The initialization infos.protected LockEntry
lock
Component 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 void
addCmsListener(SubscriptionIntermediateFuture<CMSStatusEvent> sub)
IPlatformComponentAccess
getAccess()
Gets the access.int
getChildCount()
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.InitInfo
getInitInfo()
Gets the initinfo.LockEntry
getLock()
Gets the lock.void
setAccess(IPlatformComponentAccess access)
Sets the access.void
setChildCount(int childcount)
Sets the childcount.void
setCleanupFuture(IFuture<java.util.Map<java.lang.String,java.lang.Object>> cleanupfuture)
Sets the cleanupfuture.void
setInitInfo(InitInfo initinfo)
Sets the initinfo.void
setLock(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)
-
-