Class ManilaShare

  • All Implemented Interfaces:
    Serializable, Share, ModelEntity

    public class ManilaShare
    extends Object
    implements Share
    A share is a remote, mountable file system. You can mount a share to and access a share from several hosts by several users at a time.
    Author:
    Daniel Gonzalez Nothnagel
    See Also:
    Serialized Form
    • Constructor Detail

      • ManilaShare

        public ManilaShare()
    • Method Detail

      • getId

        public String getId()
        Specified by:
        getId in interface Share
        Returns:
        The UUID of the share
      • getLinks

        public List<? extends Link> getLinks()
        Specified by:
        getLinks in interface Share
        Returns:
        The share links
      • getProjectId

        public String getProjectId()
        Specified by:
        getProjectId in interface Share
        Returns:
        The UUID of the project in which the share was created
      • getSize

        public Integer getSize()
        Specified by:
        getSize in interface Share
        Returns:
        The share size, in GBs
      • getName

        public String getName()
        Specified by:
        getName in interface Share
        Returns:
        The share name
      • getDescription

        public String getDescription()
        Specified by:
        getDescription in interface Share
        Returns:
        The share description
      • getShareType

        public String getShareType()
        Specified by:
        getShareType in interface Share
        Returns:
        The UUID of the share type
      • getVolumeType

        public String getVolumeType()
        Specified by:
        getVolumeType in interface Share
        Returns:
        The volume type
      • getSnapshotId

        public String getSnapshotId()
        Specified by:
        getSnapshotId in interface Share
        Returns:
        The UUID of the snapshot from which to create the share
      • isPublic

        public Boolean isPublic()
        Specified by:
        isPublic in interface Share
        Returns:
        The level of visibility for the share
      • getMetadata

        public Map<String,​String> getMetadata()
        Specified by:
        getMetadata in interface Share
        Returns:
        One or more metadata key and value pairs as a dictionary of strings
      • getShareNetworkId

        public String getShareNetworkId()
        Specified by:
        getShareNetworkId in interface Share
        Returns:
        The UUID of the share network
      • getHost

        public String getHost()
        Specified by:
        getHost in interface Share
        Returns:
        The share host name
      • getTaskState

        public Share.TaskState getTaskState()
        Specified by:
        getTaskState in interface Share
        Returns:
        For the share migration, the migration task state
      • getShareServerId

        public String getShareServerId()
        Specified by:
        getShareServerId in interface Share
        Returns:
        The UUID of the share server
      • getConsistencyGroupId

        public String getConsistencyGroupId()
        Specified by:
        getConsistencyGroupId in interface Share
        Returns:
        The UUID of the consistency group where the share was created
      • getSnapshotSupport

        public Boolean getSnapshotSupport()
        Specified by:
        getSnapshotSupport in interface Share
        Returns:
        An extra specification that filters back ends by whether they do or do not support share snapshots
      • getSourceCgsnapshotMemberId

        public String getSourceCgsnapshotMemberId()
        Specified by:
        getSourceCgsnapshotMemberId in interface Share
        Returns:
        If the share was created with consistency_group_id attribute, the snapshot member ID
      • getCreatedAt

        public String getCreatedAt()
        Specified by:
        getCreatedAt in interface Share
        Returns:
        The date and time stamp when the share was created