|
Agaetis VMWare Maven 2 Plugin 1.0.0.7 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
com.agaetis.maven.plugins.vmware.PowerOffMojo
public class PowerOffMojo
This goal Power Off a virtual machine.
sample :
mvn vmware:powerOff -DvixLibPath=./path/to/vixlib -Dusername=myUsername -Dpassword=myPassword
-Dhost=192.168.x.x -DvmxFilepath="/path/to/the/vmx/file"
| Field Summary | |
|---|---|
private String |
_cmd
|
private String |
_guestPassword
Guest password |
private String |
_guestUsername
Guest username |
private String |
_host
|
private String |
_password
Password for the virtual machine. |
private Integer |
_port
|
private Integer |
_serviceProvider
the default value is VMWARE_VI_SERVER |
private String |
_shutdownOpt
shutdown option |
private String |
_username
Username for the virtual machine. |
private String |
_version
Plugin version |
private String |
_vixLibPath
Path to the vix lib. |
private String |
_vmxFilepath
String to define the filepath of the vmx file locally on the vmware server. |
private boolean |
_waitForTools
Boolean that defines if after powering on the vm, we should wait for vmware tools to start. |
private Integer |
_waitForToolsTimeout
Integer that defines the time to wait before exiting from the waitToolsInGuest method of the virtual machine. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
PowerOffMojo()
|
|
| Method Summary | |
|---|---|
void |
execute()
Main method for the mojo. |
String |
getCmd()
Get the cmd |
String |
getGuestPassword()
Get the guestPassword |
String |
getGuestUsername()
Get the guestUsername |
String |
getHost()
Get the host |
String |
getPassword()
Get the password |
Integer |
getPort()
Get the port |
Integer |
getServiceProvider()
Get the serviceProvider |
String |
getShutdownOpt()
Get the shutdownOpt |
String |
getUsername()
Get the username |
String |
getVersion()
Get the version |
String |
getVixLibPath()
Get the vixLibPath |
String |
getVmxFilepath()
Get the vmxFilepath |
Integer |
getWaitForToolsTimeout()
Get the waitForToolsTimeout |
boolean |
isWaitForTools()
Get the waitForTools |
void |
setCmd(String cmd)
Set the cmd |
void |
setGuestPassword(String guestPassword)
Set the guestPassword |
void |
setGuestUsername(String guestUsername)
Set the guestUsername |
void |
setHost(String host)
Set the host |
void |
setPassword(String password)
Set the password |
void |
setPort(Integer port)
Set the port |
void |
setServiceProvider(Integer serviceProvider)
Set the serviceProvider |
void |
setShutdownOpt(String shutdownOpt)
Set the shutdownOpt |
void |
setUsername(String username)
Set the username |
void |
setVersion(String version)
Set the version |
void |
setVixLibPath(String vixLibPath)
Set the vixLibPath |
void |
setVmxFilepath(String vmxFilepath)
Set the vmxFilepath |
void |
setWaitForTools(boolean waitForTools)
Set the waitForTools |
void |
setWaitForToolsTimeout(Integer waitForToolsTimeout)
Set the waitForToolsTimeout |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private String _guestUsername
private String _shutdownOpt
private String _guestPassword
private String _vixLibPath
private String _username
private String _password
private Integer _serviceProvider
private String _version
private Integer _waitForToolsTimeout
private boolean _waitForTools
private String _vmxFilepath
private String _host
private Integer _port
private String _cmd
| Constructor Detail |
|---|
public PowerOffMojo()
| Method Detail |
|---|
public String getVixLibPath()
public void setVixLibPath(String vixLibPath)
vixLibPath - the vixLibPath to setpublic String getUsername()
public void setUsername(String username)
username - the username to setpublic String getPassword()
public void setPassword(String password)
password - the password to setpublic Integer getServiceProvider()
public void setServiceProvider(Integer serviceProvider)
serviceProvider - the serviceProvider to setpublic String getVersion()
public void setVersion(String version)
version - the version to setpublic String getVmxFilepath()
public void setVmxFilepath(String vmxFilepath)
vmxFilepath - the vmxFilepath to setpublic boolean isWaitForTools()
public void setWaitForTools(boolean waitForTools)
waitForTools - the waitForTools to setpublic String getHost()
public void setHost(String host)
host - the host to setpublic Integer getPort()
public void setPort(Integer port)
port - the port to setpublic String getCmd()
public void setCmd(String cmd)
cmd - the cmd to setpublic String getGuestUsername()
public void setGuestUsername(String guestUsername)
guestUsername - the guestUsername to setpublic String getShutdownOpt()
public void setShutdownOpt(String shutdownOpt)
shutdownOpt - the shutdownOpt to setpublic String getGuestPassword()
public void setGuestPassword(String guestPassword)
guestPassword - the guestPassword to setpublic Integer getWaitForToolsTimeout()
public void setWaitForToolsTimeout(Integer waitForToolsTimeout)
waitForToolsTimeout - the waitForToolsTimeout to set
public void execute()
throws MojoExecutionException,
MojoFailureException
MojoExecutionException
MojoFailureException
|
Agaetis VMWare Maven 2 Plugin 1.0.0.7 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||