Class DistributedApplicationStore

  • All Implemented Interfaces:
    org.onosproject.app.ApplicationStore, org.onosproject.store.Store<org.onosproject.app.ApplicationEvent,​org.onosproject.app.ApplicationStoreDelegate>

    public class DistributedApplicationStore
    extends org.onosproject.common.app.ApplicationArchive
    implements org.onosproject.app.ApplicationStore
    Manages inventory of applications in a distributed data store providing stronger consistency guarantees.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.onosproject.store.cluster.messaging.ClusterCommunicationService clusterCommunicator  
      protected org.onosproject.cluster.ClusterService clusterService  
      protected org.onosproject.app.ApplicationIdStore idStore  
      protected org.onosproject.store.service.StorageService storageService  
      protected org.onosproject.core.VersionService versionService  
      • Fields inherited from class org.onosproject.store.AbstractStore

        delegate
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activate()  
      void activate​(org.onosproject.core.ApplicationId appId)  
      org.onosproject.core.Application create​(java.io.InputStream appDescStream)  
      void deactivate()  
      void deactivate​(org.onosproject.core.ApplicationId appId)  
      org.onosproject.core.Application getApplication​(org.onosproject.core.ApplicationId appId)  
      java.io.InputStream getApplicationArchive​(org.onosproject.core.ApplicationId appId)  
      java.util.Set<org.onosproject.core.Application> getApplications()  
      org.onosproject.core.ApplicationId getId​(java.lang.String name)  
      java.util.Set<org.onosproject.security.Permission> getPermissions​(org.onosproject.core.ApplicationId appId)  
      org.onosproject.app.ApplicationState getState​(org.onosproject.core.ApplicationId appId)  
      void remove​(org.onosproject.core.ApplicationId appId)  
      void setDelegate​(org.onosproject.app.ApplicationStoreDelegate delegate)  
      void setPermissions​(org.onosproject.core.ApplicationId appId, java.util.Set<org.onosproject.security.Permission> permissions)  
      • Methods inherited from class org.onosproject.common.app.ApplicationArchive

        clearActive, getApplicationDescription, getApplicationInputStream, getApplicationNames, getRole, getRootPath, getUpdateTime, isActive, purgeApplication, saveApplication, setActive, setRootPath, updateTime
      • Methods inherited from class org.onosproject.store.AbstractStore

        hasDelegate, notifyDelegate, notifyDelegate, unsetDelegate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.onosproject.store.Store

        hasDelegate, unsetDelegate
    • Field Detail

      • clusterCommunicator

        protected org.onosproject.store.cluster.messaging.ClusterCommunicationService clusterCommunicator
      • clusterService

        protected org.onosproject.cluster.ClusterService clusterService
      • storageService

        protected org.onosproject.store.service.StorageService storageService
      • idStore

        protected org.onosproject.app.ApplicationIdStore idStore
      • versionService

        protected org.onosproject.core.VersionService versionService
    • Constructor Detail

      • DistributedApplicationStore

        public DistributedApplicationStore()
    • Method Detail

      • activate

        public void activate()
      • deactivate

        public void deactivate()
      • setDelegate

        public void setDelegate​(org.onosproject.app.ApplicationStoreDelegate delegate)
        Specified by:
        setDelegate in interface org.onosproject.store.Store<org.onosproject.app.ApplicationEvent,​org.onosproject.app.ApplicationStoreDelegate>
        Overrides:
        setDelegate in class org.onosproject.store.AbstractStore<org.onosproject.app.ApplicationEvent,​org.onosproject.app.ApplicationStoreDelegate>
      • getApplications

        public java.util.Set<org.onosproject.core.Application> getApplications()
        Specified by:
        getApplications in interface org.onosproject.app.ApplicationStore
      • getId

        public org.onosproject.core.ApplicationId getId​(java.lang.String name)
        Specified by:
        getId in interface org.onosproject.app.ApplicationStore
      • getApplication

        public org.onosproject.core.Application getApplication​(org.onosproject.core.ApplicationId appId)
        Specified by:
        getApplication in interface org.onosproject.app.ApplicationStore
      • getState

        public org.onosproject.app.ApplicationState getState​(org.onosproject.core.ApplicationId appId)
        Specified by:
        getState in interface org.onosproject.app.ApplicationStore
      • create

        public org.onosproject.core.Application create​(java.io.InputStream appDescStream)
        Specified by:
        create in interface org.onosproject.app.ApplicationStore
      • remove

        public void remove​(org.onosproject.core.ApplicationId appId)
        Specified by:
        remove in interface org.onosproject.app.ApplicationStore
      • activate

        public void activate​(org.onosproject.core.ApplicationId appId)
        Specified by:
        activate in interface org.onosproject.app.ApplicationStore
      • deactivate

        public void deactivate​(org.onosproject.core.ApplicationId appId)
        Specified by:
        deactivate in interface org.onosproject.app.ApplicationStore
      • getPermissions

        public java.util.Set<org.onosproject.security.Permission> getPermissions​(org.onosproject.core.ApplicationId appId)
        Specified by:
        getPermissions in interface org.onosproject.app.ApplicationStore
      • setPermissions

        public void setPermissions​(org.onosproject.core.ApplicationId appId,
                                   java.util.Set<org.onosproject.security.Permission> permissions)
        Specified by:
        setPermissions in interface org.onosproject.app.ApplicationStore
      • getApplicationArchive

        public java.io.InputStream getApplicationArchive​(org.onosproject.core.ApplicationId appId)
        Specified by:
        getApplicationArchive in interface org.onosproject.app.ApplicationStore