Class ComputePort


  • public class ComputePort
    extends MorpheusModel
    Represents ports available on ComputeServers within a Cloud. Currently utilized when connecting by VNC
    • Field Detail

      • port

        protected java.lang.Integer port
      • portType

        protected java.lang.String portType
      • parentType

        protected java.lang.String parentType
      • parentId

        protected java.lang.Long parentId
      • refType

        protected java.lang.String refType
      • regionCode

        protected java.lang.String regionCode
      • refId

        protected java.lang.Long refId
    • Constructor Detail

      • ComputePort

        public ComputePort()
      • ComputePort

        public ComputePort​(java.lang.Long id,
                           java.lang.Integer port,
                           java.lang.String refType,
                           java.lang.Long refId,
                           java.lang.String parentType,
                           java.lang.Long parentId,
                           java.lang.String portType,
                           java.lang.String regionCode)
    • Method Detail

      • getPort

        public java.lang.Integer getPort()
        Get the port number
        Returns:
        port number
      • setPort

        public void setPort​(java.lang.Integer port)
        Set the port number
        Parameters:
        port - port number
      • getPortType

        public java.lang.String getPortType()
        Get the type of port
        Returns:
        type of port
      • setPortType

        public void setPortType​(java.lang.String portType)
        Set the type of port. Should be 'vnc' to enable utilization by VNC
        Parameters:
        portType - type of port
      • getParentType

        public java.lang.String getParentType()
        Get the type of parent
        Returns:
        type of parent
      • setParentType

        public void setParentType​(java.lang.String parentType)
        Set the type of parent. Should be 'ComputeZone' when configured for 'vnc'
        Parameters:
        parentType - type of parent
      • getParentId

        public java.lang.Long getParentId()
        Get the id of the parent
        Returns:
        id of parent
      • setParentId

        public void setParentId​(java.lang.Long parentId)
        Set the id of the parent. Should be the id of the Cloud when configured for 'vnc'
        Parameters:
        parentId - id of parent
      • getRefType

        public java.lang.String getRefType()
        Get the type of object this is referenced to
        Returns:
        reference type
      • setRefType

        public void setRefType​(java.lang.String refType)
        Set the type of object this is referenced to. Should be 'ComputeServer' when configured for 'vnc'
        Parameters:
        refType - reference type
      • getRegionCode

        public java.lang.String getRegionCode()
        Get the region code
        Returns:
        region code
      • setRegionCode

        public void setRegionCode​(java.lang.String regionCode)
        Set the region code. Should be the regionCode for the Cloud when configured for 'vnc'
        Parameters:
        regionCode - region code
      • getRefId

        public java.lang.Long getRefId()
        Get the id of the referenced object
        Returns:
        reference id
      • setRefId

        public void setRefId​(java.lang.Long refId)
        Set the id of the referenced object. Should be the id of the ComputeServer when configured for 'vnc'
        Parameters:
        refId - reference id