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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDrillbit(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 TypeMethodDescriptionvoidclose()The drillbit is moved into Quiescent state and the drillbit waits for grace period amount of time.org.apache.drill.exec.server.Drillbit.GracefulShutdownThreadintintstatic voidvoidrun()voidsetForcefulShutdown(boolean forcefulShutdown) voidsetQuiescentMode(boolean quiescentMode) voidshutdown()static Drillbitstart(DrillConfig config) static Drillbitstart(DrillConfig config, CaseInsensitiveMap<OptionDefinition> validators, RemoteServiceSet remoteServiceSet) static Drillbitstart(DrillConfig config, RemoteServiceSet remoteServiceSet) static Drillbitstart(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:
closein 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
-