- java.lang.Object
-
- com.pervasive.datarush.webapp.WebApplicationServers
-
public final class WebApplicationServers extends Object
Facade for finding and usingWebApplicationServerProvider
's.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WebApplicationServer
createServer(WebApplicationConfig config)
Creates aWebApplicationServer
for the given config.static WebApplicationServer
getRunningServer(int port)
Returns the server that is running on the given port (if one exists).
-
-
-
Method Detail
-
createServer
public static WebApplicationServer createServer(WebApplicationConfig config)
Creates aWebApplicationServer
for the given config.- Parameters:
config
- the config- Returns:
- a
WebApplicationServer
-
getRunningServer
public static WebApplicationServer getRunningServer(int port)
Returns the server that is running on the given port (if one exists). Note that this only provides servers that were launched from this JVM.- Parameters:
port
- the port- Returns:
- the server that is running on the given port.
-
-