public enum ProgramPhase extends Enum<ProgramPhase>
Enum Constant and Description |
---|
EXECUTE |
SETUP |
TERMINATE |
WORKER_ITERATION_END |
WORKER_ITERATION_START |
Modifier and Type | Method and Description |
---|---|
boolean |
masterState() |
static ProgramPhase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProgramPhase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
boolean |
workerState() |
public static final ProgramPhase SETUP
public static final ProgramPhase WORKER_ITERATION_START
public static final ProgramPhase EXECUTE
public static final ProgramPhase WORKER_ITERATION_END
public static final ProgramPhase TERMINATE
public static ProgramPhase[] values()
for (ProgramPhase c : ProgramPhase.values()) System.out.println(c);
public static ProgramPhase 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 masterState()
public boolean workerState()
Copyright © 2013–2021 Apache Software Foundation. All rights reserved.