@Service
public class DistributedApplicationStore
extends org.onosproject.common.app.ApplicationArchive
implements org.onosproject.app.ApplicationStore
| Modifier and Type | Class and Description |
|---|---|
static class |
DistributedApplicationStore.InternalState |
| Modifier and Type | Field and 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 |
| Constructor and Description |
|---|
DistributedApplicationStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
activate(org.onosproject.core.ApplicationId appId) |
org.onosproject.core.Application |
create(InputStream appDescStream) |
void |
deactivate() |
void |
deactivate(org.onosproject.core.ApplicationId appId) |
org.onosproject.core.Application |
getApplication(org.onosproject.core.ApplicationId appId) |
Set<org.onosproject.core.Application> |
getApplications() |
org.onosproject.core.ApplicationId |
getId(String name) |
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,
Set<org.onosproject.security.Permission> permissions) |
clearActive, getApplicationDescription, getApplicationInputStream, getApplicationNames, getRole, getRootPath, getUpdateTime, isActive, purgeApplication, saveApplication, setActive, setRootPath, updateTimehasDelegate, notifyDelegate, notifyDelegate, unsetDelegate@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.cluster.messaging.ClusterCommunicationService clusterCommunicator
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cluster.ClusterService clusterService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.app.ApplicationIdStore idStore
@Activate public void activate()
@Deactivate public void deactivate()
public void setDelegate(org.onosproject.app.ApplicationStoreDelegate delegate)
setDelegate in interface org.onosproject.store.Store<org.onosproject.app.ApplicationEvent,org.onosproject.app.ApplicationStoreDelegate>setDelegate in class org.onosproject.store.AbstractStore<org.onosproject.app.ApplicationEvent,org.onosproject.app.ApplicationStoreDelegate>public Set<org.onosproject.core.Application> getApplications()
getApplications in interface org.onosproject.app.ApplicationStorepublic org.onosproject.core.ApplicationId getId(String name)
getId in interface org.onosproject.app.ApplicationStorepublic org.onosproject.core.Application getApplication(org.onosproject.core.ApplicationId appId)
getApplication in interface org.onosproject.app.ApplicationStorepublic org.onosproject.app.ApplicationState getState(org.onosproject.core.ApplicationId appId)
getState in interface org.onosproject.app.ApplicationStorepublic org.onosproject.core.Application create(InputStream appDescStream)
create in interface org.onosproject.app.ApplicationStorepublic void remove(org.onosproject.core.ApplicationId appId)
remove in interface org.onosproject.app.ApplicationStorepublic void activate(org.onosproject.core.ApplicationId appId)
activate in interface org.onosproject.app.ApplicationStorepublic void deactivate(org.onosproject.core.ApplicationId appId)
deactivate in interface org.onosproject.app.ApplicationStorepublic Set<org.onosproject.security.Permission> getPermissions(org.onosproject.core.ApplicationId appId)
getPermissions in interface org.onosproject.app.ApplicationStorepublic void setPermissions(org.onosproject.core.ApplicationId appId,
Set<org.onosproject.security.Permission> permissions)
setPermissions in interface org.onosproject.app.ApplicationStore