Package org.onosproject.store.app
Class DistributedApplicationStore
- java.lang.Object
-
- org.onosproject.store.AbstractStore<org.onosproject.app.ApplicationEvent,org.onosproject.app.ApplicationStoreDelegate>
-
- org.onosproject.common.app.ApplicationArchive
-
- org.onosproject.store.app.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.ApplicationStoreManages inventory of applications in a distributed data store providing stronger consistency guarantees.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDistributedApplicationStore.InternalState
-
Field Summary
Fields Modifier and Type Field Description protected org.onosproject.store.cluster.messaging.ClusterCommunicationServiceclusterCommunicatorprotected org.onosproject.cluster.ClusterServiceclusterServiceprotected org.onosproject.app.ApplicationIdStoreidStoreprotected org.onosproject.store.service.StorageServicestorageServiceprotected org.onosproject.core.VersionServiceversionService
-
Constructor Summary
Constructors Constructor Description DistributedApplicationStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()voidactivate(org.onosproject.core.ApplicationId appId)org.onosproject.core.Applicationcreate(java.io.InputStream appDescStream)voiddeactivate()voiddeactivate(org.onosproject.core.ApplicationId appId)org.onosproject.core.ApplicationgetApplication(org.onosproject.core.ApplicationId appId)java.io.InputStreamgetApplicationArchive(org.onosproject.core.ApplicationId appId)java.util.Set<org.onosproject.core.Application>getApplications()org.onosproject.core.ApplicationIdgetId(java.lang.String name)java.util.Set<org.onosproject.security.Permission>getPermissions(org.onosproject.core.ApplicationId appId)org.onosproject.app.ApplicationStategetState(org.onosproject.core.ApplicationId appId)voidremove(org.onosproject.core.ApplicationId appId)voidsetDelegate(org.onosproject.app.ApplicationStoreDelegate delegate)voidsetPermissions(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
-
-
-
-
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
-
-
Method Detail
-
activate
public void activate()
-
deactivate
public void deactivate()
-
setDelegate
public void setDelegate(org.onosproject.app.ApplicationStoreDelegate delegate)
- Specified by:
setDelegatein interfaceorg.onosproject.store.Store<org.onosproject.app.ApplicationEvent,org.onosproject.app.ApplicationStoreDelegate>- Overrides:
setDelegatein classorg.onosproject.store.AbstractStore<org.onosproject.app.ApplicationEvent,org.onosproject.app.ApplicationStoreDelegate>
-
getApplications
public java.util.Set<org.onosproject.core.Application> getApplications()
- Specified by:
getApplicationsin interfaceorg.onosproject.app.ApplicationStore
-
getId
public org.onosproject.core.ApplicationId getId(java.lang.String name)
- Specified by:
getIdin interfaceorg.onosproject.app.ApplicationStore
-
getApplication
public org.onosproject.core.Application getApplication(org.onosproject.core.ApplicationId appId)
- Specified by:
getApplicationin interfaceorg.onosproject.app.ApplicationStore
-
getState
public org.onosproject.app.ApplicationState getState(org.onosproject.core.ApplicationId appId)
- Specified by:
getStatein interfaceorg.onosproject.app.ApplicationStore
-
create
public org.onosproject.core.Application create(java.io.InputStream appDescStream)
- Specified by:
createin interfaceorg.onosproject.app.ApplicationStore
-
remove
public void remove(org.onosproject.core.ApplicationId appId)
- Specified by:
removein interfaceorg.onosproject.app.ApplicationStore
-
activate
public void activate(org.onosproject.core.ApplicationId appId)
- Specified by:
activatein interfaceorg.onosproject.app.ApplicationStore
-
deactivate
public void deactivate(org.onosproject.core.ApplicationId appId)
- Specified by:
deactivatein interfaceorg.onosproject.app.ApplicationStore
-
getPermissions
public java.util.Set<org.onosproject.security.Permission> getPermissions(org.onosproject.core.ApplicationId appId)
- Specified by:
getPermissionsin interfaceorg.onosproject.app.ApplicationStore
-
setPermissions
public void setPermissions(org.onosproject.core.ApplicationId appId, java.util.Set<org.onosproject.security.Permission> permissions)- Specified by:
setPermissionsin interfaceorg.onosproject.app.ApplicationStore
-
getApplicationArchive
public java.io.InputStream getApplicationArchive(org.onosproject.core.ApplicationId appId)
- Specified by:
getApplicationArchivein interfaceorg.onosproject.app.ApplicationStore
-
-