Package org.apache.drill.yarn.zk
Class ZKRegistry.DrillbitTracker
java.lang.Object
org.apache.drill.yarn.zk.ZKRegistry.DrillbitTracker
- Enclosing class:
- ZKRegistry
State of each Drillbit that we've discovered through ZK or launched via the
AM. The tracker is where we combine the ZK information with AM to correlate
overall Drillbit health.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
A Drillbit can be in one of four states. -
Field Summary
Modifier and TypeFieldDescriptionprotected CoordinationProtos.DrillbitEndpoint
For Drillbits discovered through ZK, the Drill endpoint for the Drillbit.protected final String
The common key used between tasks and ZK registrations.protected ZKRegistry.DrillbitTracker.State
ZK tracking state.protected Task
For Drillbits started by the AM, the task object for this Drillbit. -
Constructor Summary
ConstructorDescriptionDrillbitTracker
(String key, CoordinationProtos.DrillbitEndpoint endpoint) DrillbitTracker
(String key, Task task) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Mark that a YARN-managed Drillbit has dropped out of ZK.
-
Field Details
-
key
The common key used between tasks and ZK registrations. The key is of the form:
host:port:port:port
-
state
ZK tracking state. SeeZKRegistry.DrillbitTracker.State
-
task
For Drillbits started by the AM, the task object for this Drillbit. -
endpoint
For Drillbits discovered through ZK, the Drill endpoint for the Drillbit.
-
-
Constructor Details
-
DrillbitTracker
-
DrillbitTracker
-
-
Method Details
-
becomeUnregistered
public void becomeUnregistered()Mark that a YARN-managed Drillbit has dropped out of ZK.
-