Class WebServer
java.lang.Object
org.apache.drill.exec.server.rest.WebServer
- All Implemented Interfaces:
AutoCloseable
Wrapper class around jetty based web server.
-
Constructor Summary
ConstructorsConstructorDescriptionWebServer(BootStrapContext context, WorkManager workManager, Drillbit drillbit) Create Jetty based web server. -
Method Summary
-
Constructor Details
-
WebServer
Create Jetty based web server.- Parameters:
context- Bootstrap context.workManager- WorkManager instance.drillbit- Drillbit instance.
-
-
Method Details
-
isOnlyImpersonationEnabled
Checks if only impersonation is enabled.- Parameters:
config- Drill configuration- Returns:
- true if impersonation without authentication is enabled, false otherwise
-
start
Start the web server including setup.- Throws:
Exception
-
getPort
public int getPort() -
isRunning
public boolean isRunning() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
getOrCreateTmpJavaScriptDir
Creates if not exists, and returns File for temporary Javascript directory- Returns:
- file handle
-