@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public abstract class ServerScope extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ServerScope.Build |
static class |
ServerScope.Node
Server is scoped to Jenkins node of the name equal to the specifier.
|
static class |
ServerScope.Time |
static class |
ServerScope.Unlimited
Opt-out of any cleanup performed by the plugin.
|
Modifier and Type | Field and Description |
---|---|
static String |
METADATA_KEY
Name of the openstack metadata key
|
protected String |
name |
protected String |
specifier |
Modifier and Type | Method and Description |
---|---|
protected boolean |
_equals(ServerScope o)
Contribute additional criteria for equality.
|
boolean |
equals(Object o) |
static ServerScope |
extract(org.openstack4j.model.compute.Server server)
Get the scope of a server.
|
String |
getValue()
Get Metadata value that represent this scope.
|
int |
hashCode() |
abstract boolean |
isOutOfScope(org.openstack4j.model.compute.Server server)
Determine whether the server is out of scope or not.
|
static ServerScope |
parse(String scope) |
String |
toString() |
public static final String METADATA_KEY
public static ServerScope parse(String scope) throws IllegalArgumentException
IllegalArgumentException
@Nonnull public static ServerScope extract(org.openstack4j.model.compute.Server server) throws IllegalStateException
IllegalStateException
- In case the scope can not be parsed.public String getValue()
protected boolean _equals(ServerScope o)
public abstract boolean isOutOfScope(@Nonnull org.openstack4j.model.compute.Server server)
Copyright © 2016–2020. All rights reserved.