Class GearmanPluginConfig

All Implemented Interfaces:
ExtensionPoint, Describable<GlobalConfiguration>, Saveable, Loadable, OnMaster

@Extension public class GearmanPluginConfig extends GlobalConfiguration
This class is used to set the global configuration for the gearman-plugin It is also used to enable/disable the gearman plugin.
Author:
Khai Do
  • Constructor Details

    • GearmanPluginConfig

      public GearmanPluginConfig()
      Constructor.
  • Method Details

    • get

      public static GearmanPluginConfig get()
    • doTestConnection

      public FormValidation doTestConnection(@QueryParameter("host") String host, @QueryParameter("port") int port) throws IOException, jakarta.servlet.ServletException
      Throws:
      IOException
      jakarta.servlet.ServletException
    • configure

      public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) throws Descriptor.FormException
      Overrides:
      configure in class GlobalConfiguration
      Throws:
      Descriptor.FormException
    • setHost

      @DataBoundSetter public void setHost(String host)
    • setPort

      @DataBoundSetter public void setPort(int port)
    • setEnablePlugin

      @DataBoundSetter public void setEnablePlugin(boolean enablePlugin)
    • isEnablePlugin

      public boolean isEnablePlugin()
      This method returns true if the global configuration says we should enable the plugin.
    • getHost

      public String getHost()
      This method returns the value from the server host text box
    • getPort

      public int getPort()
      This method returns the value from the server port text box