Class Datastore

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Class<? extends Datastore> toClass​(org.opendaylight.mdsal.common.api.LogicalDatastoreType datastoreType)
      Returns the datastore class corresponding to the given logical datastore type.
      static org.opendaylight.mdsal.common.api.LogicalDatastoreType toType​(java.lang.Class<? extends Datastore> datastoreClass)
      Returns the logical datastore type corresponding to the given datastore class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CONFIGURATION

        public static final java.lang.Class<Datastore.Configuration> CONFIGURATION
        Class representing the configuration datastore.
      • OPERATIONAL

        public static final java.lang.Class<Datastore.Operational> OPERATIONAL
        Class representing the operational datastore.
    • Method Detail

      • toType

        public static org.opendaylight.mdsal.common.api.LogicalDatastoreType toType​(java.lang.Class<? extends Datastore> datastoreClass)
        Returns the logical datastore type corresponding to the given datastore class.
        Parameters:
        datastoreClass - The datastore class to convert.
        Returns:
        The corresponding logical datastore type.
        Throws:
        java.lang.IllegalArgumentException - if the provided datastore class isn’t handled.
      • toClass

        public static java.lang.Class<? extends Datastore> toClass​(org.opendaylight.mdsal.common.api.LogicalDatastoreType datastoreType)
        Returns the datastore class corresponding to the given logical datastore type.
        Parameters:
        datastoreType - The logical datastore type to convert.
        Returns:
        The corresponding datastore class.
        Throws:
        java.lang.IllegalArgumentException - if the provided logical datastore type isn’t handled.