Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_HA |
static int |
DEFAULT_INSTANCES |
static String |
DEFAULT_ISOLATION_GROUP |
static boolean |
DEFAULT_MULTI_THREADED |
static boolean |
DEFAULT_REDEPLOY |
static long |
DEFAULT_REDEPLOY_GRACE_PERIOD |
static long |
DEFAULT_REDEPLOY_SCAN_PERIOD |
static boolean |
DEFAULT_WORKER |
Constructor and Description |
---|
DeploymentOptions()
Default constructor
|
DeploymentOptions(DeploymentOptions other)
Copy constructor
|
DeploymentOptions(JsonObject json)
Constructor for creating a instance from JSON
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
void |
fromJson(JsonObject json)
Initialise the fields of this instance from the specified JSON
|
JsonObject |
getConfig()
Get the JSON configuration that will be passed to the verticle(s) when deployed.
|
List<String> |
getExtraClasspath()
Get any extra classpath to be used when deploying the verticle.
|
int |
getInstances()
Get the number of instances that should be deployed.
|
String |
getIsolationGroup()
Get the isolation group that will be used when deploying the verticle(s)
|
long |
getRedeployGracePeriod() |
long |
getRedeployScanPeriod() |
int |
hashCode() |
boolean |
isHa()
Will the verticle(s) be deployed as HA (highly available) ?
|
boolean |
isMultiThreaded()
Should the verticle(s) be deployed as a multi-threaded worker verticle?
|
boolean |
isRedeploy() |
boolean |
isWorker()
Should the verticle(s) be deployed as a worker verticle?
|
DeploymentOptions |
setConfig(JsonObject config)
Set the JSON configuration that will be passed to the verticle(s) when it's deployed
|
DeploymentOptions |
setExtraClasspath(List<String> extraClasspath)
Set any extra classpath to be used when deploying the verticle.
|
DeploymentOptions |
setHa(boolean ha)
Set whether the verticle(s) will be deployed as HA.
|
DeploymentOptions |
setInstances(int instances)
Set the number of instances that should be deployed.
|
DeploymentOptions |
setIsolationGroup(String isolationGroup)
Set the isolation group that will be used when deploying the verticle(s)
|
DeploymentOptions |
setMultiThreaded(boolean multiThreaded)
Set whether the verticle(s) should be deployed as a multi-threaded worker verticle
|
DeploymentOptions |
setRedeploy(boolean redeploy) |
DeploymentOptions |
setRedeployGracePeriod(long redeployGracePeriod) |
DeploymentOptions |
setRedeployScanPeriod(long redeployScanPeriod) |
DeploymentOptions |
setWorker(boolean worker)
Set whether the verticle(s) should be deployed as a worker verticle
|
JsonObject |
toJson()
Convert this to JSON
|
public static final boolean DEFAULT_WORKER
public static final boolean DEFAULT_MULTI_THREADED
public static final String DEFAULT_ISOLATION_GROUP
public static final boolean DEFAULT_HA
public static final int DEFAULT_INSTANCES
public static final boolean DEFAULT_REDEPLOY
public static final long DEFAULT_REDEPLOY_SCAN_PERIOD
public static final long DEFAULT_REDEPLOY_GRACE_PERIOD
public DeploymentOptions()
public DeploymentOptions(DeploymentOptions other)
other
- the instance to copypublic DeploymentOptions(JsonObject json)
json
- the JSONpublic void fromJson(JsonObject json)
json
- the JSONpublic JsonObject getConfig()
public DeploymentOptions setConfig(JsonObject config)
config
- the JSON configpublic boolean isWorker()
public DeploymentOptions setWorker(boolean worker)
worker
- true for worker, false otherwisepublic boolean isMultiThreaded()
Ignored if isWorker()
is not true.
public DeploymentOptions setMultiThreaded(boolean multiThreaded)
multiThreaded
- true for multi-threaded worker, false otherwisepublic String getIsolationGroup()
public DeploymentOptions setIsolationGroup(String isolationGroup)
isolationGroup
- - the isolation grouppublic JsonObject toJson()
public boolean isHa()
public DeploymentOptions setHa(boolean ha)
ha
- true if to be deployed as HA, false otherwisepublic List<String> getExtraClasspath()
Ignored if no isolation group is set.
public DeploymentOptions setExtraClasspath(List<String> extraClasspath)
Ignored if no isolation group is set.
public int getInstances()
public DeploymentOptions setInstances(int instances)
instances
- the number of instancespublic boolean isRedeploy()
public DeploymentOptions setRedeploy(boolean redeploy)
public long getRedeployScanPeriod()
public DeploymentOptions setRedeployScanPeriod(long redeployScanPeriod)
public long getRedeployGracePeriod()
public DeploymentOptions setRedeployGracePeriod(long redeployGracePeriod)
Copyright © 2015. All Rights Reserved.