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, org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer bindingSerializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatastoreContextgetContext()DatastoreContextgetShardDatastoreContext(String forShardName)DatastoreContextFactorynewContextFactory()booleanupdate(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, org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer bindingSerializer)
-
-
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.
-
-