Package jadex.bridge.service.types.cms
Class CmsState
- java.lang.Object
-
- jadex.bridge.service.types.cms.CmsState
-
public class CmsState extends java.lang.ObjectClass representing the state information for component management.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCmsState.CmsComponentStateState for a particular component.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Collection<SubscriptionIntermediateFuture<CMSStatusEvent>>allcomponentslistenersListeners listening to all components.protected IRwMap<java.lang.String,java.lang.Integer>cidcountsThe component ID counts.protected IRwMap<IResourceIdentifier,java.lang.ClassLoader>classloadersClassLoader cache.protected IRwMap<IComponentIdentifier,CmsState.CmsComponentState>componentmapThe component map.protected IRwMap<Tuple,java.lang.String>localtypesThe local types.protected IRwMap<Tuple2<java.lang.String,java.lang.ClassLoader>,Tuple3<IModelInfo,java.lang.ClassLoader,java.util.Collection<IComponentFeatureFactory>>>modelcacheThe model cache.
-
Constructor Summary
Constructors Constructor Description CmsState()Creates the state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPlatformComponentAccessgetAccess(IComponentIdentifier cid)Convenience method to get the access of a component.java.util.Collection<SubscriptionIntermediateFuture<CMSStatusEvent>>getAllListeners()IRwMap<java.lang.String,java.lang.Integer>getCidCounts()Gets the cid counts.IRwMap<IResourceIdentifier,java.lang.ClassLoader>getClassLoaders()Gets the class loaders.IFuture<java.util.Map<java.lang.String,java.lang.Object>>getCleanupFuture(IComponentIdentifier cid)Convenience method to get the cleanup future of a component.java.util.Collection<SubscriptionIntermediateFuture<CMSStatusEvent>>getCmsListeners(IComponentIdentifier cid)Get the CMS listeners of a component or listen-to-all listeners if cid == null.CmsState.CmsComponentStategetComponent(IComponentIdentifier cid)Convenience method to get the state of a component.java.util.Map<IComponentIdentifier,CmsState.CmsComponentState>getComponentMap()Gets the component map.InitInfogetInitInfo(IComponentIdentifier cid)Convenience method to get the init info of a component.IRwMap<Tuple,java.lang.String>getLocalTypes()Gets the local types.IRwMap<Tuple2<java.lang.String,java.lang.ClassLoader>,Tuple3<IModelInfo,java.lang.ClassLoader,java.util.Collection<IComponentFeatureFactory>>>getModelCache()Gets the model cache.IAutoLockreadLock()Locks the read lock for resource-based locking.IAutoLockwriteLock()Locks the write lock for resource-based locking.
-
-
-
Field Detail
-
componentmap
protected IRwMap<IComponentIdentifier,CmsState.CmsComponentState> componentmap
The component map.
-
classloaders
protected IRwMap<IResourceIdentifier,java.lang.ClassLoader> classloaders
ClassLoader cache.
-
modelcache
protected IRwMap<Tuple2<java.lang.String,java.lang.ClassLoader>,Tuple3<IModelInfo,java.lang.ClassLoader,java.util.Collection<IComponentFeatureFactory>>> modelcache
The model cache.
-
cidcounts
protected IRwMap<java.lang.String,java.lang.Integer> cidcounts
The component ID counts.
-
allcomponentslisteners
protected java.util.Collection<SubscriptionIntermediateFuture<CMSStatusEvent>> allcomponentslisteners
Listeners listening to all components.
-
-
Method Detail
-
getAccess
public IPlatformComponentAccess getAccess(IComponentIdentifier cid)
Convenience method to get the access of a component.- Parameters:
cid- The component ID.- Returns:
- The access of a component.
-
getCleanupFuture
public IFuture<java.util.Map<java.lang.String,java.lang.Object>> getCleanupFuture(IComponentIdentifier cid)
Convenience method to get the cleanup future of a component.- Parameters:
cid- The component ID.- Returns:
- The cleanup future of a component.
-
getInitInfo
public InitInfo getInitInfo(IComponentIdentifier cid)
Convenience method to get the init info of a component.- Parameters:
cid- The component ID.- Returns:
- The init info of a component.
-
getCmsListeners
public java.util.Collection<SubscriptionIntermediateFuture<CMSStatusEvent>> getCmsListeners(IComponentIdentifier cid)
Get the CMS listeners of a component or listen-to-all listeners if cid == null.- Parameters:
cid- The component ID or null.- Returns:
- The CMS listeners.
-
getAllListeners
public java.util.Collection<SubscriptionIntermediateFuture<CMSStatusEvent>> getAllListeners()
-
getComponent
public CmsState.CmsComponentState getComponent(IComponentIdentifier cid)
Convenience method to get the state of a component.- Parameters:
cid- The component ID.- Returns:
- The state of a component.
-
getComponentMap
public java.util.Map<IComponentIdentifier,CmsState.CmsComponentState> getComponentMap()
Gets the component map.- Returns:
- The component map.
-
getLocalTypes
public IRwMap<Tuple,java.lang.String> getLocalTypes()
Gets the local types.- Returns:
- The local types.
-
getClassLoaders
public IRwMap<IResourceIdentifier,java.lang.ClassLoader> getClassLoaders()
Gets the class loaders.- Returns:
- The class loaders.
-
getModelCache
public IRwMap<Tuple2<java.lang.String,java.lang.ClassLoader>,Tuple3<IModelInfo,java.lang.ClassLoader,java.util.Collection<IComponentFeatureFactory>>> getModelCache()
Gets the model cache.- Returns:
- The model cache.
-
getCidCounts
public IRwMap<java.lang.String,java.lang.Integer> getCidCounts()
Gets the cid counts.- Returns:
- The cid counts.
-
readLock
public IAutoLock readLock()
Locks the read lock for resource-based locking.
-
writeLock
public IAutoLock writeLock()
Locks the write lock for resource-based locking.
-
-