Class BaremetalCloud

    • Method Detail

      • getCloudName

        public String getCloudName()
      • getCredentialsId

        public String getCredentialsId()
      • getMaxAsyncThreads

        public String getMaxAsyncThreads()
      • getNextTemplateId

        public int getNextTemplateId()
      • doProvisionArguments

        public void doProvisionArguments​(@QueryParameter
                                         int templateId,
                                         org.kohsuke.stapler.StaplerRequest req,
                                         org.kohsuke.stapler.StaplerResponse rsp)
                                  throws javax.servlet.ServletException,
                                         IOException
        Called by computerSet.jelly when explicitly provisioning a new node via the nodes page.
        Parameters:
        templateId - template id
        req - request
        rsp - response
        Throws:
        javax.servlet.ServletException - if a servlet exception occurs
        IOException - if a IO error occurs
      • doProvision

        public void doProvision​(@QueryParameter
                                int numberOfComputers,
                                @QueryParameter
                                int templateId,
                                org.kohsuke.stapler.StaplerRequest req,
                                org.kohsuke.stapler.StaplerResponse rsp)
                         throws javax.servlet.ServletException,
                                IOException
        Called by provisionArguments.jelly when explicitly provisioning a new node via the nodes page.
        Parameters:
        numberOfComputers - a number of agents
        templateId - template id
        req - request
        rsp - response
        Throws:
        javax.servlet.ServletException - if a servlet exception occurs
        IOException - if a IO error occurs
      • getTemplateId

        public int getTemplateId​(javax.servlet.http.HttpServletRequest req)
        Called by provisionArguments.jelly to pass templateId to doProvision()
        Parameters:
        req - request
        Returns:
        template id
      • getProvisionSidePanelClass

        public Class<?> getProvisionSidePanelClass()
        Called by provisionArguments.jelly and provision.jelly to show a sidepanel.
        Returns:
        provision side panel class
      • doIndex

        public org.kohsuke.stapler.HttpResponse doIndex()
                                                 throws IOException
        The breadcrumb on the provisionArguments.jelly page contains a link to this object. We have no data to display, so redirect the user to the computer set page.
        Returns:
        the http response
        Throws:
        IOException - if an IO error occurs
      • matchCredentials

        public static com.cloudbees.plugins.credentials.Credentials matchCredentials​(Class c,
                                                                                     String id)