Class CmsState


  • public class CmsState
    extends java.lang.Object
    Class representing the state information for component management.
    • Field Detail

      • localtypes

        protected jadex.commons.collection.IRwMap<jadex.commons.Tuple,​java.lang.String> localtypes
        The local types.
      • classloaders

        protected jadex.commons.collection.IRwMap<IResourceIdentifier,​java.lang.ClassLoader> classloaders
        ClassLoader cache.
      • modelcache

        protected jadex.commons.collection.IRwMap<jadex.commons.Tuple2<java.lang.String,​java.lang.ClassLoader>,​jadex.commons.Tuple3<IModelInfo,​java.lang.ClassLoader,​java.util.Collection<IComponentFeatureFactory>>> modelcache
        The model cache.
      • cidcounts

        protected jadex.commons.collection.IRwMap<java.lang.String,​java.lang.Integer> cidcounts
        The component ID counts.
      • allcomponentslisteners

        protected java.util.Collection<jadex.commons.future.SubscriptionIntermediateFuture<CMSStatusEvent>> allcomponentslisteners
        Listeners listening to all components.
    • Constructor Detail

      • CmsState

        public CmsState()
        Creates the state.
    • Method Detail

      • getCleanupFuture

        public jadex.commons.future.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<jadex.commons.future.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<jadex.commons.future.SubscriptionIntermediateFuture<CMSStatusEvent>> getAllListeners()
      • getLocalTypes

        public jadex.commons.collection.IRwMap<jadex.commons.Tuple,​java.lang.String> getLocalTypes()
        Gets the local types.
        Returns:
        The local types.
      • getClassLoaders

        public jadex.commons.collection.IRwMap<IResourceIdentifier,​java.lang.ClassLoader> getClassLoaders()
        Gets the class loaders.
        Returns:
        The class loaders.
      • getModelCache

        public jadex.commons.collection.IRwMap<jadex.commons.Tuple2<java.lang.String,​java.lang.ClassLoader>,​jadex.commons.Tuple3<IModelInfo,​java.lang.ClassLoader,​java.util.Collection<IComponentFeatureFactory>>> getModelCache()
        Gets the model cache.
        Returns:
        The model cache.
      • getCidCounts

        public jadex.commons.collection.IRwMap<java.lang.String,​java.lang.Integer> getCidCounts()
        Gets the cid counts.
        Returns:
        The cid counts.
      • readLock

        public jadex.commons.collection.IAutoLock readLock()
        Locks the read lock for resource-based locking.
      • writeLock

        public jadex.commons.collection.IAutoLock writeLock()
        Locks the write lock for resource-based locking.