Package com.morpheusdata.model
Class ComputePort
java.lang.Object
com.morpheusdata.model.MorpheusModel
com.morpheusdata.model.ComputePort
- All Implemented Interfaces:
Serializable
Represents ports available on ComputeServers within a Cloud. Currently utilized when connecting by VNC
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longprotected Stringprotected Integerprotected Stringprotected Longprotected Stringprotected StringFields inherited from class com.morpheusdata.model.MorpheusModel
config, id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the id of the parentGet the type of parentgetPort()Get the port numberGet the type of portgetRefId()Get the id of the referenced objectGet the type of object this is referenced toGet the region codevoidsetParentId(Long parentId) Set the id of the parent.voidsetParentType(String parentType) Set the type of parent.voidSet the port numbervoidsetPortType(String portType) Set the type of port.voidSet the id of the referenced object.voidsetRefType(String refType) Set the type of object this is referenced to.voidsetRegionCode(String regionCode) Set the region code.Methods inherited from class com.morpheusdata.model.MorpheusModel
getConfig, getConfigMap, getConfigProperty, getDirtyProperties, getDirtyPropertyValues, getId, getProperties, isDirty, markClean, markDirty, markDirty, setConfig, setConfigMap, setConfigProperty, setId
-
Field Details
-
port
-
portType
-
parentType
-
parentId
-
refType
-
regionCode
-
refId
-
-
Constructor Details
-
ComputePort
public ComputePort() -
ComputePort
-
-
Method Details
-
getPort
Get the port number- Returns:
- port number
-
setPort
Set the port number- Parameters:
port- port number
-
getPortType
Get the type of port- Returns:
- type of port
-
setPortType
Set the type of port. Should be 'vnc' to enable utilization by VNC- Parameters:
portType- type of port
-
getParentType
Get the type of parent- Returns:
- type of parent
-
setParentType
Set the type of parent. Should be 'ComputeZone' when configured for 'vnc'- Parameters:
parentType- type of parent
-
getParentId
Get the id of the parent- Returns:
- id of parent
-
setParentId
Set the id of the parent. Should be the id of the Cloud when configured for 'vnc'- Parameters:
parentId- id of parent
-
getRefType
Get the type of object this is referenced to- Returns:
- reference type
-
setRefType
Set the type of object this is referenced to. Should be 'ComputeServer' when configured for 'vnc'- Parameters:
refType- reference type
-
getRegionCode
Get the region code- Returns:
- region code
-
setRegionCode
Set the region code. Should be the regionCode for the Cloud when configured for 'vnc'- Parameters:
regionCode- region code
-
getRefId
Get the id of the referenced object- Returns:
- reference id
-
setRefId
Set the id of the referenced object. Should be the id of the ComputeServer when configured for 'vnc'- Parameters:
refId- reference id
-