Interface MdibStorageFactory
-
public interface MdibStorageFactoryFactory to create MdibStorage instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MdibStoragecreateMdibStorage()Creates a storage initialized with a random MDIB version.MdibStoragecreateMdibStorage(MdibVersion mdibVersion)Creates a storage initialized with the given MDIB version.MdibStoragecreateMdibStorage(MdibVersion mdibVersion, BigInteger mdDescriptionVersion, BigInteger mdStateVersion)Creates a storage initialized with the given MDIB version, MD description and MD state version.
-
-
-
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
MdibStorageinstance.
-
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
MdibStorageinstance.
-
createMdibStorage
MdibStorage createMdibStorage()
Creates a storage initialized with a random MDIB version.- Returns:
- an
MdibStorageinstance. The random MDIB version consists of a random sequence id and zeroed instance id and version counter.
-
-