hudson.plugins.virtualbox
Class VirtualBoxPlugin

java.lang.Object
  extended by hudson.Plugin
      extended by hudson.plugins.virtualbox.VirtualBoxPlugin
All Implemented Interfaces:
hudson.model.Saveable

public class VirtualBoxPlugin
extends hudson.Plugin

Author:
Evgeny Mandrikov

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.Plugin
hudson.Plugin.DummyImpl
 
Field Summary
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
VirtualBoxPlugin()
           
 
Method Summary
 void doComputerNameValues(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp, java.lang.String hostName)
          For UI.
static java.util.List<VirtualBoxMachine> getDefinedVirtualMachines(java.lang.String hostName)
           
static VirtualBoxHost getHost(java.lang.String hostName)
           
static java.util.List<VirtualBoxHost> getHosts()
           
static VirtualBoxMachine getVirtualBoxMachine(java.lang.String hostName, java.lang.String virtualMachineName)
           
 void start()
           
 void stop()
           
 
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
 

Constructor Detail

VirtualBoxPlugin

public VirtualBoxPlugin()
Method Detail

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 name
virtualMachineName - 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.