@Service public class DatabaseManager extends Object implements org.onosproject.store.service.StorageService, org.onosproject.store.service.StorageAdminService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.app.ApplicationService |
applicationService |
static String |
BASE_PARTITION_NAME |
protected org.onosproject.store.cluster.messaging.ClusterCommunicationService |
clusterCommunicator |
protected org.onosproject.cluster.ClusterService |
clusterService |
static int |
COPYCAT_TCP_PORT |
protected Database |
inMemoryDatabase |
protected org.onosproject.cluster.NodeId |
localNodeId |
static String |
PARTITION_DEFINITION_FILE |
protected PartitionedDatabase |
partitionedDatabase |
| Constructor and Description |
|---|
DatabaseManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
org.onosproject.store.service.AtomicCounterBuilder |
atomicCounterBuilder() |
<V> org.onosproject.store.service.AtomicValueBuilder<V> |
atomicValueBuilder() |
protected void |
bindApplicationService(org.onosproject.app.ApplicationService service) |
<K,V> org.onosproject.store.service.ConsistentMapBuilder<K,V> |
consistentMapBuilder() |
void |
deactivate() |
<K,V> org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V> |
eventuallyConsistentMapBuilder() |
Map<String,Long> |
getCounters() |
Map<String,Long> |
getInMemoryDatabaseCounters() |
List<org.onosproject.store.service.MapInfo> |
getMapInfo() |
Map<String,Long> |
getPartitionedDatabaseCounters() |
List<org.onosproject.store.service.PartitionInfo> |
getPartitionInfo() |
Collection<org.onosproject.store.service.Transaction> |
getTransactions() |
protected String |
nodeToUri(NodeInfo node) |
<E> org.onosproject.store.service.DistributedQueueBuilder<E> |
queueBuilder() |
void |
redriveTransactions() |
protected <K,V> DefaultAsyncConsistentMap<K,V> |
registerMap(DefaultAsyncConsistentMap<K,V> map) |
<E> org.onosproject.store.service.DistributedSetBuilder<E> |
setBuilder() |
org.onosproject.store.service.TransactionContextBuilder |
transactionContextBuilder() |
protected void |
unbindApplicationService(org.onosproject.app.ApplicationService service) |
protected <K,V> void |
unregisterMap(DefaultAsyncConsistentMap<K,V> map) |
public static final int COPYCAT_TCP_PORT
public static final String PARTITION_DEFINITION_FILE
public static final String BASE_PARTITION_NAME
protected PartitionedDatabase partitionedDatabase
protected Database inMemoryDatabase
protected org.onosproject.cluster.NodeId localNodeId
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cluster.ClusterService clusterService
@Reference(cardinality=OPTIONAL_UNARY,
policy=DYNAMIC)
protected org.onosproject.app.ApplicationService applicationService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.cluster.messaging.ClusterCommunicationService clusterCommunicator
protected void bindApplicationService(org.onosproject.app.ApplicationService service)
protected void unbindApplicationService(org.onosproject.app.ApplicationService service)
@Activate public void activate()
@Deactivate public void deactivate()
public org.onosproject.store.service.TransactionContextBuilder transactionContextBuilder()
transactionContextBuilder in interface org.onosproject.store.service.StorageServicepublic List<org.onosproject.store.service.PartitionInfo> getPartitionInfo()
getPartitionInfo in interface org.onosproject.store.service.StorageAdminServicepublic <K,V> org.onosproject.store.service.EventuallyConsistentMapBuilder<K,V> eventuallyConsistentMapBuilder()
eventuallyConsistentMapBuilder in interface org.onosproject.store.service.StorageServicepublic <K,V> org.onosproject.store.service.ConsistentMapBuilder<K,V> consistentMapBuilder()
consistentMapBuilder in interface org.onosproject.store.service.StorageServicepublic <E> org.onosproject.store.service.DistributedSetBuilder<E> setBuilder()
setBuilder in interface org.onosproject.store.service.StorageServicepublic <E> org.onosproject.store.service.DistributedQueueBuilder<E> queueBuilder()
queueBuilder in interface org.onosproject.store.service.StorageServicepublic org.onosproject.store.service.AtomicCounterBuilder atomicCounterBuilder()
atomicCounterBuilder in interface org.onosproject.store.service.StorageServicepublic <V> org.onosproject.store.service.AtomicValueBuilder<V> atomicValueBuilder()
atomicValueBuilder in interface org.onosproject.store.service.StorageServicepublic List<org.onosproject.store.service.MapInfo> getMapInfo()
getMapInfo in interface org.onosproject.store.service.StorageAdminServicepublic Map<String,Long> getCounters()
getCounters in interface org.onosproject.store.service.StorageAdminServicepublic Map<String,Long> getPartitionedDatabaseCounters()
getPartitionedDatabaseCounters in interface org.onosproject.store.service.StorageAdminServicepublic Map<String,Long> getInMemoryDatabaseCounters()
getInMemoryDatabaseCounters in interface org.onosproject.store.service.StorageAdminServicepublic Collection<org.onosproject.store.service.Transaction> getTransactions()
getTransactions in interface org.onosproject.store.service.StorageAdminServicepublic void redriveTransactions()
redriveTransactions in interface org.onosproject.store.service.StorageAdminServiceprotected <K,V> DefaultAsyncConsistentMap<K,V> registerMap(DefaultAsyncConsistentMap<K,V> map)
protected <K,V> void unregisterMap(DefaultAsyncConsistentMap<K,V> map)
Copyright © 2015. All rights reserved.