|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.dispatch.DispatchServer
com.caucho.server.port.ProtocolDispatchServer
com.caucho.server.cluster.Server
public class Server
| Nested Class Summary | |
|---|---|
static class |
Server.SelectManagerCompat
|
| Constructor Summary | |
|---|---|
Server(ClusterServer clusterServer)
Creates a new servlet server. |
|
| Method Summary | |
|---|---|
void |
addEarDefault(EarConfig config)
Adds an EarDefault |
void |
addErrorPage(ErrorPage errorPage)
Adds an error page |
void |
addHost(HostConfig host)
Adds the host. |
void |
addHostDefault(HostConfig init)
Adds a HostDefault. |
void |
addHostDeploy(HostExpandDeployGenerator deploy)
Adds a HostDeploy. |
void |
addPing(ResourceAdapter ping)
Deprecated. |
void |
addSelectManager(Server.SelectManagerCompat selectManager)
|
void |
addWebAppDefault(WebAppConfig init)
Adds a WebAppDefault. |
void |
bindPorts()
Bind the ports. |
Invocation |
buildInvocation(Invocation invocation)
Sets the invocation |
void |
classLoaderDestroy(DynamicClassLoader loader)
Handles the case where a class loader is dropped. |
void |
classLoaderInit(DynamicClassLoader loader)
Handles the case where a class loader is activated. |
void |
clearCache()
Clears the proxy cache. |
void |
clearCacheByPattern(java.lang.String hostPattern,
java.lang.String uriPattern)
Clears the catch by matching the invocation. |
AbstractCache |
createCache()
Adds the cache. |
HostExpandDeployGenerator |
createHostDeploy()
Adds a HostDeploy. |
Management |
createManagement()
|
ResourceAdapter |
createPing()
Deprecated. |
RewriteDispatch |
createRewriteDispatch()
Adds rewrite-dispatch. |
void |
destroy()
Closes the server. |
int |
getAcceptListenBacklog()
Gets the socket's listen property |
int |
getAcceptThreadMax()
Sets the maximum spare listen. |
int |
getAcceptThreadMin()
Gets the minimum spare listen. |
ServerMXBean |
getAdmin()
Returns the admin. |
java.lang.String |
getAlternateSessionURLPrefix()
Gets the alternate session url prefix. |
java.util.ArrayList<CacheItem> |
getCacheStatistics()
Returns the cache stuff. |
java.lang.ClassLoader |
getClassLoader()
Returns the classLoader |
Cluster |
getCluster()
Returns the cluster. |
java.lang.Throwable |
getConfigException()
Returns the configuration exception |
java.lang.String |
getConnectionErrorPage()
Gets the connection error page. |
long |
getDependencyCheckInterval()
Returns the dependency check interval. |
WebApp |
getErrorWebApp()
Returns the error webApp during startup. |
int |
getFreeKeepaliveSelect()
Returns the number of select keepalives available. |
Host |
getHost(java.lang.String hostName,
int port)
Returns the matching servlet pattern for a URL. |
java.util.Collection<HostController> |
getHostControllers()
Returns the host controllers. |
long |
getKeepaliveConnectionTimeMax()
Sets the keepalive timeout |
int |
getKeepaliveMax()
Returns the thread-based keepalive max. |
int |
getKeepaliveSelectCount()
Returns the select keepalive count. |
long |
getKeepaliveSelectThreadTimeout()
Sets the select-based keepalive timeout |
void |
getKeepaliveSelectThreadTimeout(Period period)
Sets the select-based keepalive timeout |
long |
getKeepaliveTimeout()
Sets the keepalive timeout |
long |
getMemoryFreeMin()
Sets the minimum free memory after a GC |
java.util.Collection<Port> |
getPorts()
Returns the Ports for this server. |
long |
getProxyCacheHitCount()
Returns the proxy cache hit count. |
long |
getProxyCacheMissCount()
Returns the proxy cache miss count. |
Path |
getRootDirectory()
Sets the root directory. |
java.lang.String |
getSchema()
Returns the relax schema. |
java.lang.String |
getServerHeader()
Gets the server header. |
java.lang.String |
getServerId()
Returns the id. |
java.lang.String |
getServletPattern(java.lang.String hostName,
int port,
java.lang.String url)
Returns the matching servlet pattern for a URL. |
java.lang.String |
getSessionCookie()
Gets the session cookie |
java.lang.String |
getSessionURLPrefix()
Gets the session url prefix. |
long |
getShutdownWaitMax()
Gets the max wait time for a shutdown. |
long |
getSocketTimeout()
Gets the read timeout for the request sockets. |
java.lang.String |
getSSLSessionCookie()
Gets the ssl session cookie |
long |
getStartTime()
Returns the time the server started in ms. |
java.lang.String |
getState()
Returns the lifecycle state |
long |
getSuspendTimeMax()
Sets the suspend timeout |
WebApp |
getWebApp(java.lang.String hostName,
int port,
java.lang.String url)
Returns the matching servlet pattern for a URL. |
void |
handleAlarm(Alarm alarm)
Handles the alarm. |
void |
init()
Initialization. |
boolean |
isActive()
Returns true if the server is currently active and accepting requests |
boolean |
isBindPortsAfterStart()
If true, ports are bound at end. |
boolean |
isDeployError()
Return true if idle. |
boolean |
isDestroyed()
Returns true if the server is closed. |
boolean |
isDestroying()
Returns true if the server is closed. |
boolean |
isKeepaliveSelectEnable()
Gets the select-based keepalive timeout |
boolean |
isModified()
Returns true if the server has been modified and needs restarting. |
boolean |
isModifiedNow()
Returns true if the server has been modified and needs restarting. |
boolean |
isSelectManagerEnabled()
Sets true if the select manager should be enabled |
boolean |
isStopped()
Returns true if the server is stopped. |
boolean |
isStopping()
Returns true if the server is stopped. |
void |
setAcceptListenBacklog(int backlog)
Sets the socket's listen property |
void |
setAcceptThreadMax(int maxSpare)
Sets the maximum spare listen. |
void |
setAcceptThreadMin(int minSpare)
Sets the minimum spare listen. |
void |
setAccessLog(AccessLog log)
Sets the access log. |
void |
setAlternateSessionURLPrefix(java.lang.String urlPrefix)
Sets the alternate session url prefix. |
void |
setBindPortsAfterStart(boolean bindAtEnd)
If true, ports are bound at end. |
void |
setConfigException(java.lang.Throwable exn)
Returns the configuration instance. |
void |
setConnectionErrorPage(java.lang.String errorPage)
Sets the connection error page. |
void |
setKeepaliveConnectionTimeMax(Period period)
Sets the keepalive connection timeout |
void |
setKeepaliveMax(int max)
Sets the maximum keepalive |
void |
setKeepaliveSelectEnable(boolean enable)
Sets the select-based keepalive timeout |
void |
setKeepaliveTimeout(Period period)
Sets the keepalive timeout |
void |
setMemoryFreeMin(Bytes min)
Sets the minimum free memory after a GC |
void |
setRootDir(Path path)
Sets the root directory. |
void |
setRootDirectory(Path path)
Sets the root directory. |
void |
setServerHeader(java.lang.String server)
Sets the server header. |
void |
setSessionCookie(java.lang.String cookie)
Sets the session cookie |
void |
setSessionURLPrefix(java.lang.String urlPrefix)
Sets the session url prefix. |
void |
setShutdownWaitMax(Period waitTime)
Sets the max wait time for shutdown. |
void |
setSocketTimeout(Period period)
Sets the default read/write timeout for the request sockets. |
void |
setSSLSessionCookie(java.lang.String cookie)
Sets the ssl session cookie |
void |
setSuspendTimeMax(Period period)
Sets the suspend timeout |
void |
setThreadExecutorTaskMax(int max)
Sets the maximum executor (background) thread. |
void |
setThreadIdleMax(int max)
Sets the maximum number of idle threads in the thread pool. |
void |
setThreadIdleMin(int min)
Sets the minimum number of idle threads in the thread pool. |
void |
setThreadMax(int max)
Sets the maximum thread-based keepalive |
void |
setURLCharacterEncoding(java.lang.String encoding)
Sets URL encoding. |
void |
start()
Start the server. |
void |
startPorts()
Start the ports. |
void |
stop()
Closes the server. |
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.server.port.ProtocolDispatchServer |
|---|
getFreeSelectKeepalive, getSelectManager, initSelectManager, isIgnoreClientDisconnect, setIgnoreClientDisconnect |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Server(ClusterServer clusterServer)
| Method Detail |
|---|
public java.lang.ClassLoader getClassLoader()
getClassLoader in interface EnvironmentBeangetClassLoader in class DispatchServerpublic java.lang.Throwable getConfigException()
public void setConfigException(java.lang.Throwable exn)
public void setAcceptListenBacklog(int backlog)
public int getAcceptListenBacklog()
public void setAcceptThreadMin(int minSpare)
throws ConfigException
ConfigExceptionpublic int getAcceptThreadMin()
public void setAcceptThreadMax(int maxSpare)
throws ConfigException
ConfigExceptionpublic int getAcceptThreadMax()
public void setMemoryFreeMin(Bytes min)
public long getMemoryFreeMin()
public void setKeepaliveMax(int max)
public int getKeepaliveMax()
getKeepaliveMax in class ProtocolDispatchServerpublic void setKeepaliveTimeout(Period period)
public long getKeepaliveTimeout()
public void setKeepaliveConnectionTimeMax(Period period)
public long getKeepaliveConnectionTimeMax()
public void setKeepaliveSelectEnable(boolean enable)
public boolean isKeepaliveSelectEnable()
public void getKeepaliveSelectThreadTimeout(Period period)
public long getKeepaliveSelectThreadTimeout()
public Management createManagement()
public void setShutdownWaitMax(Period waitTime)
public void setSuspendTimeMax(Period period)
public long getSuspendTimeMax()
public long getShutdownWaitMax()
public void setSocketTimeout(Period period)
public long getSocketTimeout()
public void setThreadMax(int max)
public void setThreadExecutorTaskMax(int max)
public void setThreadIdleMin(int min)
public void setThreadIdleMax(int max)
public void setConnectionErrorPage(java.lang.String errorPage)
public java.lang.String getConnectionErrorPage()
public boolean isDeployError()
public java.lang.String getSchema()
getSchema in interface SchemaBeanpublic java.lang.String getServerId()
getServerId in class DispatchServerpublic void setRootDirectory(Path path)
public Path getRootDirectory()
public void setRootDir(Path path)
public void setServerHeader(java.lang.String server)
public java.lang.String getServerHeader()
public void addWebAppDefault(WebAppConfig init)
public void addEarDefault(EarConfig config)
public void addHostDefault(HostConfig init)
public HostExpandDeployGenerator createHostDeploy()
public void addHostDeploy(HostExpandDeployGenerator deploy)
public void addHost(HostConfig host)
throws java.lang.Exception
java.lang.Exceptionpublic Cluster getCluster()
public RewriteDispatch createRewriteDispatch()
public AbstractCache createCache()
throws ConfigException
ConfigExceptionpublic void setAccessLog(AccessLog log)
public long getDependencyCheckInterval()
public void setSessionCookie(java.lang.String cookie)
public java.lang.String getSessionCookie()
public void setSSLSessionCookie(java.lang.String cookie)
public java.lang.String getSSLSessionCookie()
public void setSessionURLPrefix(java.lang.String urlPrefix)
public java.lang.String getSessionURLPrefix()
public void setAlternateSessionURLPrefix(java.lang.String urlPrefix)
throws ConfigException
ConfigExceptionpublic java.lang.String getAlternateSessionURLPrefix()
public void setURLCharacterEncoding(java.lang.String encoding)
throws ConfigException
ConfigException
@Deprecated
public ResourceAdapter createPing()
throws ConfigException
ConfigException
@Deprecated
public void addPing(ResourceAdapter ping)
throws ConfigException
ConfigExceptionpublic boolean isSelectManagerEnabled()
isSelectManagerEnabled in class ProtocolDispatchServerpublic void addSelectManager(Server.SelectManagerCompat selectManager)
public int getFreeKeepaliveSelect()
public void addErrorPage(ErrorPage errorPage)
public long getStartTime()
public java.lang.String getState()
public int getKeepaliveSelectCount()
public java.util.ArrayList<CacheItem> getCacheStatistics()
public Invocation buildInvocation(Invocation invocation)
throws java.lang.Throwable
buildInvocation in class DispatchServerjava.lang.Throwable
public java.lang.String getServletPattern(java.lang.String hostName,
int port,
java.lang.String url)
public ServerMXBean getAdmin()
public WebApp getWebApp(java.lang.String hostName,
int port,
java.lang.String url)
public WebApp getErrorWebApp()
public java.util.Collection<HostController> getHostControllers()
public Host getHost(java.lang.String hostName,
int port)
public void setBindPortsAfterStart(boolean bindAtEnd)
public boolean isBindPortsAfterStart()
public java.util.Collection<Port> getPorts()
Ports for this server.
public void classLoaderInit(DynamicClassLoader loader)
classLoaderInit in interface ClassLoaderListenerpublic void classLoaderDestroy(DynamicClassLoader loader)
classLoaderDestroy in interface ClassLoaderListenerpublic void init()
init in class DispatchServerpublic void start()
public void bindPorts()
throws java.lang.Exception
java.lang.Exception
public void startPorts()
throws java.lang.Exception
java.lang.Exceptionpublic void handleAlarm(Alarm alarm)
handleAlarm in interface AlarmListenerpublic boolean isModified()
isModified in interface DependencyisModified in class DispatchServerpublic boolean isModifiedNow()
public boolean isStopping()
public boolean isStopped()
public boolean isDestroyed()
isDestroyed in class DispatchServerpublic boolean isDestroying()
public boolean isActive()
isActive in class ProtocolDispatchServer
public void clearCacheByPattern(java.lang.String hostPattern,
java.lang.String uriPattern)
public void clearCache()
clearCache in class DispatchServerpublic long getProxyCacheHitCount()
public long getProxyCacheMissCount()
public void stop()
stop in class ProtocolDispatchServerpublic void destroy()
destroy in class DispatchServerpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||