public class WebServer extends Object implements AutoCloseable
Constructor and Description |
---|
WebServer(BootStrapContext context,
WorkManager workManager,
Drillbit drillbit)
Create Jetty based web server.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
File |
getOrCreateTmpJavaScriptDir()
Creates if not exists, and returns File for temporary Javascript directory
|
int |
getPort() |
static boolean |
isOnlyImpersonationEnabled(DrillConfig config)
Checks if only impersonation is enabled.
|
boolean |
isRunning() |
void |
start()
Start the web server including setup.
|
public WebServer(BootStrapContext context, WorkManager workManager, Drillbit drillbit)
context
- Bootstrap context.workManager
- WorkManager instance.drillbit
- Drillbit instance.public static boolean isOnlyImpersonationEnabled(DrillConfig config)
config
- Drill configurationpublic int getPort()
public boolean isRunning()
public void close() throws Exception
close
in interface AutoCloseable
Exception
public File getOrCreateTmpJavaScriptDir()
Copyright © 1970 The Apache Software Foundation. All rights reserved.