@Service
public class StaticClusterMetadataStore
extends org.onosproject.store.AbstractStore<org.onosproject.cluster.ClusterMetadataEvent,org.onosproject.cluster.ClusterMetadataStoreDelegate>
implements org.onosproject.cluster.ClusterMetadataStore
| Constructor and Description |
|---|
StaticClusterMetadataStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
Collection<org.onosproject.cluster.NodeId> |
getActiveReplicas(String partitionId) |
org.onosproject.store.service.Versioned<org.onosproject.cluster.ClusterMetadata> |
getClusterMetadata() |
boolean |
hasDelegate() |
void |
setActiveReplica(String partitionId,
org.onosproject.cluster.NodeId nodeId) |
void |
setClusterMetadata(org.onosproject.cluster.ClusterMetadata metadata) |
void |
setDelegate(org.onosproject.cluster.ClusterMetadataStoreDelegate delegate) |
void |
unsetActiveReplica(String partitionId,
org.onosproject.cluster.NodeId nodeId) |
void |
unsetDelegate(org.onosproject.cluster.ClusterMetadataStoreDelegate delegate) |
@Activate public void activate()
@Deactivate public void deactivate()
public void setDelegate(org.onosproject.cluster.ClusterMetadataStoreDelegate delegate)
setDelegate in interface org.onosproject.store.Store<org.onosproject.cluster.ClusterMetadataEvent,org.onosproject.cluster.ClusterMetadataStoreDelegate>setDelegate in class org.onosproject.store.AbstractStore<org.onosproject.cluster.ClusterMetadataEvent,org.onosproject.cluster.ClusterMetadataStoreDelegate>public void unsetDelegate(org.onosproject.cluster.ClusterMetadataStoreDelegate delegate)
unsetDelegate in interface org.onosproject.store.Store<org.onosproject.cluster.ClusterMetadataEvent,org.onosproject.cluster.ClusterMetadataStoreDelegate>unsetDelegate in class org.onosproject.store.AbstractStore<org.onosproject.cluster.ClusterMetadataEvent,org.onosproject.cluster.ClusterMetadataStoreDelegate>public boolean hasDelegate()
hasDelegate in interface org.onosproject.store.Store<org.onosproject.cluster.ClusterMetadataEvent,org.onosproject.cluster.ClusterMetadataStoreDelegate>hasDelegate in class org.onosproject.store.AbstractStore<org.onosproject.cluster.ClusterMetadataEvent,org.onosproject.cluster.ClusterMetadataStoreDelegate>public org.onosproject.store.service.Versioned<org.onosproject.cluster.ClusterMetadata> getClusterMetadata()
getClusterMetadata in interface org.onosproject.cluster.ClusterMetadataStorepublic void setClusterMetadata(org.onosproject.cluster.ClusterMetadata metadata)
setClusterMetadata in interface org.onosproject.cluster.ClusterMetadataStorepublic void setActiveReplica(String partitionId, org.onosproject.cluster.NodeId nodeId)
setActiveReplica in interface org.onosproject.cluster.ClusterMetadataStorepublic void unsetActiveReplica(String partitionId, org.onosproject.cluster.NodeId nodeId)
unsetActiveReplica in interface org.onosproject.cluster.ClusterMetadataStorepublic Collection<org.onosproject.cluster.NodeId> getActiveReplicas(String partitionId)
getActiveReplicas in interface org.onosproject.cluster.ClusterMetadataStoreCopyright © 2015. All rights reserved.