public class CmsState
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CmsState.CmsComponentState
State for a particular component.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Collection<SubscriptionIntermediateFuture<CMSStatusEvent>> |
allcomponentslisteners
Listeners listening to all components.
|
protected IRwMap<java.lang.String,java.lang.Integer> |
cidcounts
The component ID counts.
|
protected IRwMap<IResourceIdentifier,java.lang.ClassLoader> |
classloaders
ClassLoader cache.
|
protected IRwMap<IComponentIdentifier,CmsState.CmsComponentState> |
componentmap
The component map.
|
protected IRwMap<Tuple,java.lang.String> |
localtypes
The local types.
|
protected IRwMap<Tuple2<java.lang.String,java.lang.ClassLoader>,Tuple3<IModelInfo,java.lang.ClassLoader,java.util.Collection<IComponentFeatureFactory>>> |
modelcache
The model cache.
|
Constructor and Description |
---|
CmsState()
Creates the state.
|
Modifier and Type | Method and Description |
---|---|
IPlatformComponentAccess |
getAccess(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.CmsComponentState |
getComponent(IComponentIdentifier cid)
Convenience method to get the state of a component.
|
java.util.Map<IComponentIdentifier,CmsState.CmsComponentState> |
getComponentMap()
Gets the component map.
|
InitInfo |
getInitInfo(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.
|
IAutoLock |
readLock()
Locks the read lock for resource-based locking.
|
IAutoLock |
writeLock()
Locks the write lock for resource-based locking.
|
protected IRwMap<IComponentIdentifier,CmsState.CmsComponentState> componentmap
protected IRwMap<IResourceIdentifier,java.lang.ClassLoader> classloaders
protected IRwMap<Tuple2<java.lang.String,java.lang.ClassLoader>,Tuple3<IModelInfo,java.lang.ClassLoader,java.util.Collection<IComponentFeatureFactory>>> modelcache
protected IRwMap<java.lang.String,java.lang.Integer> cidcounts
protected java.util.Collection<SubscriptionIntermediateFuture<CMSStatusEvent>> allcomponentslisteners
public IPlatformComponentAccess getAccess(IComponentIdentifier cid)
cid
- The component ID.public IFuture<java.util.Map<java.lang.String,java.lang.Object>> getCleanupFuture(IComponentIdentifier cid)
cid
- The component ID.public InitInfo getInitInfo(IComponentIdentifier cid)
cid
- The component ID.public java.util.Collection<SubscriptionIntermediateFuture<CMSStatusEvent>> getCmsListeners(IComponentIdentifier cid)
cid
- The component ID or null.public java.util.Collection<SubscriptionIntermediateFuture<CMSStatusEvent>> getAllListeners()
public CmsState.CmsComponentState getComponent(IComponentIdentifier cid)
cid
- The component ID.public java.util.Map<IComponentIdentifier,CmsState.CmsComponentState> getComponentMap()
public IRwMap<Tuple,java.lang.String> getLocalTypes()
public IRwMap<IResourceIdentifier,java.lang.ClassLoader> getClassLoaders()
public IRwMap<Tuple2<java.lang.String,java.lang.ClassLoader>,Tuple3<IModelInfo,java.lang.ClassLoader,java.util.Collection<IComponentFeatureFactory>>> getModelCache()
public IRwMap<java.lang.String,java.lang.Integer> getCidCounts()
public IAutoLock readLock()
public IAutoLock writeLock()