|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sdnplatform.sync.internal.AbstractSyncManager
public abstract class AbstractSyncManager
An abstract base class for modules providing ISyncService
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.sdnplatform.sync.ISyncService |
---|
ISyncService.Scope |
Constructor Summary | |
---|---|
AbstractSyncManager()
|
Method Summary | ||
---|---|---|
abstract void |
addListener(java.lang.String storeName,
MappingStoreListener listener)
Add a listener to the specified store |
|
abstract short |
getLocalNodeId()
Get the local ID of the local node |
|
java.util.Collection<java.lang.Class<? extends IFloodlightService>> |
getModuleServices()
Return the list of interfaces that this module implements. |
|
java.util.Map<java.lang.Class<? extends IFloodlightService>,IFloodlightService> |
getServiceImpls()
Instantiate (as needed) and return objects that implement each of the services exported by this module. |
|
abstract IStore<ByteArray,byte[]> |
getStore(java.lang.String storeName)
Get a store object corresponding to the given store name |
|
|
getStoreClient(java.lang.String storeName,
java.lang.Class<K> keyClass,
java.lang.Class<V> valueClass)
Get a store client for the given store. |
|
|
getStoreClient(java.lang.String storeName,
java.lang.Class<K> keyClass,
java.lang.Class<V> valueClass,
IInconsistencyResolver<Versioned<V>> resolver)
Get a store client that will use the provided inconsistency resolver to resolve concurrent updates. |
|
|
getStoreClient(java.lang.String storeName,
java.lang.Class<K> keyClass,
com.fasterxml.jackson.core.type.TypeReference<K> keyType,
java.lang.Class<V> valueClass,
com.fasterxml.jackson.core.type.TypeReference<V> valueType,
IInconsistencyResolver<Versioned<V>> resolver)
The "real" version of getStoreClient that will be called by all the others |
|
|
getStoreClient(java.lang.String storeName,
com.fasterxml.jackson.core.type.TypeReference<K> keyType,
com.fasterxml.jackson.core.type.TypeReference<V> valueType)
Get a store client for the given store. |
|
|
getStoreClient(java.lang.String storeName,
com.fasterxml.jackson.core.type.TypeReference<K> keyType,
com.fasterxml.jackson.core.type.TypeReference<V> valueType,
IInconsistencyResolver<Versioned<V>> resolver)
Get a store client that will use the provided inconsistency resolver to resolve concurrent updates. |
|
abstract void |
shutdown()
Shut down the sync manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.sdnplatform.sync.ISyncService |
---|
registerPersistentStore, registerStore |
Methods inherited from interface net.floodlightcontroller.core.module.IFloodlightModule |
---|
getModuleDependencies, init, startUp |
Constructor Detail |
---|
public AbstractSyncManager()
Method Detail |
---|
public <K,V> IStoreClient<K,V> getStoreClient(java.lang.String storeName, java.lang.Class<K> keyClass, java.lang.Class<V> valueClass) throws UnknownStoreException
ISyncService
getStoreClient
in interface ISyncService
storeName
- the name of the store to retrievekeyClass
- the class for the underlying key needed for
deserializationvalueClass
- the class for the underlying value needed for
deserialization
UnknownStoreException
public <K,V> IStoreClient<K,V> getStoreClient(java.lang.String storeName, com.fasterxml.jackson.core.type.TypeReference<K> keyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) throws UnknownStoreException
ISyncService
getStoreClient
in interface ISyncService
storeName
- the name of the store to retrievekeyType
- the type reference for the underlying key needed for
deserializationvalueType
- the type reference for the underlying value needed for
deserialization
UnknownStoreException
public <K,V> IStoreClient<K,V> getStoreClient(java.lang.String storeName, com.fasterxml.jackson.core.type.TypeReference<K> keyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType, IInconsistencyResolver<Versioned<V>> resolver) throws UnknownStoreException
ISyncService
getStoreClient
in interface ISyncService
storeName
- the name of the store to retrievekeyType
- the type reference for the underlying key needed for
deserializationvalueType
- the type reference for the underlying value needed for
deserializationresolver
- the inconsistency resolver to use for the store
UnknownStoreException
public <K,V> IStoreClient<K,V> getStoreClient(java.lang.String storeName, java.lang.Class<K> keyClass, java.lang.Class<V> valueClass, IInconsistencyResolver<Versioned<V>> resolver) throws UnknownStoreException
ISyncService
getStoreClient
in interface ISyncService
storeName
- the name of the store to retrievekeyClass
- the class for the underlying key needed for
deserializationvalueClass
- the class for the underlying value needed for
deserializationresolver
- the inconsistency resolver to use for the store
UnknownStoreException
public java.util.Collection<java.lang.Class<? extends IFloodlightService>> getModuleServices()
IFloodlightModule
getModuleServices
in interface IFloodlightModule
public java.util.Map<java.lang.Class<? extends IFloodlightService>,IFloodlightService> getServiceImpls()
IFloodlightModule
getServiceImpls
in interface IFloodlightModule
public <K,V> IStoreClient<K,V> getStoreClient(java.lang.String storeName, java.lang.Class<K> keyClass, com.fasterxml.jackson.core.type.TypeReference<K> keyType, java.lang.Class<V> valueClass, com.fasterxml.jackson.core.type.TypeReference<V> valueType, IInconsistencyResolver<Versioned<V>> resolver) throws UnknownStoreException
storeName
- the store namekeyClass
- the key classkeyType
- the key typevalueClass
- the value classvalueType
- the value typeresolver
- the inconsistency resolver
DefaultStoreClient
using the given parameters.
UnknownStoreException
public abstract IStore<ByteArray,byte[]> getStore(java.lang.String storeName) throws UnknownStoreException
storeName
- the store name
IStore
UnknownStoreException
public abstract short getLocalNodeId()
public abstract void addListener(java.lang.String storeName, MappingStoreListener listener) throws UnknownStoreException
storeName
- the name of the storelistener
- the listener to add
UnknownStoreException
public abstract void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |