public abstract class AbstractPhysicalMachine extends DomainWrapper<com.abiquo.server.core.infrastructure.MachineDto>
MachineDto
. This class defines common methods for
unmanaged Machine
and managed Blade
physical machines.
http://community.abiquo.com/display/ABI20/MachineResource
Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_VCPU_USED
The default virtual cpu used in MB.
|
protected static int |
DEFAULT_VRAM_USED
The default virtual ram used in MB.
|
protected List<String> |
virtualSwitches
List of available virtual switches provided by discover operation
|
context, target
Modifier | Constructor and Description |
---|---|
protected |
AbstractPhysicalMachine(RestContext<AbiquoApi,AbiquoAsyncApi> context,
com.abiquo.server.core.infrastructure.MachineDto target)
Constructor to be used only by the builder.
|
Modifier and Type | Method and Description |
---|---|
com.abiquo.model.enumerator.MachineState |
check() |
com.abiquo.model.enumerator.MachineIpmiState |
checkIpmi() |
void |
delete() |
protected void |
extractVirtualSwitches()
Converts the tokenized String provided by the node collector API to a list of Strings and
stores it at the attribute switches.
|
String |
findAvailableVirtualSwitch(String vswitch) |
Datastore |
findDatastore(String name) |
List<String> |
getAvailableVirtualSwitches()
Returns the virtual switches available.
|
List<Datastore> |
getDatastores() |
String |
getDescription() |
Integer |
getId() |
String |
getIp() |
String |
getIpmiIp() |
String |
getIpmiPassword() |
Integer |
getIpmiPort() |
String |
getIpmiUser() |
String |
getIpService() |
String |
getName() |
String |
getPassword() |
Integer |
getPort() |
com.abiquo.model.enumerator.MachineState |
getState() |
com.abiquo.model.enumerator.HypervisorType |
getType() |
String |
getUser() |
Integer |
getVirtualCpuCores() |
Integer |
getVirtualCpusUsed() |
Integer |
getVirtualRamInMb() |
Integer |
getVirtualRamUsedInMb() |
String |
getVirtualSwitch() |
void |
setDatastores(List<Datastore> datastores) |
void |
setDescription(String description) |
void |
setIp(String ip) |
void |
setIpmiIp(String ipmiIp) |
void |
setIpmiPassword(String ipmiPassword) |
void |
setIpmiPort(Integer ipmiPort) |
void |
setIpmiUser(String ipmiUser) |
void |
setIpService(String ipService) |
void |
setName(String name) |
void |
setPassword(String password) |
void |
setPort(Integer port) |
void |
setState(com.abiquo.model.enumerator.MachineState state) |
void |
setType(com.abiquo.model.enumerator.HypervisorType type) |
void |
setUser(String user) |
void |
setVirtualCpuCores(Integer virtualCpuCores) |
void |
setVirtualCpusUsed(Integer virtualCpusUsed) |
void |
setVirtualRamInMb(Integer virtualRamInMb) |
void |
setVirtualRamUsedInMb(Integer virtualRamUsedInMb) |
void |
setVirtualSwitch(String virtualSwitch) |
String |
toString() |
void |
update() |
getParentId, getTask, getTasks, getURI, join, unwrap, unwrap, updateLink, wrap, wrap
protected static final int DEFAULT_VRAM_USED
protected static final int DEFAULT_VCPU_USED
protected AbstractPhysicalMachine(RestContext<AbiquoApi,AbiquoAsyncApi> context, com.abiquo.server.core.infrastructure.MachineDto target)
public void delete()
public void update()
public com.abiquo.model.enumerator.MachineState check()
public com.abiquo.model.enumerator.MachineIpmiState checkIpmi()
public Integer getId()
public String getIp()
public String getIpmiIp()
public String getIpmiPassword()
public Integer getIpmiPort()
public String getIpmiUser()
public String getIpService()
public String getName()
public String getPassword()
public Integer getPort()
public com.abiquo.model.enumerator.MachineState getState()
public com.abiquo.model.enumerator.HypervisorType getType()
public String getUser()
public Integer getVirtualCpuCores()
public Integer getVirtualCpusUsed()
public Integer getVirtualRamInMb()
public Integer getVirtualRamUsedInMb()
public String getVirtualSwitch()
public void setDescription(String description)
public void setIp(String ip)
public void setIpmiIp(String ipmiIp)
public void setIpmiPassword(String ipmiPassword)
public void setIpmiPort(Integer ipmiPort)
public void setIpmiUser(String ipmiUser)
public void setIpService(String ipService)
public void setName(String name)
public void setPassword(String password)
public void setPort(Integer port)
public void setState(com.abiquo.model.enumerator.MachineState state)
public void setType(com.abiquo.model.enumerator.HypervisorType type)
public void setUser(String user)
public void setVirtualCpuCores(Integer virtualCpuCores)
public void setVirtualCpusUsed(Integer virtualCpusUsed)
public void setVirtualRamInMb(Integer virtualRamInMb)
public void setVirtualRamUsedInMb(Integer virtualRamUsedInMb)
public void setVirtualSwitch(String virtualSwitch)
public String getDescription()
protected void extractVirtualSwitches()
public List<String> getAvailableVirtualSwitches()
Copyright © 2009-2013 jclouds. All Rights Reserved.