public class HotRestartStateImpl extends Object implements HotRestartState
| Constructor and Description |
|---|
HotRestartStateImpl() |
HotRestartStateImpl(BackupTaskStatus backupTaskStatus,
boolean isHotBackupEnabled,
String backupDirectory) |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJson(JsonObject json)
Extracts the state from the given
json object and mutates the
state of this object. |
String |
getBackupDirectory() |
BackupTaskStatus |
getBackupTaskStatus()
Returns the local hot restart backup task status (not the cluster backup status).
|
boolean |
isHotBackupEnabled() |
JsonObject |
toJson()
Serializes state represented by this object into a
JsonObject. |
String |
toString() |
public HotRestartStateImpl()
public HotRestartStateImpl(BackupTaskStatus backupTaskStatus, boolean isHotBackupEnabled, String backupDirectory)
public BackupTaskStatus getBackupTaskStatus()
HotRestartStategetBackupTaskStatus in interface HotRestartStatepublic boolean isHotBackupEnabled()
isHotBackupEnabled in interface HotRestartStatepublic String getBackupDirectory()
getBackupDirectory in interface HotRestartStatepublic JsonObject toJson()
JsonSerializableJsonObject.toJson in interface JsonSerializablepublic void fromJson(JsonObject json)
JsonSerializablejson object and mutates the
state of this object.fromJson in interface JsonSerializablejson - the JSON object carrying state for this objectCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.