Class PluginImpl

java.lang.Object
hudson.Plugin
hudson.plugins.libvirt.PluginImpl
All Implemented Interfaces:
Saveable, Loadable, org.kohsuke.stapler.StaplerProxy

public class PluginImpl extends Plugin
Author:
Marco Mornati, Philipp Bartsch
  • Constructor Details

    • PluginImpl

      public PluginImpl()
      Constructor.
  • Method Details

    • getInstance

      public static PluginImpl getInstance()
      Returns this singleton instance.
      Returns:
      the singleton.
    • start

      public void start() throws Exception
      Overrides:
      start in class Plugin
      Throws:
      Exception
    • stop

      public void stop() throws Exception
      Overrides:
      stop in class Plugin
      Throws:
      Exception
    • getServers

      public Collection<Hypervisor> getServers()
    • getServer

      public Hypervisor getServer(String host)
    • doCheckStartupWaitingPeriodSeconds

      @POST public FormValidation doCheckStartupWaitingPeriodSeconds(@QueryParameter String secsValue) throws IOException, jakarta.servlet.ServletException
      Throws:
      IOException
      jakarta.servlet.ServletException
    • doCheckStartupTimesToRetryOnFailure

      @POST public FormValidation doCheckStartupTimesToRetryOnFailure(@QueryParameter String retriesValue) throws IOException, jakarta.servlet.ServletException
      Throws:
      IOException
      jakarta.servlet.ServletException
    • doComputerNameValues

      @POST public void doComputerNameValues(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, @QueryParameter("value") String value) throws IOException, jakarta.servlet.ServletException
      Retrieve the list of virtual machine names from the hypervisor.
      Throws:
      IOException
      jakarta.servlet.ServletException
    • doSnapshotNameValues

      @POST public void doSnapshotNameValues(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, @QueryParameter("vm") String vm, @QueryParameter("hypervisor") String hypervisor) throws IOException, jakarta.servlet.ServletException
      Retrieve the list of snapshots from a virtual machine on an hypervisor.
      Throws:
      IOException
      jakarta.servlet.ServletException