public abstract class DeclarativeAgentDescriptor extends hudson.model.Descriptor<DeclarativeAgent>
DeclarativeAgent.| Constructor and Description |
|---|
DeclarativeAgentDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
static hudson.ExtensionList<DeclarativeAgentDescriptor> |
all() |
static DeclarativeAgentDescriptor |
byName(String name)
Get the descriptor for a given name or null if not found.
|
String |
getDeclarativeAgentScriptClass()
The full package and class name for the
DeclarativeAgentScript class corresponding to this. |
static Map<String,org.jenkinsci.plugins.structs.describable.DescribableModel> |
getDescribableModels()
Get a map of name-to-
DescribableModel of all known/registered descriptors. |
String |
getName()
The name for this agent type.
|
static DeclarativeAgent |
instanceForDescriptor(DeclarativeAgentDescriptor descriptor,
Map<String,Object> arguments)
For a given descriptor and map of arguments, return an instance using those arguments.
|
static DeclarativeAgent |
instanceForName(String name,
Map<String,Object> arguments)
For a given name and map of arguments, find the corresponding descriptor and return an instance using those arguments.
|
DeclarativeAgent |
newInstance()
Creates an instance of the corresponding
DeclarativeAgent with no arguments. |
DeclarativeAgent |
newInstance(Map<String,Object> arguments)
Creates an instance of the corresponding
DeclarativeAgent from the given arguments. |
static Map<String,org.jenkinsci.plugins.structs.describable.DescribableModel> |
zeroArgModels()
Get the map of the subset of descriptors with no additional arguments - i.e., "none" and "any".
|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap@Nonnull public String getName()
Symbol on the class.@Nonnull public String getDeclarativeAgentScriptClass()
DeclarativeAgentScript class corresponding to this.DeclarativeAgent Descriptor.clazz class name with "Script" appended.public DeclarativeAgent newInstance(Map<String,Object> arguments) throws Exception
DeclarativeAgent from the given arguments.arguments - A map of strings/objects to be passed to the constructor.DeclarativeAgentExceptionpublic DeclarativeAgent newInstance() throws Exception
DeclarativeAgent with no arguments.DeclarativeAgentExceptionpublic static hudson.ExtensionList<DeclarativeAgentDescriptor> all()
public static Map<String,org.jenkinsci.plugins.structs.describable.DescribableModel> getDescribableModels()
DescribableModel of all known/registered descriptors.DescribableModelspublic static Map<String,org.jenkinsci.plugins.structs.describable.DescribableModel> zeroArgModels()
@CheckForNull public static DeclarativeAgentDescriptor byName(@Nonnull String name)
name - The name for the descriptor to look up@CheckForNull public static DeclarativeAgent instanceForName(@Nonnull String name, Map<String,Object> arguments) throws Exception
name - The name of the descriptorarguments - A map of argumentsDeclarativeAgent instance, or null if the name isn't found.Exception@Nonnull public static DeclarativeAgent instanceForDescriptor(@Nonnull DeclarativeAgentDescriptor descriptor, Map<String,Object> arguments) throws Exception
descriptor - The descriptor instancearguments - A map of argumentsDeclarativeAgent instance.ExceptionCopyright © 2016. All rights reserved.