Package hudson.plugins.libvirt
Class Hypervisor.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<Cloud>
-
- hudson.plugins.libvirt.Hypervisor.DescriptorImpl
-
- Enclosing class:
- Hypervisor
@Extension public static final class Hypervisor.DescriptorImpl extends Descriptor<Cloud>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject o)
FormValidation
doCheckCredentialsId(Item item, String hypervisorType, String hypervisorTransport, String hypervisorHost, String hypervisorSshPort, String username, String hypervisorSystemUrl, String credentialsId)
ListBoxModel
doFillCredentialsIdItems(Item context, String hypervisorType, String hypervisorTransport, String hypervisorHost, String hypervisorSshPort, String username, String hypervisorSystemUrl, String credentialsId)
FormValidation
doTestConnection(String hypervisorType, String hypervisorTransport, String hypervisorHost, String hypervisorSshPort, String username, String hypervisorSystemUrl, String credentialsId)
String
getDisplayName()
String
getHypervisorHost()
int
getHypervisorSshPort()
String
getHypervisorSystemUrl()
String
getHypervisorTransport()
List<String>
getHypervisorTransports()
String
getHypervisorType()
List<String>
getHypervisorTypes()
String
getUsername()
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getDisplayName
@NonNull public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<Cloud>
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject o) throws Descriptor.FormException
- Overrides:
configure
in classDescriptor<Cloud>
- Throws:
Descriptor.FormException
-
doFillCredentialsIdItems
public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item context, @QueryParameter String hypervisorType, @QueryParameter String hypervisorTransport, @QueryParameter String hypervisorHost, @QueryParameter String hypervisorSshPort, @QueryParameter String username, @QueryParameter String hypervisorSystemUrl, @QueryParameter String credentialsId)
-
doCheckCredentialsId
public FormValidation doCheckCredentialsId(@AncestorInPath Item item, @QueryParameter String hypervisorType, @QueryParameter String hypervisorTransport, @QueryParameter String hypervisorHost, @QueryParameter String hypervisorSshPort, @QueryParameter String username, @QueryParameter String hypervisorSystemUrl, @QueryParameter String credentialsId)
-
doTestConnection
@POST public FormValidation doTestConnection(@QueryParameter String hypervisorType, @QueryParameter String hypervisorTransport, @QueryParameter String hypervisorHost, @QueryParameter String hypervisorSshPort, @QueryParameter String username, @QueryParameter String hypervisorSystemUrl, @QueryParameter String credentialsId) throws Exception, javax.servlet.ServletException
- Throws:
Exception
javax.servlet.ServletException
-
getHypervisorHost
public String getHypervisorHost()
-
getHypervisorSshPort
public int getHypervisorSshPort()
-
getHypervisorSystemUrl
public String getHypervisorSystemUrl()
-
getHypervisorType
public String getHypervisorType()
-
getHypervisorTransport
public String getHypervisorTransport()
-
getUsername
public String getUsername()
-
-