Package org.pentaho.di.www
Class WebServer
- java.lang.Object
-
- org.pentaho.di.www.WebServer
-
public class WebServer extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
PORT
static String
SERVICE_NAME
-
Constructor Summary
Constructors Constructor Description WebServer(org.pentaho.di.core.logging.LogChannelInterface log, TransformationMap transformationMap, JobMap jobMap, SocketRepository socketRepository, List<SlaveServerDetection> slaveServers, String hostname, int port)
WebServer(org.pentaho.di.core.logging.LogChannelInterface log, TransformationMap transformationMap, JobMap jobMap, SocketRepository socketRepository, List<SlaveServerDetection> detections, String hostname, int port, boolean join)
WebServer(org.pentaho.di.core.logging.LogChannelInterface log, TransformationMap transformationMap, JobMap jobMap, SocketRepository socketRepository, List<SlaveServerDetection> detections, String hostname, int port, boolean join, String passwordFile)
WebServer(org.pentaho.di.core.logging.LogChannelInterface log, TransformationMap transformationMap, JobMap jobMap, SocketRepository socketRepository, List<SlaveServerDetection> detections, String hostname, int port, boolean join, String passwordFile, SslConfiguration sslConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
defaultDetectionTimer()
String
getContextPath(CartePluginInterface servlet)
List<SlaveServerDetection>
getDetections()
String
getHostname()
JobMap
getJobMap()
org.pentaho.di.core.logging.LogChannelInterface
getLog()
String
getPasswordFile()
int
getPort()
org.eclipse.jetty.server.Server
getServer()
Timer
getSlaveMonitoringTimer()
SocketRepository
getSocketRepository()
TransformationMap
getTransformationMap()
void
join()
void
setDetections(List<SlaveServerDetection> detections)
void
setHostname(String hostname)
void
setJobMap(JobMap jobMap)
void
setLog(org.pentaho.di.core.logging.LogChannelInterface log)
void
setPasswordFile(String passwordFile)
void
setPort(int port)
void
setServer(org.eclipse.jetty.server.Server server)
void
setSlaveMonitoringTimer(Timer slaveMonitoringTimer)
void
setSocketRepository(SocketRepository socketRepository)
void
setTransformationMap(TransformationMap transformationMap)
void
setWebServerShutdownHandler(IWebServerShutdownHandler webServerShutdownHandler)
Can be used to override the default shutdown behavior of performing a System.exitvoid
startServer()
void
stopServer()
-
-
-
Field Detail
-
SERVICE_NAME
public static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
PORT
public static final int PORT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebServer
public WebServer(org.pentaho.di.core.logging.LogChannelInterface log, TransformationMap transformationMap, JobMap jobMap, SocketRepository socketRepository, List<SlaveServerDetection> detections, String hostname, int port, boolean join, String passwordFile) throws Exception
- Throws:
Exception
-
WebServer
public WebServer(org.pentaho.di.core.logging.LogChannelInterface log, TransformationMap transformationMap, JobMap jobMap, SocketRepository socketRepository, List<SlaveServerDetection> detections, String hostname, int port, boolean join, String passwordFile, SslConfiguration sslConfig) throws Exception
- Throws:
Exception
-
WebServer
public WebServer(org.pentaho.di.core.logging.LogChannelInterface log, TransformationMap transformationMap, JobMap jobMap, SocketRepository socketRepository, List<SlaveServerDetection> slaveServers, String hostname, int port) throws Exception
- Throws:
Exception
-
WebServer
public WebServer(org.pentaho.di.core.logging.LogChannelInterface log, TransformationMap transformationMap, JobMap jobMap, SocketRepository socketRepository, List<SlaveServerDetection> detections, String hostname, int port, boolean join) throws Exception
- Throws:
Exception
-
-
Method Detail
-
getServer
public org.eclipse.jetty.server.Server getServer()
-
getContextPath
public String getContextPath(CartePluginInterface servlet)
-
join
public void join() throws InterruptedException
- Throws:
InterruptedException
-
stopServer
public void stopServer()
-
getHostname
public String getHostname()
- Returns:
- the hostname
-
setHostname
public void setHostname(String hostname)
- Parameters:
hostname
- the hostname to set
-
getDetections
public List<SlaveServerDetection> getDetections()
- Returns:
- the slave server detections
-
getSocketRepository
public SocketRepository getSocketRepository()
- Returns:
- the socketRepository
-
setSocketRepository
public void setSocketRepository(SocketRepository socketRepository)
- Parameters:
socketRepository
- the socketRepository to set
-
getPasswordFile
public String getPasswordFile()
-
setPasswordFile
public void setPasswordFile(String passwordFile)
-
getLog
public org.pentaho.di.core.logging.LogChannelInterface getLog()
-
setLog
public void setLog(org.pentaho.di.core.logging.LogChannelInterface log)
-
getTransformationMap
public TransformationMap getTransformationMap()
-
setTransformationMap
public void setTransformationMap(TransformationMap transformationMap)
-
getJobMap
public JobMap getJobMap()
-
setJobMap
public void setJobMap(JobMap jobMap)
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
-
getSlaveMonitoringTimer
public Timer getSlaveMonitoringTimer()
-
setSlaveMonitoringTimer
public void setSlaveMonitoringTimer(Timer slaveMonitoringTimer)
-
setServer
public void setServer(org.eclipse.jetty.server.Server server)
-
setDetections
public void setDetections(List<SlaveServerDetection> detections)
-
setWebServerShutdownHandler
public void setWebServerShutdownHandler(IWebServerShutdownHandler webServerShutdownHandler)
Can be used to override the default shutdown behavior of performing a System.exit- Parameters:
webServerShutdownHandler
-
-
defaultDetectionTimer
public int defaultDetectionTimer()
-
-