Class ComputeServer


public class ComputeServer extends ComputeServerIdentityProjection
Representation of a Morpheus ComputeServer database object within the Morpheus platform. Not all data is provided in this implementation that is available in the morpheus core platform for security purposes and internal use.
  • Field Details

    • account

      protected Account account
    • uuid

      protected String uuid
    • displayName

      protected String displayName
    • uniqueId

      protected String uniqueId
    • iacId

      protected String iacId
    • cloud

      protected Cloud cloud
    • region

      protected CloudRegion region
    • networkDomain

      protected NetworkDomain networkDomain
    • plan

      protected ServicePlan plan
    • typeSet

      protected ComputeTypeSet typeSet
    • layout

      protected ComputeTypeLayout layout
    • serverGroup

      protected ComputeServerGroup serverGroup
    • createdBy

      protected User createdBy
    • internalName

      protected String internalName
    • status

      protected String status
    • provisionSiteId

      protected Long provisionSiteId
    • serverOs

      protected OsType serverOs
    • sourceImage

      protected VirtualImage sourceImage
    • osType

      protected String osType
    • platform

      protected String platform
    • platformVersion

      protected String platformVersion
    • resourcePool

      protected CloudPool resourcePool
    • folder

      protected CloudFolder folder
    • serverType

      protected String serverType
    • consoleHost

      protected String consoleHost
    • powerState

      protected ComputeServer.PowerState powerState
    • maxStorage

      protected Long maxStorage
    • maxMemory

      protected Long maxMemory
    • maxCpu

      protected Long maxCpu
    • maxCores

      protected Long maxCores
    • usedMemory

      protected Long usedMemory
    • usedStorage

      protected Long usedStorage
    • usedCpu

      protected Float usedCpu
    • coresPerSocket

      protected Long coresPerSocket
    • managed

      protected Boolean managed
    • singleTenant

      protected Boolean singleTenant
    • computeServerType

      protected ComputeServerType computeServerType
    • hourlyPrice

      protected Double hourlyPrice
    • internalIp

      protected String internalIp
    • externalIp

      protected String externalIp
    • sshHost

      protected String sshHost
    • sshPort

      protected Integer sshPort
    • sshUsername

      protected String sshUsername
    • internalSshUsername

      protected String internalSshUsername
    • sshPassword

      protected String sshPassword
    • interfaces

      protected List<ComputeServerInterface> interfaces
    • externalHostname

      protected String externalHostname
    • externalDomain

      protected String externalDomain
    • externalFqdn

      protected String externalFqdn
    • apiKey

      protected String apiKey
    • volumes

      protected List<StorageVolume> volumes
    • controllers

      protected List<StorageController> controllers
    • snapshots

      protected List<SnapshotIdentityProjection> snapshots
    • accesses

      protected List<ComputeServerAccess> accesses
    • osDevice

      protected String osDevice
    • dataDevice

      protected String dataDevice
    • lvmEnabled

      protected Boolean lvmEnabled
    • internalId

      protected String internalId
    • serverVendor

      protected String serverVendor
    • serverModel

      protected String serverModel
    • serialNumber

      protected String serialNumber
    • statusMessage

      protected String statusMessage
    • rootVolumeId

      protected String rootVolumeId
    • tags

      protected String tags
    • enabled

      protected Boolean enabled
    • provision

      protected Boolean provision
    • macAddress

      protected String macAddress
    • capacityInfo

      protected ComputeCapacityInfo capacityInfo
    • agentInstalled

      protected Boolean agentInstalled
    • toolsInstalled

      protected Boolean toolsInstalled
    • lastAgentUpdate

      protected Date lastAgentUpdate
    • agentVersion

      protected String agentVersion
    • hotResize

      protected Boolean hotResize
    • cpuHotResize

      protected Boolean cpuHotResize
    • consoleType

      protected String consoleType
    • consolePort

      protected Integer consolePort
    • consolePassword

      protected String consolePassword
    • guestConsolePreferred

      protected Boolean guestConsolePreferred
    • guestConsoleType

      protected ComputeServer.GuestConsoleType guestConsoleType
    • parentServer

      protected ComputeServerIdentityProjection parentServer
    • scale

      protected InstanceScale scale
    • computeStats

      protected ComputeStats computeStats
    • metadata

      protected List<MetadataTag> metadata
    • labels

      protected List<Label> labels
    • statusDate

      protected Date statusDate
    • cloudConfigUser

      protected String cloudConfigUser
    • cloudConfigMeta

      protected String cloudConfigMeta
    • cloudConfigNetwork

      protected String cloudConfigNetwork
    • discovered

      protected Boolean discovered
    • dateCreated

      protected Date dateCreated
    • lastUpdated

      protected Date lastUpdated
  • Constructor Details

    • ComputeServer

      public ComputeServer()
  • Method Details

    • getUuid

      public String getUuid()
    • setUuid

      public void setUuid(String uuid)
    • getDisplayName

      public String getDisplayName()
    • setDisplayName

      @Deprecated public void setDisplayName(String displayName)
      Deprecated.
      Use name instead
      Parameters:
      displayName - displayName
    • getUniqueId

      public String getUniqueId()
      Overrides:
      getUniqueId in class ComputeServerIdentityProjection
    • setUniqueId

      public void setUniqueId(String uniqueId)
      Overrides:
      setUniqueId in class ComputeServerIdentityProjection
    • getCloud

      public Cloud getCloud()
    • setCloud

      public void setCloud(Cloud cloud)
    • setCloudId

      public void setCloudId(Long id)
    • getSshUsername

      public String getSshUsername()
    • setSshUsername

      public void setSshUsername(String sshUsername)
    • getInternalSshUsername

      public String getInternalSshUsername()
    • setInternalSshUsername

      public void setInternalSshUsername(String internalSshUsername)
    • getSshPassword

      public String getSshPassword()
    • setSshPassword

      public void setSshPassword(String sshPassword)
    • getExternalHostname

      public String getExternalHostname()
    • setExternalHostname

      public void setExternalHostname(String externalHostname)
    • getExternalDomain

      public String getExternalDomain()
    • setExternalDomain

      public void setExternalDomain(String externalDomain)
    • getExternalFqdn

      public String getExternalFqdn()
    • setExternalFqdn

      public void setExternalFqdn(String externalFqdn)
    • getApiKey

      public String getApiKey()
    • setApiKey

      public void setApiKey(String apiKey)
    • getAccount

      public Account getAccount()
    • getNetworkDomain

      public NetworkDomain getNetworkDomain()
    • getPlan

      public ServicePlan getPlan()
    • getInternalName

      public String getInternalName()
    • getStatus

      public String getStatus()
      Overrides:
      getStatus in class ComputeServerIdentityProjection
    • getProvisionSiteId

      public Long getProvisionSiteId()
    • getServerOs

      public OsType getServerOs()
    • getSourceImage

      public VirtualImage getSourceImage()
    • getOsType

      public String getOsType()
    • getPlatform

      public String getPlatform()
    • getPlatformVersion

      public String getPlatformVersion()
    • getResourcePool

      public CloudPool getResourcePool()
    • getFolder

      public CloudFolder getFolder()
    • getServerType

      public String getServerType()
    • getConsoleHost

      public String getConsoleHost()
    • getPowerState

      public ComputeServer.PowerState getPowerState()
    • getMaxStorage

      public Long getMaxStorage()
    • getMaxMemory

      public Long getMaxMemory()
    • getMaxCpu

      public Long getMaxCpu()
    • setMaxCpu

      public void setMaxCpu(Long maxCpu)
    • getMaxCores

      public Long getMaxCores()
    • getCoresPerSocket

      public Long getCoresPerSocket()
    • getManaged

      public Boolean getManaged()
    • getComputeServerType

      public ComputeServerType getComputeServerType()
    • getHourlyPrice

      public Double getHourlyPrice()
    • getInternalIp

      public String getInternalIp()
      Overrides:
      getInternalIp in class ComputeServerIdentityProjection
    • getExternalIp

      public String getExternalIp()
      Overrides:
      getExternalIp in class ComputeServerIdentityProjection
    • getSshHost

      public String getSshHost()
    • getSshPort

      public Integer getSshPort()
    • getInterfaces

      public List<ComputeServerInterface> getInterfaces()
    • getVolumes

      public List<StorageVolume> getVolumes()
    • getControllers

      public List<StorageController> getControllers()
    • getSnapshots

      public List<SnapshotIdentityProjection> getSnapshots()
    • getMetadata

      public List<MetadataTag> getMetadata()
    • getLabels

      public List<Label> getLabels()
    • getUsedMemory

      public Long getUsedMemory()
    • setUsedMemory

      public void setUsedMemory(Long usedMemory)
    • getUsedStorage

      public Long getUsedStorage()
    • setUsedStorage

      public void setUsedStorage(Long usedStorage)
    • getUsedCpu

      public Float getUsedCpu()
    • setUsedCpu

      public void setUsedCpu(Float usedCpu)
    • getCloudConfigUser

      public String getCloudConfigUser()
    • setCloudConfigUser

      public void setCloudConfigUser(String cloudConfigUser)
    • getCloudConfigMeta

      public String getCloudConfigMeta()
    • setCloudConfigMeta

      public void setCloudConfigMeta(String cloudConfigMeta)
    • getCloudConfigNetwork

      public String getCloudConfigNetwork()
    • setCloudConfigNetwork

      public void setCloudConfigNetwork(String cloudConfigNetwork)
    • getStatusDate

      public Date getStatusDate()
    • setStatusDate

      public void setStatusDate(Date statusDate)
    • getTypeSet

      public ComputeTypeSet getTypeSet()
    • setTypeSet

      public void setTypeSet(ComputeTypeSet typeSet)
    • getLayout

      public ComputeTypeLayout getLayout()
    • setLayout

      public void setLayout(ComputeTypeLayout layout)
    • getSingleTenant

      public Boolean getSingleTenant()
    • setSingleTenant

      public void setSingleTenant(Boolean singleTenant)
    • getRegion

      public CloudRegion getRegion()
    • setRegion

      public void setRegion(CloudRegion region)
    • setAccount

      public void setAccount(Account account)
    • setNetworkDomain

      public void setNetworkDomain(NetworkDomain networkDomain)
    • setPlan

      public void setPlan(ServicePlan plan)
    • setInternalName

      public void setInternalName(String internalName)
    • setStatus

      public void setStatus(String status)
      Overrides:
      setStatus in class ComputeServerIdentityProjection
    • setProvisionSiteId

      public void setProvisionSiteId(Long provisionSiteId)
    • setServerOs

      public void setServerOs(OsType serverOs)
    • setSourceImage

      public void setSourceImage(VirtualImage sourceImage)
    • setOsType

      public void setOsType(String osType)
    • setPlatform

      public void setPlatform(String platform)
    • setPlatformVersion

      public void setPlatformVersion(String platformVersion)
    • setResourcePool

      public void setResourcePool(CloudPool resourcePool)
    • setFolder

      public void setFolder(CloudFolder folder)
    • setServerType

      public void setServerType(String serverType)
    • setConsoleHost

      public void setConsoleHost(String consoleHost)
    • setPowerState

      public void setPowerState(ComputeServer.PowerState powerState)
    • setMaxStorage

      public void setMaxStorage(Long maxStorage)
    • setMaxMemory

      public void setMaxMemory(Long maxMemory)
    • setMaxCores

      public void setMaxCores(Long maxCores)
    • setCoresPerSocket

      public void setCoresPerSocket(Long coresPerSocket)
    • setManaged

      public void setManaged(Boolean managed)
    • setComputeServerType

      public void setComputeServerType(ComputeServerType computeServerType)
    • setHourlyPrice

      public void setHourlyPrice(Double hourlyPrice)
    • setInternalIp

      public void setInternalIp(String internalIp)
      Overrides:
      setInternalIp in class ComputeServerIdentityProjection
    • setExternalIp

      public void setExternalIp(String externalIp)
      Overrides:
      setExternalIp in class ComputeServerIdentityProjection
    • setSshHost

      public void setSshHost(String sshHost)
    • setSshPort

      public void setSshPort(Integer sshPort)
    • setInterfaces

      public void setInterfaces(List<ComputeServerInterface> interfaces)
      NOTE: To modify the list of interfaces associated with this ComputeServer, utilize MorpheusComputeServerInterfaceService
      Parameters:
      interfaces -
    • setVolumes

      public void setVolumes(List<StorageVolume> volumes)
      NOTE: To modify the list of volumes associated with this ComputeServer, utilize MorpheusStorageVolumeService
      Parameters:
      volumes -
    • setControllers

      public void setControllers(List<StorageController> controllers)
      NOTE: To modify the list of controllers associated with this ComputeServer, utilize MorpheusStorageControllerService
      Parameters:
      controllers -
    • setSnapshots

      public void setSnapshots(List<SnapshotIdentityProjection> snapshots)
      NOTE: To modify the list of snapshots associated with this ComputeServer, utilize MorpheusSnapshotService
      Parameters:
      snapshots -
    • getOsDevice

      public String getOsDevice()
    • setOsDevice

      public void setOsDevice(String osDevice)
    • getDataDevice

      public String getDataDevice()
    • setDataDevice

      public void setDataDevice(String dataDevice)
    • getLvmEnabled

      public Boolean getLvmEnabled()
    • setLvmEnabled

      public void setLvmEnabled(Boolean lvmEnabled)
    • getInternalId

      public String getInternalId()
    • setInternalId

      public void setInternalId(String internalId)
    • getServerVendor

      public String getServerVendor()
    • setServerVendor

      public void setServerVendor(String serverVendor)
    • getServerModel

      public String getServerModel()
    • setServerModel

      public void setServerModel(String serverModel)
    • getSerialNumber

      public String getSerialNumber()
    • setSerialNumber

      public void setSerialNumber(String serialNumber)
    • getStatusMessage

      public String getStatusMessage()
    • setStatusMessage

      public void setStatusMessage(String statusMessage)
    • getRootVolumeId

      public String getRootVolumeId()
    • setRootVolumeId

      public void setRootVolumeId(String rootVolumeId)
    • getTags

      public String getTags()
    • setTags

      public void setTags(String tags)
    • getHotResize

      public Boolean getHotResize()
    • setHotResize

      public void setHotResize(Boolean hotResize)
    • getCpuHotResize

      public Boolean getCpuHotResize()
    • setCpuHotResize

      public void setCpuHotResize(Boolean cpuHotResize)
    • getEnabled

      public Boolean getEnabled()
    • setEnabled

      public void setEnabled(Boolean enabled)
    • getProvision

      public Boolean getProvision()
    • setProvision

      public void setProvision(Boolean provision)
    • getMacAddress

      public String getMacAddress()
    • setMacAddress

      public void setMacAddress(String macAddress)
    • getComputeCapacityInfo

      public ComputeCapacityInfo getComputeCapacityInfo()
    • setComputeCapacityInfo

      public void setComputeCapacityInfo(ComputeCapacityInfo capacityInfo)
    • getAgentInstalled

      public Boolean getAgentInstalled()
    • setAgentInstalled

      public void setAgentInstalled(Boolean agentInstalled)
    • getToolsInstalled

      public Boolean getToolsInstalled()
    • setToolsInstalled

      public void setToolsInstalled(Boolean toolsInstalled)
    • getLastAgentUpdate

      public Date getLastAgentUpdate()
    • setLastAgentUpdate

      public void setLastAgentUpdate(Date lastAgentUpdate)
    • getAgentVersion

      public String getAgentVersion()
    • setAgentVersion

      public void setAgentVersion(String agentVersion)
    • getConsoleType

      public String getConsoleType()
    • setConsoleType

      public void setConsoleType(String consoleType)
    • getConsolePassword

      public String getConsolePassword()
    • setConsolePassword

      public void setConsolePassword(String consolePassword)
    • getGuestConsolePreferred

      public Boolean getGuestConsolePreferred()
    • setGuestConsolePreferred

      public void setGuestConsolePreferred(Boolean guestConsolePreferred)
    • getGuestConsoleType

      public ComputeServer.GuestConsoleType getGuestConsoleType()
    • setGuestConsoleType

      public void setGuestConsoleType(ComputeServer.GuestConsoleType guestConsoleType)
    • getParentServer

      public ComputeServerIdentityProjection getParentServer()
    • setParentServer

      public void setParentServer(ComputeServerIdentityProjection parentServer)
    • getScale

      public InstanceScale getScale()
    • setScale

      public void setScale(InstanceScale scale)
    • getComputeStats

      public ComputeStats getComputeStats()
      Returns the ComputeStats for this server
      Returns:
      ComputeStats
    • setComputeStats

      public void setComputeStats(ComputeStats computeStats)
      Sets the ComputeStats for this server
      Parameters:
      computeStats - The stats for this server
    • getConsolePort

      public Integer getConsolePort()
    • setConsolePort

      public void setConsolePort(Integer consolePort)
    • getDiscovered

      public Boolean getDiscovered()
    • setDiscovered

      public void setDiscovered(Boolean discovered)
    • getServerGroup

      public ComputeServerGroup getServerGroup()
    • setServerGroup

      public void setServerGroup(ComputeServerGroup serverGroup)
    • getCreatedBy

      public User getCreatedBy()
    • setCreatedBy

      public void setCreatedBy(User createdBy)
    • setMetadata

      public void setMetadata(List<MetadataTag> metadata)
    • setLabels

      public void setLabels(List<Label> labels)
    • getDateCreated

      public Date getDateCreated()
    • setDateCreated

      public void setDateCreated(Date dateCreated)
    • getLastUpdated

      public Date getLastUpdated()
    • setLastUpdated

      public void setLastUpdated(Date lastUpdated)
    • getIacId

      public String getIacId()
    • setIacId

      public void setIacId(String iacId)
    • getAccesses

      public List<ComputeServerAccess> getAccesses()
    • setAccesses

      public void setAccesses(List<ComputeServerAccess> accesses)
    • getCapacityInfo

      public ComputeCapacityInfo getCapacityInfo()
    • setCapacityInfo

      public void setCapacityInfo(ComputeCapacityInfo capacityInfo)