|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VirtualMachine
Defines a Virtual machine
| Nested Class Summary | |
|---|---|
static class |
VirtualMachine.PropertyName
|
| Method Summary | |
|---|---|
void |
delete()
Deletes the virtual machine and all associated storage |
boolean |
download(File remoteFile,
File localTargetDirectory)
Download a file from the virtual machine. |
String |
executeOn(String[] args)
|
InetAddress |
getAddress()
Returns the IP address of the machine, which can be varying at runtime |
VirtualMachineConfig |
getConfig()
Returns the persisted information for this virtual machine. |
VirtualMachineInfo |
getInfo()
Returns the current machine information |
Machine |
getMachine()
Returns the machine (if exists) on which this virtual machine was allocated on or null if there is no notion of Machines on the server pool used. |
String |
getName()
Returns the machine's name |
String |
getProperty(VirtualMachine.PropertyName name)
Gets a property value by its name as defined in VirtualMachine.PropertyName |
ServerPool |
getServerPool()
Returns the server pool this virtual machine was allocated on |
VirtUser |
getUser()
Returns the user used to run software in this virtual machine |
void |
resume()
Resumes the virtual machine. |
void |
setAddress(InetAddress address)
Sets the IO address of the machine, usually performed by a back end operation. |
void |
setProperty(VirtualMachine.PropertyName name,
String value)
Sets a VirtualMachine.PropertyName property on this virtual machine instance. |
void |
start()
Starts the virtual machine |
void |
stop()
Stops a virtual machine. |
void |
suspend()
Suspend the virtual machine |
boolean |
upload(File localFile,
File remoteTargetDirectory)
Upload a file to the virtual machine. |
| Method Detail |
|---|
String getName()
InetAddress getAddress()
void setAddress(InetAddress address)
address - the new IP address
void start()
throws VirtException
VirtException - if the request to start failed.
void suspend()
throws VirtException
VirtException - if the request to suspend failed
void resume()
throws VirtException
VirtException - if the request to resume failed
void stop()
throws VirtException
VirtException - if the request to stop failed
void delete()
throws VirtException
VirtException - if the deletion failedVirtualMachineInfo getInfo()
ServerPool getServerPool()
Machine getMachine()
VirtUser getUser()
void setProperty(VirtualMachine.PropertyName name,
String value)
VirtualMachine.PropertyName property on this virtual machine instance.
name - the property namevalue - the property valueString getProperty(VirtualMachine.PropertyName name)
VirtualMachine.PropertyName
name - the requested property name.
String executeOn(String[] args)
throws IOException,
InterruptedException
IOException
InterruptedException
boolean upload(File localFile,
File remoteTargetDirectory)
localFile - Location of the file in the local system.remoteTargetDirectory - An existing directory inside the
virtual machine where the file needs to be uploaded to.
boolean download(File remoteFile,
File localTargetDirectory)
remoteFile - Location of the file in the virtual machine.localTargetDirectory - An existing directory in the local system
where the file needs to be downloaded to.
VirtualMachineConfig getConfig()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||