public class InstanceConfig extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BACKUP_COUNT
The default value of the
backup-count |
static int |
DEFAULT_FLOW_CONTROL_PERIOD_MS
The default value of the
flow-control period . |
Constructor and Description |
---|
InstanceConfig() |
Modifier and Type | Method and Description |
---|---|
int |
getBackupCount()
Returns the
backup-count used for job metadata
and snapshots |
int |
getCooperativeThreadCount()
Returns the number of cooperative execution threads.
|
int |
getFlowControlPeriodMs()
Returns the
flow-control period in milliseconds. |
String |
getTempDir()
Returns Jet's temp directory.
|
InstanceConfig |
setBackupCount(int newBackupCount)
Sets the number of synchronous backups for storing job metadata and
snapshots.
|
InstanceConfig |
setCooperativeThreadCount(int size)
Sets the number of threads each cluster member will use to execute Jet
jobs.
|
InstanceConfig |
setFlowControlPeriodMs(int flowControlPeriodMs)
While executing a Jet job there is the issue of regulating the rate
at which one member of the cluster sends data to another member.
|
InstanceConfig |
setTempDir(String tempDir)
Sets the directory where Jet can place its temporary working directories.
|
public static final int DEFAULT_FLOW_CONTROL_PERIOD_MS
flow-control period
.public static final int DEFAULT_BACKUP_COUNT
backup-count
public InstanceConfig setCooperativeThreadCount(int size)
public int getCooperativeThreadCount()
public InstanceConfig setTempDir(String tempDir)
@Nonnull public String getTempDir()
java.io.tmpdir
system
property.public InstanceConfig setFlowControlPeriodMs(int flowControlPeriodMs)
public int getFlowControlPeriodMs()
flow-control period
in milliseconds.public InstanceConfig setBackupCount(int newBackupCount)
For example, if backup count is set to 2, all job metadata and snapshot data will be replicated to two other members. If snapshots are enabled in the case that at most two members fail simultaneously the job can be restarted and continued from latest snapshot.
public int getBackupCount()
backup-count
used for job metadata
and snapshotsCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.