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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionDrillbit(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 SummaryModifier 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
 
- 
Drillbitpublic Drillbit(DrillConfig config, CaseInsensitiveMap<OptionDefinition> definitions, RemoteServiceSet serviceSet) throws Exception - Throws:
- Exception
 
- 
Drillbitpublic Drillbit(DrillConfig config, RemoteServiceSet serviceSet, ScanResult classpathScan) throws Exception - Throws:
- Exception
 
- 
Drillbitpublic Drillbit(DrillConfig config, CaseInsensitiveMap<OptionDefinition> definitions, RemoteServiceSet serviceSet, ScanResult classpathScan) throws Exception - Throws:
- Exception
 
 
- 
- 
Method Details- 
setQuiescentModepublic void setQuiescentMode(boolean quiescentMode) 
- 
setForcefulShutdownpublic void setForcefulShutdown(boolean forcefulShutdown) 
- 
getRegistrationHandle
- 
getUserPortpublic int getUserPort()
- 
getWebServerPortpublic int getWebServerPort()
- 
getManager
- 
getWebServer
- 
run- Throws:
- Exception
 
- 
shutdownpublic void shutdown()
- 
closepublic 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 interface- AutoCloseable
 
- 
getContext
- 
getGracefulShutdownThreadpublic org.apache.drill.exec.server.Drillbit.GracefulShutdownThread getGracefulShutdownThread()
- 
main- Throws:
- DrillbitStartupException
 
- 
start- Throws:
- DrillbitStartupException
 
- 
start- Throws:
- DrillbitStartupException
 
- 
startpublic static Drillbit start(DrillConfig config, RemoteServiceSet remoteServiceSet) throws DrillbitStartupException - Throws:
- DrillbitStartupException
 
- 
startpublic static Drillbit start(DrillConfig config, CaseInsensitiveMap<OptionDefinition> validators, RemoteServiceSet remoteServiceSet) throws DrillbitStartupException - Throws:
- DrillbitStartupException
 
 
-