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.ApplicationStore
Manages inventory of applications in a distributed data store providing stronger consistency guarantees.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DistributedApplicationStore.InternalState
-
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
-
Constructor Summary
Constructors Constructor Description DistributedApplicationStore()
-
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
-
-
-
-
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:
setDelegate
in interfaceorg.onosproject.store.Store<org.onosproject.app.ApplicationEvent,org.onosproject.app.ApplicationStoreDelegate>
- Overrides:
setDelegate
in classorg.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 interfaceorg.onosproject.app.ApplicationStore
-
getId
public org.onosproject.core.ApplicationId getId(java.lang.String name)
- Specified by:
getId
in interfaceorg.onosproject.app.ApplicationStore
-
getApplication
public org.onosproject.core.Application getApplication(org.onosproject.core.ApplicationId appId)
- Specified by:
getApplication
in interfaceorg.onosproject.app.ApplicationStore
-
getState
public org.onosproject.app.ApplicationState getState(org.onosproject.core.ApplicationId appId)
- Specified by:
getState
in interfaceorg.onosproject.app.ApplicationStore
-
create
public org.onosproject.core.Application create(java.io.InputStream appDescStream)
- Specified by:
create
in interfaceorg.onosproject.app.ApplicationStore
-
remove
public void remove(org.onosproject.core.ApplicationId appId)
- Specified by:
remove
in interfaceorg.onosproject.app.ApplicationStore
-
activate
public void activate(org.onosproject.core.ApplicationId appId)
- Specified by:
activate
in interfaceorg.onosproject.app.ApplicationStore
-
deactivate
public void deactivate(org.onosproject.core.ApplicationId appId)
- Specified by:
deactivate
in interfaceorg.onosproject.app.ApplicationStore
-
getPermissions
public java.util.Set<org.onosproject.security.Permission> getPermissions(org.onosproject.core.ApplicationId appId)
- Specified by:
getPermissions
in interfaceorg.onosproject.app.ApplicationStore
-
setPermissions
public void setPermissions(org.onosproject.core.ApplicationId appId, java.util.Set<org.onosproject.security.Permission> permissions)
- Specified by:
setPermissions
in interfaceorg.onosproject.app.ApplicationStore
-
getApplicationArchive
public java.io.InputStream getApplicationArchive(org.onosproject.core.ApplicationId appId)
- Specified by:
getApplicationArchive
in interfaceorg.onosproject.app.ApplicationStore
-
-