Package com.morpheusdata.model
Class ComputeServer
java.lang.Object
com.morpheusdata.model.MorpheusModel
com.morpheusdata.model.projection.MorpheusIdentityModel
com.morpheusdata.model.projection.ComputeServerIdentityProjection
com.morpheusdata.model.ComputeServer
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.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<ComputeServerAccess>
protected Account
protected Boolean
protected String
protected String
protected ComputeCapacityInfo
protected Cloud
protected String
protected String
protected String
protected ComputeServerType
protected ComputeStats
protected String
protected String
protected Integer
protected String
protected List<StorageController>
protected Long
protected Boolean
protected User
protected String
protected Date
protected Boolean
protected String
protected Boolean
protected String
protected String
protected String
protected String
protected CloudFolder
protected Boolean
protected ComputeServer.GuestConsoleType
protected Boolean
protected Double
protected String
protected List<ComputeServerInterface>
protected String
protected String
protected String
protected String
protected Date
protected Date
protected ComputeTypeLayout
protected Boolean
protected String
protected Boolean
protected Long
protected Long
protected Long
protected Long
protected List<MetadataTag>
protected NetworkDomain
protected String
protected String
protected ComputeServerIdentityProjection
protected ServicePlan
protected String
protected String
protected ComputeServer.PowerState
protected Boolean
protected Long
protected CloudRegion
protected CloudPool
protected String
protected InstanceScale
protected String
protected ComputeServerGroup
protected String
protected OsType
protected String
protected String
protected Boolean
protected List<SnapshotIdentityProjection>
protected VirtualImage
protected String
protected String
protected Integer
protected String
protected String
protected Date
protected String
protected String
protected Boolean
protected ComputeTypeSet
protected String
protected Float
protected Long
protected Long
protected String
protected List<StorageVolume>
Fields inherited from class com.morpheusdata.model.projection.ComputeServerIdentityProjection
category, computeServerTypeCode, externalId, hostname, name
Fields inherited from class com.morpheusdata.model.MorpheusModel
config, id
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCloud()
Returns the ComputeStats for this servergetIacId()
getPlan()
getScale()
getTags()
getUuid()
void
setAccesses
(List<ComputeServerAccess> accesses) void
setAccount
(Account account) void
setAgentInstalled
(Boolean agentInstalled) void
setAgentVersion
(String agentVersion) void
void
setCapacityInfo
(ComputeCapacityInfo capacityInfo) void
void
setCloudConfigMeta
(String cloudConfigMeta) void
setCloudConfigNetwork
(String cloudConfigNetwork) void
setCloudConfigUser
(String cloudConfigUser) void
setCloudId
(Long id) void
setComputeCapacityInfo
(ComputeCapacityInfo capacityInfo) void
setComputeServerType
(ComputeServerType computeServerType) void
setComputeStats
(ComputeStats computeStats) Sets the ComputeStats for this servervoid
setConsoleHost
(String consoleHost) void
setConsolePassword
(String consolePassword) void
setConsolePort
(Integer consolePort) void
setConsoleType
(String consoleType) void
setControllers
(List<StorageController> controllers) NOTE: To modify the list of controllers associated with this ComputeServer, utilize MorpheusStorageControllerServicevoid
setCoresPerSocket
(Long coresPerSocket) void
setCpuHotResize
(Boolean cpuHotResize) void
setCreatedBy
(User createdBy) void
setDataDevice
(String dataDevice) void
setDateCreated
(Date dateCreated) void
setDiscovered
(Boolean discovered) void
setDisplayName
(String displayName) Deprecated.Use name insteadvoid
setEnabled
(Boolean enabled) void
setExternalDomain
(String externalDomain) void
setExternalFqdn
(String externalFqdn) void
setExternalHostname
(String externalHostname) void
setExternalIp
(String externalIp) void
setFolder
(CloudFolder folder) void
setGuestConsolePreferred
(Boolean guestConsolePreferred) void
setGuestConsoleType
(ComputeServer.GuestConsoleType guestConsoleType) void
setHotResize
(Boolean hotResize) void
setHourlyPrice
(Double hourlyPrice) void
void
setInterfaces
(List<ComputeServerInterface> interfaces) NOTE: To modify the list of interfaces associated with this ComputeServer, utilize MorpheusComputeServerInterfaceServicevoid
setInternalId
(String internalId) void
setInternalIp
(String internalIp) void
setInternalName
(String internalName) void
setInternalSshUsername
(String internalSshUsername) void
void
setLastAgentUpdate
(Date lastAgentUpdate) void
setLastUpdated
(Date lastUpdated) void
setLayout
(ComputeTypeLayout layout) void
setLvmEnabled
(Boolean lvmEnabled) void
setMacAddress
(String macAddress) void
setManaged
(Boolean managed) void
setMaxCores
(Long maxCores) void
void
setMaxMemory
(Long maxMemory) void
setMaxStorage
(Long maxStorage) void
setMetadata
(List<MetadataTag> metadata) void
setNetworkDomain
(NetworkDomain networkDomain) void
setOsDevice
(String osDevice) void
void
setParentServer
(ComputeServerIdentityProjection parentServer) void
setPlan
(ServicePlan plan) void
setPlatform
(String platform) void
setPlatformVersion
(String platformVersion) void
setPowerState
(ComputeServer.PowerState powerState) void
setProvision
(Boolean provision) void
setProvisionSiteId
(Long provisionSiteId) void
setRegion
(CloudRegion region) void
setResourcePool
(CloudPool resourcePool) void
setRootVolumeId
(String rootVolumeId) void
setScale
(InstanceScale scale) void
setSerialNumber
(String serialNumber) void
setServerGroup
(ComputeServerGroup serverGroup) void
setServerModel
(String serverModel) void
setServerOs
(OsType serverOs) void
setServerType
(String serverType) void
setServerVendor
(String serverVendor) void
setSingleTenant
(Boolean singleTenant) void
setSnapshots
(List<SnapshotIdentityProjection> snapshots) NOTE: To modify the list of snapshots associated with this ComputeServer, utilize MorpheusSnapshotServicevoid
setSourceImage
(VirtualImage sourceImage) void
setSshHost
(String sshHost) void
setSshPassword
(String sshPassword) void
setSshPort
(Integer sshPort) void
setSshUsername
(String sshUsername) void
void
setStatusDate
(Date statusDate) void
setStatusMessage
(String statusMessage) void
void
setToolsInstalled
(Boolean toolsInstalled) void
setTypeSet
(ComputeTypeSet typeSet) void
setUniqueId
(String uniqueId) void
setUsedCpu
(Float usedCpu) void
setUsedMemory
(Long usedMemory) void
setUsedStorage
(Long usedStorage) void
void
setVolumes
(List<StorageVolume> volumes) NOTE: To modify the list of volumes associated with this ComputeServer, utilize MorpheusStorageVolumeServiceMethods inherited from class com.morpheusdata.model.projection.ComputeServerIdentityProjection
getCategory, getComputeServerTypeCode, getExternalId, getHostname, getName, setCategory, setComputeServerTypeCode, setExternalId, setHostname, setName
Methods inherited from class com.morpheusdata.model.projection.MorpheusIdentityModel
getIdentityProperties
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
-
account
-
uuid
-
displayName
-
uniqueId
-
iacId
-
cloud
-
region
-
networkDomain
-
plan
-
typeSet
-
layout
-
serverGroup
-
createdBy
-
internalName
-
status
-
provisionSiteId
-
serverOs
-
sourceImage
-
osType
-
platform
-
platformVersion
-
resourcePool
-
folder
-
serverType
-
consoleHost
-
powerState
-
maxStorage
-
maxMemory
-
maxCpu
-
maxCores
-
usedMemory
-
usedStorage
-
usedCpu
-
coresPerSocket
-
managed
-
singleTenant
-
computeServerType
-
hourlyPrice
-
internalIp
-
externalIp
-
sshHost
-
sshPort
-
sshUsername
-
internalSshUsername
-
sshPassword
-
interfaces
-
externalHostname
-
externalDomain
-
externalFqdn
-
apiKey
-
volumes
-
controllers
-
snapshots
-
accesses
-
osDevice
-
dataDevice
-
lvmEnabled
-
internalId
-
serverVendor
-
serverModel
-
serialNumber
-
statusMessage
-
rootVolumeId
-
tags
-
enabled
-
provision
-
macAddress
-
capacityInfo
-
agentInstalled
-
toolsInstalled
-
lastAgentUpdate
-
agentVersion
-
hotResize
-
cpuHotResize
-
consoleType
-
consolePort
-
consolePassword
-
guestConsolePreferred
-
guestConsoleType
-
parentServer
-
scale
-
computeStats
-
metadata
-
labels
-
statusDate
-
cloudConfigUser
-
cloudConfigMeta
-
cloudConfigNetwork
-
discovered
-
dateCreated
-
lastUpdated
-
-
Constructor Details
-
ComputeServer
public ComputeServer()
-
-
Method Details
-
getUuid
-
setUuid
-
getDisplayName
-
setDisplayName
Deprecated.Use name instead- Parameters:
displayName
- displayName
-
getUniqueId
- Overrides:
getUniqueId
in classComputeServerIdentityProjection
-
setUniqueId
- Overrides:
setUniqueId
in classComputeServerIdentityProjection
-
getCloud
-
setCloud
-
setCloudId
-
getSshUsername
-
setSshUsername
-
getInternalSshUsername
-
setInternalSshUsername
-
getSshPassword
-
setSshPassword
-
getExternalHostname
-
setExternalHostname
-
getExternalDomain
-
setExternalDomain
-
getExternalFqdn
-
setExternalFqdn
-
getApiKey
-
setApiKey
-
getAccount
-
getNetworkDomain
-
getPlan
-
getInternalName
-
getStatus
- Overrides:
getStatus
in classComputeServerIdentityProjection
-
getProvisionSiteId
-
getServerOs
-
getSourceImage
-
getOsType
-
getPlatform
-
getPlatformVersion
-
getResourcePool
-
getFolder
-
getServerType
-
getConsoleHost
-
getPowerState
-
getMaxStorage
-
getMaxMemory
-
getMaxCpu
-
setMaxCpu
-
getMaxCores
-
getCoresPerSocket
-
getManaged
-
getComputeServerType
-
getHourlyPrice
-
getInternalIp
- Overrides:
getInternalIp
in classComputeServerIdentityProjection
-
getExternalIp
- Overrides:
getExternalIp
in classComputeServerIdentityProjection
-
getSshHost
-
getSshPort
-
getInterfaces
-
getVolumes
-
getControllers
-
getSnapshots
-
getMetadata
-
getLabels
-
getUsedMemory
-
setUsedMemory
-
getUsedStorage
-
setUsedStorage
-
getUsedCpu
-
setUsedCpu
-
getCloudConfigUser
-
setCloudConfigUser
-
getCloudConfigMeta
-
setCloudConfigMeta
-
getCloudConfigNetwork
-
setCloudConfigNetwork
-
getStatusDate
-
setStatusDate
-
getTypeSet
-
setTypeSet
-
getLayout
-
setLayout
-
getSingleTenant
-
setSingleTenant
-
getRegion
-
setRegion
-
setAccount
-
setNetworkDomain
-
setPlan
-
setInternalName
-
setStatus
- Overrides:
setStatus
in classComputeServerIdentityProjection
-
setProvisionSiteId
-
setServerOs
-
setSourceImage
-
setOsType
-
setPlatform
-
setPlatformVersion
-
setResourcePool
-
setFolder
-
setServerType
-
setConsoleHost
-
setPowerState
-
setMaxStorage
-
setMaxMemory
-
setMaxCores
-
setCoresPerSocket
-
setManaged
-
setComputeServerType
-
setHourlyPrice
-
setInternalIp
- Overrides:
setInternalIp
in classComputeServerIdentityProjection
-
setExternalIp
- Overrides:
setExternalIp
in classComputeServerIdentityProjection
-
setSshHost
-
setSshPort
-
setInterfaces
NOTE: To modify the list of interfaces associated with this ComputeServer, utilize MorpheusComputeServerInterfaceService- Parameters:
interfaces
-
-
setVolumes
NOTE: To modify the list of volumes associated with this ComputeServer, utilize MorpheusStorageVolumeService- Parameters:
volumes
-
-
setControllers
NOTE: To modify the list of controllers associated with this ComputeServer, utilize MorpheusStorageControllerService- Parameters:
controllers
-
-
setSnapshots
NOTE: To modify the list of snapshots associated with this ComputeServer, utilize MorpheusSnapshotService- Parameters:
snapshots
-
-
getOsDevice
-
setOsDevice
-
getDataDevice
-
setDataDevice
-
getLvmEnabled
-
setLvmEnabled
-
getInternalId
-
setInternalId
-
getServerVendor
-
setServerVendor
-
getServerModel
-
setServerModel
-
getSerialNumber
-
setSerialNumber
-
getStatusMessage
-
setStatusMessage
-
getRootVolumeId
-
setRootVolumeId
-
getTags
-
setTags
-
getHotResize
-
setHotResize
-
getCpuHotResize
-
setCpuHotResize
-
getEnabled
-
setEnabled
-
getProvision
-
setProvision
-
getMacAddress
-
setMacAddress
-
getComputeCapacityInfo
-
setComputeCapacityInfo
-
getAgentInstalled
-
setAgentInstalled
-
getToolsInstalled
-
setToolsInstalled
-
getLastAgentUpdate
-
setLastAgentUpdate
-
getAgentVersion
-
setAgentVersion
-
getConsoleType
-
setConsoleType
-
getConsolePassword
-
setConsolePassword
-
getGuestConsolePreferred
-
setGuestConsolePreferred
-
getGuestConsoleType
-
setGuestConsoleType
-
getParentServer
-
setParentServer
-
getScale
-
setScale
-
getComputeStats
Returns the ComputeStats for this server- Returns:
- ComputeStats
-
setComputeStats
Sets the ComputeStats for this server- Parameters:
computeStats
- The stats for this server
-
getConsolePort
-
setConsolePort
-
getDiscovered
-
setDiscovered
-
getServerGroup
-
setServerGroup
-
getCreatedBy
-
setCreatedBy
-
setMetadata
-
setLabels
-
getDateCreated
-
setDateCreated
-
getLastUpdated
-
setLastUpdated
-
getIacId
-
setIacId
-
getAccesses
-
setAccesses
-
getCapacityInfo
-
setCapacityInfo
-