public enum BackupTaskState extends Enum<BackupTaskState>
Enum Constant and Description |
---|
FAILURE
The backup task has failed
|
IN_PROGRESS
The backup task is currently in progress
|
NO_TASK
No backup task has yet been run
|
NOT_STARTED
The backup task has been submitted but not yet started.
|
SUCCESS
The backup task completed successfully
|
Modifier and Type | Method and Description |
---|---|
boolean |
inProgress()
Returns if the backup task is in progress.
|
boolean |
isDone()
Returns true if the backup task completed (successfully or with failure)
|
static BackupTaskState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BackupTaskState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BackupTaskState NO_TASK
public static final BackupTaskState NOT_STARTED
public static final BackupTaskState IN_PROGRESS
public static final BackupTaskState FAILURE
public static final BackupTaskState SUCCESS
public static BackupTaskState[] values()
for (BackupTaskState c : BackupTaskState.values()) System.out.println(c);
public static BackupTaskState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isDone()
public boolean inProgress()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.