public class SCheckpointConfig
extends java.lang.Object
Constructor and Description |
---|
SCheckpointConfig()
Create a default SCheckpointConfig.
|
SCheckpointConfig(boolean force,
int kBytes,
int minutes)
Create a SCheckpointConfig with specified attributes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getForce()
Return the configuration of the checkpoint force option.
|
int |
getKBytes()
Return the checkpoint log data threshold, in kilobytes.
|
int |
getMinutes()
Return the checkpoint time threshold, in minutes.
|
SCheckpointConfig |
setForce(boolean force)
Configure the checkpoint force option.
|
SCheckpointConfig |
setKBytes(int kBytes)
Configure the checkpoint log data threshold, in kilobytes.
|
SCheckpointConfig |
setMinutes(int minutes)
Configure the checkpoint time threshold, in minutes.
|
public SCheckpointConfig()
public SCheckpointConfig(boolean force, int kBytes, int minutes)
force
- if a checkpoint is always performedkBytes
- the checkpoint log data threshold, in kilobytesminutes
- the checkpint time threshold, in minutespublic boolean getForce()
public SCheckpointConfig setForce(boolean force)
force
- if set to true, force a checkpoint, even if there has been
no activity since the last checkpoint.public int getKBytes()
public SCheckpointConfig setKBytes(int kBytes)
kBytes
- if the kbytes
parameter is non-zero, a checkpoint
will be performed if more than kbytes
of log data have been
written since the last checkpoint.public int getMinutes()
public SCheckpointConfig setMinutes(int minutes)
minutes
- if the minutes
parameter is non-zero, a
checkpoint is performed if more than min minutes have passed since the
last checkpoint.Copyright (c) 2016, 2019 Oracle and/or its affiliates. All rights reserved.