Interface MdibStorageFactory


  • public interface MdibStorageFactory
    Factory to create MdibStorage instances.
    • Method Detail

      • createMdibStorage

        MdibStorage createMdibStorage​(MdibVersion mdibVersion)
        Creates a storage initialized with the given MDIB version.

        Initializes MD description and state version with -1.

        Parameters:
        mdibVersion - the initial MDIB version.
        Returns:
        an MdibStorage instance.
      • createMdibStorage

        MdibStorage createMdibStorage​(MdibVersion mdibVersion,
                                      BigInteger mdDescriptionVersion,
                                      BigInteger mdStateVersion)
        Creates a storage initialized with the given MDIB version, MD description and MD state version.
        Parameters:
        mdibVersion - the initial MDIB version.
        mdDescriptionVersion - the initial MD description version.
        mdStateVersion - the initial MD state version.
        Returns:
        an MdibStorage instance.
      • createMdibStorage

        MdibStorage createMdibStorage()
        Creates a storage initialized with a random MDIB version.
        Returns:
        an MdibStorage instance. The random MDIB version consists of a random sequence id and zeroed instance id and version counter.