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
TODO see https://jax-ws.dev.java.net/issues/show_bug.cgi?id=554
- 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<VirtualBoxCloud> getHosts()
- Returns:
- all registered
VirtualBoxCloud
getHost
public static VirtualBoxCloud getHost(java.lang.String hostName)
- Parameters:
hostName - host name
- Returns:
VirtualBoxCloud 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
doGetSlaveAgent
public void doGetSlaveAgent(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse resp,
@QueryParameter(value="macAddress")
java.lang.String macAddress)
throws java.io.IOException
- Used for discovering
VirtualBoxSlave with specified MAC Address.
HTTP 404 Error will be returned, if slave can't be found.
For example: if slave named "virtual" has MAC Adress 080027E852CC, then
http://localhost:8080/hudson/plugin/virtualbox/getSlaveAgent?macAddress=080027E852CC
redirects to
http://localhost:8080/hudson/computer/virtual/slave-agent.jnlp
- Parameters:
req - requestresp - responsemacAddress - MAC Address
- Throws:
java.io.IOException - if something wrong
Copyright © 2010. All Rights Reserved.