public abstract class DeployHostDescriptor<S extends DeployHost<S,T>,T extends DeployTarget<T>> extends Descriptor<DeployHost<S,T>>
DeployHost
descriptors.Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
clazz
Modifier | Constructor and Description |
---|---|
protected |
DeployHostDescriptor() |
protected |
DeployHostDescriptor(Class<? extends DeployHost<S,T>> clazz) |
Modifier and Type | Method and Description |
---|---|
static ExtensionList<? extends DeployHostDescriptor<?,?>> |
all()
Returns all the
DeployHost descriptors. |
static List<DeployHostDescriptor<?,?>> |
allSupported(Set<DeploySourceOrigin> origins,
Class<? extends AbstractProject> jobType)
Returns the descriptors that are supported for the specified origins and job type.
|
S |
createDefault(AbstractProject<?,?> owner,
Set<DeploySourceOrigin> origins)
Creates a default
DeployHost instance from the specified project considering the specified origins. |
abstract S |
createDefault(Run<?,?> run,
Set<DeploySourceOrigin> origins)
Creates a default
DeployHost instance from the specified project run considering the specified origins. |
abstract Class<T> |
getDeployTargetClass()
Returns the subclass of
DeployTarget that the DeployHost is restricted to. |
DeployTargetDescriptor<T> |
getDeployTargetDescriptor() |
boolean |
isSupported(Set<DeploySourceOrigin> origins,
Class<? extends AbstractProject> jobType)
Returns
true if and only if this host is valid for the specified origins and job type. |
boolean |
isSupported(Set<DeploySourceOrigin> origins,
Run<?,?> run)
Returns
true if and only if this host is valid for the specified origins and run. |
S |
updateDefault(AbstractProject<?,?> owner,
Set<DeploySourceOrigin> origins,
S template)
Update a default
DeployHost instance from the specified project considering the specified origins,
filling in any information missing from the previous default but which now has a better guess. |
S |
updateDefault(Run<?,?> run,
Set<DeploySourceOrigin> origins,
S template)
Update a default
DeployHost instance from the specified project run considering the specified origins,
filling in any information missing from the previous default but which now has a better guess. |
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, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
protected DeployHostDescriptor()
protected DeployHostDescriptor(Class<? extends DeployHost<S,T>> clazz)
@NonNull public abstract Class<T> getDeployTargetClass()
DeployTarget
that the DeployHost
is restricted to.DeployTarget
that the DeployHost
is restricted to.@NonNull public DeployTargetDescriptor<T> getDeployTargetDescriptor()
@CheckForNull public S createDefault(@CheckForNull AbstractProject<?,?> owner, @CheckForNull Set<DeploySourceOrigin> origins)
DeployHost
instance from the specified project considering the specified origins.owner
- the project.origins
- the origins.null
if there is no default.@CheckForNull public abstract S createDefault(@CheckForNull Run<?,?> run, @CheckForNull Set<DeploySourceOrigin> origins)
DeployHost
instance from the specified project run considering the specified origins.run
- the project run.origins
- the origins.null
if there is no default.@CheckForNull public S updateDefault(@CheckForNull AbstractProject<?,?> owner, @CheckForNull Set<DeploySourceOrigin> origins, @CheckForNull S template)
DeployHost
instance from the specified project considering the specified origins,
filling in any information missing from the previous default but which now has a better guess.owner
- the project run.origins
- the origins.template
- the previous default.null
if there is no default.@CheckForNull public S updateDefault(@CheckForNull Run<?,?> run, @CheckForNull Set<DeploySourceOrigin> origins, @CheckForNull S template)
DeployHost
instance from the specified project run considering the specified origins,
filling in any information missing from the previous default but which now has a better guess.run
- the project run.origins
- the origins.template
- the previous default.null
if there is no default.public boolean isSupported(@NonNull Set<DeploySourceOrigin> origins, @CheckForNull Class<? extends AbstractProject> jobType)
true
if and only if this host is valid for the specified origins and job type.origins
- the originsjobType
- the job type.true
if and only if this host is valid for the specified origins and job type.public boolean isSupported(@NonNull Set<DeploySourceOrigin> origins, @CheckForNull Run<?,?> run)
true
if and only if this host is valid for the specified origins and run.origins
- the originsrun
- the run.true
if and only if this host is valid for the specified origins and run.public static ExtensionList<? extends DeployHostDescriptor<?,?>> all()
DeployHost
descriptors.DeployHost
descriptors.public static List<DeployHostDescriptor<?,?>> allSupported(@NonNull Set<DeploySourceOrigin> origins, @CheckForNull Class<? extends AbstractProject> jobType)
origins
- the originsjobType
- the job type.Copyright © 2016–2022. All rights reserved.