@PublicAPI public class RestartMode extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static RestartMode |
ANYWHERE
The task will be restarted according to its possible resources.
|
static RestartMode |
ELSEWHERE
The task will be restarted on an other node.
|
Modifier | Constructor and Description |
---|---|
|
RestartMode() |
protected |
RestartMode(int index,
String description)
Implicit constructor of a restart mode.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getDescription() |
int |
getIndex() |
static RestartMode |
getMode(int restartModeId) |
static RestartMode |
getMode(String description)
Return the RestartMode corresponding to the given
description . |
int |
hashCode() |
String |
toString() |
public static final RestartMode ANYWHERE
public static final RestartMode ELSEWHERE
public RestartMode()
protected RestartMode(int index, String description)
description
- the name of the restart mode.public static RestartMode getMode(String description)
description
.description
- a string representing the restart mode.public static RestartMode getMode(int restartModeId)
public String getDescription()
public int getIndex()