@Service public class StorageManager extends Object implements StorageService, StorageAdminService
StorageService and StorageAdminService.| Modifier and Type | Field and Description |
|---|---|
protected ClusterCommunicationService |
clusterCommunicator |
protected ClusterService |
clusterService |
protected PartitionAdminService |
partitionAdminService |
protected PartitionService |
partitionService |
protected PersistenceService |
persistenceService |
| Constructor and Description |
|---|
StorageManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
AtomicCounterBuilder |
atomicCounterBuilder()
Creates a new AtomicCounterBuilder.
|
<K> AtomicCounterMapBuilder<K> |
atomicCounterMapBuilder()
Creates a new
AtomicCounterMapBuilder. |
<V> AtomicValueBuilder<V> |
atomicValueBuilder()
Creates a new AtomicValueBuilder.
|
<K,V> ConsistentMapBuilder<K,V> |
consistentMapBuilder()
Creates a new ConsistentMapBuilder.
|
<K,V> ConsistentMultimapBuilder<K,V> |
consistentMultimapBuilder()
Creates a new
AsyncConsistentSetMultimapBuilder. |
<V> ConsistentTreeMapBuilder<V> |
consistentTreeMapBuilder()
Creates a new
AsyncConsistentTreeMapBuilder. |
void |
deactivate() |
<V> DocumentTreeBuilder<V> |
documentTreeBuilder()
Creates a new ConsistentMapBuilder.
|
<K,V> EventuallyConsistentMapBuilder<K,V> |
eventuallyConsistentMapBuilder()
Creates a new EventuallyConsistentMapBuilder.
|
<K,V> AsyncConsistentMultimap<K,V> |
getAsyncSetMultimap(String name,
Serializer serializer)
Returns a set backed instance of
AsyncConsistentMultimap with
the specified name. |
<V> AsyncConsistentTreeMap<V> |
getAsyncTreeMap(String name,
Serializer serializer)
Returns an instance of
AsyncConsistentTreeMap with the specified
name. |
Map<String,Long> |
getCounters()
Returns information about all the atomic counters in the system.
|
<V> AsyncDocumentTree<V> |
getDocumentTree(String name,
Serializer serializer)
Returns an instance of
AsyncDocumentTree with specified name. |
List<MapInfo> |
getMapInfo()
Returns information about all the consistent maps in the system.
|
List<PartitionInfo> |
getPartitionInfo()
Returns information about all partitions in the system.
|
Collection<TransactionId> |
getPendingTransactions()
Returns all pending transactions.
|
Map<String,WorkQueueStats> |
getQueueStats()
Returns statistics for all the work queues in the system.
|
<T> Topic<T> |
getTopic(String name,
Serializer serializer)
Returns an instance of
Topic with specified name. |
<E> WorkQueue<E> |
getWorkQueue(String name,
Serializer serializer)
Returns an instance of
WorkQueue with specified name. |
LeaderElectorBuilder |
leaderElectorBuilder()
Creates a new LeaderElectorBuilder.
|
<E> DistributedSetBuilder<E> |
setBuilder()
Creates a new DistributedSetBuilder.
|
TransactionContextBuilder |
transactionContextBuilder()
Creates a new transaction context builder.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsyncAtomicCounter, getAtomicCounter@Reference(cardinality=MANDATORY_UNARY) protected ClusterService clusterService
@Reference(cardinality=MANDATORY_UNARY) protected ClusterCommunicationService clusterCommunicator
@Reference(cardinality=MANDATORY_UNARY) protected PersistenceService persistenceService
@Reference(cardinality=MANDATORY_UNARY) protected PartitionService partitionService
@Reference(cardinality=MANDATORY_UNARY) protected PartitionAdminService partitionAdminService
@Activate public void activate()
@Deactivate public void deactivate()
public <K,V> EventuallyConsistentMapBuilder<K,V> eventuallyConsistentMapBuilder()
StorageServiceeventuallyConsistentMapBuilder in interface StorageServiceK - key typeV - value typepublic <K,V> ConsistentMapBuilder<K,V> consistentMapBuilder()
StorageServiceconsistentMapBuilder in interface StorageServiceK - key typeV - value typepublic <V> DocumentTreeBuilder<V> documentTreeBuilder()
StorageServicedocumentTreeBuilder in interface StorageServiceV - value typepublic <V> ConsistentTreeMapBuilder<V> consistentTreeMapBuilder()
StorageServiceAsyncConsistentTreeMapBuilder.consistentTreeMapBuilder in interface StorageServiceV - value typepublic <K,V> ConsistentMultimapBuilder<K,V> consistentMultimapBuilder()
StorageServiceAsyncConsistentSetMultimapBuilder.consistentMultimapBuilder in interface StorageServiceK - key typeV - value typepublic <K> AtomicCounterMapBuilder<K> atomicCounterMapBuilder()
StorageServiceAtomicCounterMapBuilder.atomicCounterMapBuilder in interface StorageServiceK - key typepublic <E> DistributedSetBuilder<E> setBuilder()
StorageServicesetBuilder in interface StorageServiceE - set element typepublic AtomicCounterBuilder atomicCounterBuilder()
StorageServiceatomicCounterBuilder in interface StorageServicepublic <V> AtomicValueBuilder<V> atomicValueBuilder()
StorageServiceatomicValueBuilder in interface StorageServiceV - atomic value typepublic TransactionContextBuilder transactionContextBuilder()
StorageServicetransactionContextBuilder in interface StorageServicepublic LeaderElectorBuilder leaderElectorBuilder()
StorageServiceleaderElectorBuilder in interface StorageServicepublic <E> WorkQueue<E> getWorkQueue(String name, Serializer serializer)
StorageServiceWorkQueue with specified name.getWorkQueue in interface StorageServiceE - work element typename - work queue nameserializer - serializerpublic <V> AsyncDocumentTree<V> getDocumentTree(String name, Serializer serializer)
StorageServiceAsyncDocumentTree with specified name.getDocumentTree in interface StorageServiceV - tree node value typename - document tree nameserializer - serializerpublic <K,V> AsyncConsistentMultimap<K,V> getAsyncSetMultimap(String name, Serializer serializer)
StorageServiceAsyncConsistentMultimap with
the specified name.getAsyncSetMultimap in interface StorageServiceK - key typeV - value typename - the multimap nameserializer - serializerAsyncConsistentMultimap instancepublic <V> AsyncConsistentTreeMap<V> getAsyncTreeMap(String name, Serializer serializer)
StorageServiceAsyncConsistentTreeMap with the specified
name.getAsyncTreeMap in interface StorageServiceV - value typename - the treemap nameserializer - serializerAsyncConsistentTreeMap instancepublic List<MapInfo> getMapInfo()
StorageAdminServicegetMapInfo in interface StorageAdminServicepublic Map<String,Long> getCounters()
StorageAdminServicegetCounters in interface StorageAdminServicepublic Map<String,WorkQueueStats> getQueueStats()
StorageAdminServicegetQueueStats in interface StorageAdminServicepublic List<PartitionInfo> getPartitionInfo()
StorageAdminServicegetPartitionInfo in interface StorageAdminServicepublic Collection<TransactionId> getPendingTransactions()
StorageAdminServicegetPendingTransactions in interface StorageAdminServicepublic <T> Topic<T> getTopic(String name, Serializer serializer)
StorageServiceTopic with specified name.getTopic in interface StorageServiceT - topic message typename - topic nameserializer - serializer