Class ContainerDescriptor

java.lang.Object
org.rostore.v2.container.ContainerDescriptor

public class ContainerDescriptor extends Object
This class is created on the container creation event and should be stored in the container list, so it can be reopened again.

It contains all the information about he container internal structure, as well as the metadata provided at the creation phase.

This class is persisted and should only be changed only on the new storages, as it would change the persistence structure.

  • Constructor Details

    • ContainerDescriptor

      public ContainerDescriptor(ContainerMeta containerMeta)
    • ContainerDescriptor

      public ContainerDescriptor()
      Needed for the load
  • Method Details

    • getContainerMeta

      public ContainerMeta getContainerMeta()
      The metadata provided at the container creation
      Returns:
      the metadata of the container
    • setContainerMeta

      public void setContainerMeta(ContainerMeta containerMeta)
    • getShardDescriptors

      public List<ContainerShardDescriptor> getShardDescriptors()
      A list of shard descriptors, containing initialization data for every shard
      Returns:
      a list of shard descriptors