public abstract class DeployHost<S extends DeployHost<S,T>,T extends DeployTarget<T>> extends AbstractDescribableImpl<DeployHost<S,T>>
DeployTarget
s to be deployed.Modifier | Constructor and Description |
---|---|
protected |
DeployHost(List<T> targets)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static List<DeployHost<?,?>> |
createDefaults(AbstractProject<?,?> owner,
Set<DeploySourceOrigin> origins) |
static List<DeployHost<?,?>> |
createDefaults(Run<?,?> run,
Set<DeploySourceOrigin> origins) |
boolean |
equals(Object o) |
DeployHostDescriptor<S,T> |
getDescriptor() |
abstract String |
getDisplayName() |
List<T> |
getTargets()
Returns the targets to deploy.
|
int |
hashCode() |
protected abstract boolean |
isAuthenticationValid(Authentication authentication)
Return
true if and only if this DeployHost requires to resolve some specific
Credentials from the CredentialsProvider API and
the provided Authentication can find those Credentials |
boolean |
isValid(AbstractProject<?,?> project)
Checks if this deploy set is valid for use against the specified project by the system authentication.
|
boolean |
isValid(AbstractProject<?,?> project,
Authentication authentication)
Checks if this deploy set is valid for use against the specified project by the specified authentication.
|
static boolean |
isValid(List<? extends DeployHost<?,?>> sets,
AbstractProject<?,?> owner,
Authentication authentication) |
static boolean |
isValid(List<? extends DeployHost<?,?>> sets,
Run<?,?> owner,
Authentication authentication) |
boolean |
isValid(Run<?,?> run)
Checks if this deploy set is valid for use against the specified run by the system authentication.
|
boolean |
isValid(Run<?,?> run,
Authentication authentication)
Checks if this deploy set is valid for use against the specified run by the specified authentication.
|
String |
toString() |
static List<DeployHost<?,?>> |
updateDefaults(AbstractProject<?,?> owner,
Set<DeploySourceOrigin> origins,
List<? extends DeployHost<?,?>> templates) |
static List<DeployHost<?,?>> |
updateDefaults(Run<?,?> run,
Set<DeploySourceOrigin> origins,
List<? extends DeployHost<?,?>> templates) |
public static boolean isValid(List<? extends DeployHost<?,?>> sets, Run<?,?> owner, Authentication authentication)
public static boolean isValid(List<? extends DeployHost<?,?>> sets, AbstractProject<?,?> owner, Authentication authentication)
@NonNull public final List<T> getTargets()
public final boolean isValid(AbstractProject<?,?> project, Authentication authentication)
project
- the AbstractProject
to check (will be the last successful Run
of the
project).authentication
- the Authentication
that the deployment would be performed as.true
if and only if this deploy set is valid for use against the specified project by the
specified authentication.public final boolean isValid(AbstractProject<?,?> project)
project
- the AbstractProject
to check (will be the last successful Run
of the
project).true
if and only if this deploy set is valid for use against the specified project by the
system authentication.public final boolean isValid(Run<?,?> run)
run
- the Run
to check.true
if and only if this deploy set is valid for use against the specified run by the
system authentication.public final boolean isValid(Run<?,?> run, Authentication authentication)
run
- the Run
to check.authentication
- the Authentication
that the deployment would be performed as.true
if and only if this deploy set is valid for use against the specified run by the
specified authentication.protected abstract boolean isAuthenticationValid(Authentication authentication)
true
if and only if this DeployHost
requires to resolve some specific
Credentials
from the CredentialsProvider
API and
the provided Authentication
can find those Credentials
authentication
- the authentication.true
if and only if the provided Authentication
can resolve all the required
Credentials
needed to deploy this DeployHost
.public abstract String getDisplayName()
public DeployHostDescriptor<S,T> getDescriptor()
getDescriptor
in interface Describable<DeployHost<S extends DeployHost<S,T>,T extends DeployTarget<T>>>
getDescriptor
in class AbstractDescribableImpl<DeployHost<S extends DeployHost<S,T>,T extends DeployTarget<T>>>
public static List<DeployHost<?,?>> createDefaults(@CheckForNull AbstractProject<?,?> owner, @CheckForNull Set<DeploySourceOrigin> origins)
@CheckForNull public static List<DeployHost<?,?>> createDefaults(@CheckForNull Run<?,?> run, @CheckForNull Set<DeploySourceOrigin> origins)
public static List<DeployHost<?,?>> updateDefaults(@CheckForNull AbstractProject<?,?> owner, @CheckForNull Set<DeploySourceOrigin> origins, List<? extends DeployHost<?,?>> templates)
@CheckForNull public static List<DeployHost<?,?>> updateDefaults(@CheckForNull Run<?,?> run, @CheckForNull Set<DeploySourceOrigin> origins, List<? extends DeployHost<?,?>> templates)
Copyright © 2016–2022. All rights reserved.