Class DatastoreContextIntrospector
- java.lang.Object
-
- org.opendaylight.controller.cluster.datastore.DatastoreContextIntrospector
-
public class DatastoreContextIntrospector extends Object
Introspects on a DatastoreContext instance to set its properties via reflection. i- Author:
- Thomas Pantelis
-
-
Constructor Summary
Constructors Constructor Description DatastoreContextIntrospector(DatastoreContext context, DataStorePropertiesContainer defaultPropsContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatastoreContext
getContext()
DatastoreContext
getShardDatastoreContext(String forShardName)
DatastoreContextFactory
newContextFactory()
boolean
update(Map<String,Object> properties)
Applies the given properties to the cached DatastoreContext and yields a new DatastoreContext instance which can be obtained viagetContext()
.
-
-
-
Constructor Detail
-
DatastoreContextIntrospector
public DatastoreContextIntrospector(DatastoreContext context, DataStorePropertiesContainer defaultPropsContainer)
-
-
Method Detail
-
getContext
public DatastoreContext getContext()
-
newContextFactory
public DatastoreContextFactory newContextFactory()
-
getShardDatastoreContext
public DatastoreContext getShardDatastoreContext(String forShardName)
-
update
public boolean update(Map<String,Object> properties)
Applies the given properties to the cached DatastoreContext and yields a new DatastoreContext instance which can be obtained viagetContext()
.- Parameters:
properties
- the properties to apply- Returns:
- true if the cached DatastoreContext was updated, false otherwise.
-
-