public static enum ZKRegistry.DrillbitTracker.State extends Enum<ZKRegistry.DrillbitTracker.State>
Enum Constant and Description |
---|
DEREGISTERED
The Drillbit was working just fine, but its registration has dropped
out of ZK for a reason best left to the cluster controller to
determine.
|
NEW
A new Drillbit is one that the AM has launched, but that has not yet
registered itself with ZK.
|
REGISTERED
Normal operating state: the AM launched the Drillbit, which then
dutifully registered itself in ZK.
|
UNMANAGED
An unmanaged Drillbit is one that has announced itself via ZK, but
which the AM didn't launch (or has not yet received confirmation from
YARN that it was launched.) In the normal state, this state either does
not occur (YARN reports the task launch before the Drillbit registers
in ZK) or is transient (if the Drillbit registers in ZK before YARN
gets around to telling the AM that the Drillbit was launched.) A
Drillbit that stays in the unregistered state is likely one launched
outside the AM: either launched manually or (possibly), one left from a
previous, failed AM run (though YARN is supposed to kill left-over
child processes in that case.)
|
Modifier and Type | Method and Description |
---|---|
static ZKRegistry.DrillbitTracker.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ZKRegistry.DrillbitTracker.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZKRegistry.DrillbitTracker.State UNMANAGED
public static final ZKRegistry.DrillbitTracker.State NEW
public static final ZKRegistry.DrillbitTracker.State REGISTERED
public static final ZKRegistry.DrillbitTracker.State DEREGISTERED
public static ZKRegistry.DrillbitTracker.State[] values()
for (ZKRegistry.DrillbitTracker.State c : ZKRegistry.DrillbitTracker.State.values()) System.out.println(c);
public static ZKRegistry.DrillbitTracker.State 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 nullCopyright © 1970 The Apache Software Foundation. All rights reserved.