Package org.apache.drill.exec.server
Class Drillbit
java.lang.Object
org.apache.drill.exec.server.Drillbit
- All Implemented Interfaces:
AutoCloseable
Starts, tracks and stops all the required services for a Drillbit daemon to work.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDrillbit
(DrillConfig config, CaseInsensitiveMap<OptionDefinition> definitions, RemoteServiceSet serviceSet) Drillbit
(DrillConfig config, CaseInsensitiveMap<OptionDefinition> definitions, RemoteServiceSet serviceSet, ScanResult classpathScan) Drillbit
(DrillConfig config, RemoteServiceSet serviceSet) Drillbit
(DrillConfig config, RemoteServiceSet serviceSet, ScanResult classpathScan) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
The drillbit is moved into Quiescent state and the drillbit waits for grace period amount of time.org.apache.drill.exec.server.Drillbit.GracefulShutdownThread
int
int
static void
void
run()
void
setForcefulShutdown
(boolean forcefulShutdown) void
setQuiescentMode
(boolean quiescentMode) void
shutdown()
static Drillbit
start
(DrillConfig config) static Drillbit
start
(DrillConfig config, CaseInsensitiveMap<OptionDefinition> validators, RemoteServiceSet remoteServiceSet) static Drillbit
start
(DrillConfig config, RemoteServiceSet remoteServiceSet) static Drillbit
start
(StartupOptions options)
-
Field Details
-
SYSTEM_OPTIONS_NAME
- See Also:
-
-
Constructor Details
-
Drillbit
- Throws:
Exception
-
Drillbit
public Drillbit(DrillConfig config, CaseInsensitiveMap<OptionDefinition> definitions, RemoteServiceSet serviceSet) throws Exception - Throws:
Exception
-
Drillbit
public Drillbit(DrillConfig config, RemoteServiceSet serviceSet, ScanResult classpathScan) throws Exception - Throws:
Exception
-
Drillbit
public Drillbit(DrillConfig config, CaseInsensitiveMap<OptionDefinition> definitions, RemoteServiceSet serviceSet, ScanResult classpathScan) throws Exception - Throws:
Exception
-
-
Method Details
-
setQuiescentMode
public void setQuiescentMode(boolean quiescentMode) -
setForcefulShutdown
public void setForcefulShutdown(boolean forcefulShutdown) -
getRegistrationHandle
-
getUserPort
public int getUserPort() -
getWebServerPort
public int getWebServerPort() -
getManager
-
getWebServer
-
run
- Throws:
Exception
-
shutdown
public void shutdown() -
close
public void close()The drillbit is moved into Quiescent state and the drillbit waits for grace period amount of time. Then drillbit moves into draining state and waits for all the queries and fragments to complete.- Specified by:
close
in interfaceAutoCloseable
-
getContext
-
getGracefulShutdownThread
public org.apache.drill.exec.server.Drillbit.GracefulShutdownThread getGracefulShutdownThread() -
main
- Throws:
DrillbitStartupException
-
start
- Throws:
DrillbitStartupException
-
start
- Throws:
DrillbitStartupException
-
start
public static Drillbit start(DrillConfig config, RemoteServiceSet remoteServiceSet) throws DrillbitStartupException - Throws:
DrillbitStartupException
-
start
public static Drillbit start(DrillConfig config, CaseInsensitiveMap<OptionDefinition> validators, RemoteServiceSet remoteServiceSet) throws DrillbitStartupException - Throws:
DrillbitStartupException
-