hudson.plugins.virtualbox
Class VirtualBoxPlugin
java.lang.Object
hudson.Plugin
hudson.plugins.virtualbox.VirtualBoxPlugin
- All Implemented Interfaces:
- hudson.model.Saveable
public class VirtualBoxPlugin
- extends hudson.Plugin
- Author:
- Evgeny Mandrikov
| Nested classes/interfaces inherited from class hudson.Plugin |
hudson.Plugin.DummyImpl |
| Fields inherited from interface hudson.model.Saveable |
NOOP |
| Methods inherited from class hudson.Plugin |
configure, configure, doDynamic, getConfigXml, load, postInitialize, save, setServletContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VirtualBoxPlugin
public VirtualBoxPlugin()
start
public void start()
throws java.lang.Exception
- Overrides:
start in class hudson.Plugin
- Throws:
java.lang.Exception
stop
public void stop()
throws java.lang.Exception
- Overrides:
stop in class hudson.Plugin
- Throws:
java.lang.Exception
getHosts
public static java.util.List<VirtualBoxHost> getHosts()
- Returns:
- all registered
VirtualBoxHost
getHost
public static VirtualBoxHost getHost(java.lang.String hostName)
- Parameters:
hostName - host name
- Returns:
VirtualBoxHost by specified name, null if not found
getDefinedVirtualMachines
public static java.util.List<VirtualBoxMachine> getDefinedVirtualMachines(java.lang.String hostName)
- Parameters:
hostName - host name
- Returns:
- all registered
VirtualBoxMachine from specified host, empty list if unknown host
getVirtualBoxMachine
public static VirtualBoxMachine getVirtualBoxMachine(java.lang.String hostName,
java.lang.String virtualMachineName)
- Parameters:
hostName - host namevirtualMachineName - virtual machine name
- Returns:
VirtualBoxMachine from specified host with specified name, null if not found
doComputerNameValues
public void doComputerNameValues(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse resp,
@QueryParameter(value="hostName")
java.lang.String hostName)
throws java.io.IOException,
javax.servlet.ServletException
- For UI.
- Throws:
java.io.IOException
javax.servlet.ServletException
Copyright © 2010. All Rights Reserved.