@Service public class DatabaseManager extends Object implements org.onosproject.store.service.StorageService, org.onosproject.store.service.StorageAdminService
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_PARTITION_NAME |
protected org.onosproject.store.cluster.messaging.ClusterCommunicationService |
clusterCommunicator |
protected org.onosproject.cluster.ClusterService |
clusterService |
static int |
COPYCAT_TCP_PORT |
static String |
PARTITION_DEFINITION_FILE |
| Constructor and Description |
|---|
DatabaseManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
org.onosproject.store.service.AtomicCounterBuilder |
atomicCounterBuilder() |
<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) |
void |
redriveTransactions() |
<E> org.onosproject.store.service.SetBuilder<E> |
setBuilder() |
org.onosproject.store.service.TransactionContextBuilder |
transactionContextBuilder() |
public static final int COPYCAT_TCP_PORT
public static final String PARTITION_DEFINITION_FILE
public static final String BASE_PARTITION_NAME
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cluster.ClusterService clusterService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.cluster.messaging.ClusterCommunicationService clusterCommunicator
@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.SetBuilder<E> setBuilder()
setBuilder in interface org.onosproject.store.service.StorageServicepublic org.onosproject.store.service.AtomicCounterBuilder atomicCounterBuilder()
atomicCounterBuilder 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.StorageAdminServiceCopyright © 2015. All rights reserved.