com.caucho.server.cluster
Class ServletContainerConfig

java.lang.Object
  extended by com.caucho.server.cluster.ServletContainerConfig
All Implemented Interfaces:
SchemaBean, EnvironmentBean

@Configurable
public class ServletContainerConfig
extends java.lang.Object
implements EnvironmentBean, SchemaBean

Configuration for the and tags.


Nested Class Summary
 class ServletContainerConfig.ClusterVar
          EL variables
static class ServletContainerConfig.SelectManagerCompat
           
 class ServletContainerConfig.ServerVar
           
 
Constructor Summary
ServletContainerConfig(Server servletContainer)
          Creates a new servlet server.
 
Method Summary
 void add(DispatchRule rewrite)
           
 void addEarDefault(EarConfig earConfig)
          Adds an EarDefault
 void addErrorPage(ErrorPage errorPage)
          Adds an error page
 void addHost(HostConfig host)
          Adds the host.
 void addHostDefault(HostConfig hostConfig)
          Adds a HostDefault.
 void addHostDeploy(HostExpandDeployGenerator deploy)
          Adds a HostDeploy.
 void addJavaExe(java.lang.String args)
          Arguments on boot
 void addJvmArg(java.lang.String args)
          Arguments on boot
 void addJvmArgLine(java.lang.String args)
          Arguments on boot
 void addJvmClasspath(java.lang.String args)
          Arguments on boot
 void addLoadBalanceWeight(ConfigProgram program)
           
 void addSelectManager(ServletContainerConfig.SelectManagerCompat selectManager)
           
 void addWatchdogArg(java.lang.String args)
          Arguments on boot
 void addWatchdogJvmArg(java.lang.String args)
          Arguments on boot
 void addWatchdogLog(ConfigProgram args)
          Arguments on boot
 void addWatchdogPassword(java.lang.String args)
          Arguments on boot
 void addWatchdogPort(int port)
          Arguments on boot
 void addWebAppDefault(WebAppConfig webAppConfig)
          Adds a WebAppDefault.
 AbstractProxyCache createCache()
          backward compatibility for proxy cache
 HostExpandDeployGenerator createHostDeploy()
          Adds a HostDeploy.
 java.lang.Object createJdbcStore()
           
 Management createManagement()
           
 PersistentStoreConfig createPersistentStore()
          Creates a persistent store instance.
 java.lang.Object createPing()
          Creates the ping.
 AbstractProxyCache createProxyCache()
          Creates the proxy cache.
 RewriteDispatch createRewriteDispatch()
          Adds rewrite-dispatch.
 EnvironmentClassLoader getClassLoader()
          Returns the classLoader
 long getMemoryFreeMin()
          Sets the minimum free memory after a GC
 long getPermGenFreeMin()
          Sets the minimum free memory after a GC
 PersistentStoreConfig getPersistentStoreConfig()
          Creates a persistent store instance.
 ResinSystem getResinSystem()
           
 java.lang.String getSchema()
          Returns the relax schema.
 void init()
          Initialization.
 void setAccessLog(AccessLog accessLog)
          Sets the access log.
 void setAlternateSessionUrlPrefix(java.lang.String urlPrefix)
          Sets the alternate session url prefix.
 void setConnectionErrorPage(java.lang.String errorPage)
          Sets the connection error page.
 void setDevelopmentModeErrorPage(boolean isEnable)
          Development mode error pages.
 void setDynamicServerEnable(boolean isEnable)
           
 void setIgnoreClientDisconnect(boolean isIgnore)
           
 void setInvocationCacheSize(int count)
           
 void setLoadBalanceWarmupTime(ConfigProgram program)
           
 void setMaxUriLength(int max)
          Sets the url-length-max
 void setMemoryFreeMin(Bytes min)
          Sets the minimum free memory after a GC
 void setPermGenFreeMin(Bytes min)
          Sets the minimum free memory after a GC
 void setRedeployMode(java.lang.String redeployMode)
          Sets the redeploy mode
 void setRootDir(Path path)
          Sets the root directory.
 void setRootDirectory(Path path)
          Sets the root directory.
 void setServerHeader(java.lang.String serverHeader)
          Sets the server header.
 void setSessionCookie(java.lang.String sessionCookie)
          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 setSSLSessionCookie(java.lang.String cookie)
          Sets the ssl session cookie
 void setStage(java.lang.String stage)
          Sets the stage id
 void setSystemClassLoader(java.lang.String loader)
          The Resin system classloader
 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 setThreadIdleTimeout(Period timeout)
           
 void setThreadMax(int max)
          Sets the maximum thread-based keepalive
 void setUrlCharacterEncoding(java.lang.String encoding)
          Sets URL encoding.
 void setUrlLengthMax(int max)
          Sets the url-length-max
 void startPersistentStore()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletContainerConfig

public ServletContainerConfig(Server servletContainer)
Creates a new servlet server.

Method Detail

getResinSystem

public ResinSystem getResinSystem()

getClassLoader

public EnvironmentClassLoader getClassLoader()
Returns the classLoader

Specified by:
getClassLoader in interface EnvironmentBean

getSchema

public java.lang.String getSchema()
Returns the relax schema.

Specified by:
getSchema in interface SchemaBean

setDevelopmentModeErrorPage

@Configurable
public void setDevelopmentModeErrorPage(boolean isEnable)
Development mode error pages.


createPersistentStore

@Configurable
public PersistentStoreConfig createPersistentStore()
Creates a persistent store instance.


getPersistentStoreConfig

public PersistentStoreConfig getPersistentStoreConfig()
Creates a persistent store instance.


startPersistentStore

public void startPersistentStore()

createJdbcStore

@Configurable
public java.lang.Object createJdbcStore()
                                 throws ConfigException
Throws:
ConfigException

addJavaExe

@Configurable
public void addJavaExe(java.lang.String args)
Arguments on boot


addJvmArg

@Configurable
public void addJvmArg(java.lang.String args)
Arguments on boot


addJvmArgLine

@Configurable
public void addJvmArgLine(java.lang.String args)
Arguments on boot


addJvmClasspath

@Configurable
public void addJvmClasspath(java.lang.String args)
Arguments on boot


setStage

@Configurable
public void setStage(java.lang.String stage)
Sets the stage id


setSystemClassLoader

@Configurable
public void setSystemClassLoader(java.lang.String loader)
The Resin system classloader


addWatchdogArg

@Configurable
public void addWatchdogArg(java.lang.String args)
Arguments on boot


addWatchdogJvmArg

@Configurable
public void addWatchdogJvmArg(java.lang.String args)
Arguments on boot


addWatchdogLog

@Configurable
public void addWatchdogLog(ConfigProgram args)
Arguments on boot


addWatchdogPassword

@Configurable
public void addWatchdogPassword(java.lang.String args)
Arguments on boot


addWatchdogPort

@Configurable
public void addWatchdogPort(int port)
Arguments on boot


setDynamicServerEnable

@Configurable
public void setDynamicServerEnable(boolean isEnable)

setMemoryFreeMin

@Configurable
public void setMemoryFreeMin(Bytes min)
Sets the minimum free memory after a GC


getMemoryFreeMin

public long getMemoryFreeMin()
Sets the minimum free memory after a GC


setPermGenFreeMin

@Configurable
public void setPermGenFreeMin(Bytes min)
Sets the minimum free memory after a GC


getPermGenFreeMin

public long getPermGenFreeMin()
Sets the minimum free memory after a GC


createManagement

@Configurable
public Management createManagement()

setRedeployMode

@Configurable
public void setRedeployMode(java.lang.String redeployMode)
Sets the redeploy mode


setShutdownWaitMax

@Configurable
public void setShutdownWaitMax(Period waitTime)
Sets the max wait time for shutdown.


setInvocationCacheSize

@Configurable
public void setInvocationCacheSize(int count)

setThreadMax

@Configurable
public void setThreadMax(int max)
Sets the maximum thread-based keepalive


setThreadExecutorTaskMax

@Configurable
public void setThreadExecutorTaskMax(int max)
Sets the maximum executor (background) thread.


setThreadIdleMin

@Configurable
public void setThreadIdleMin(int min)
Sets the minimum number of idle threads in the thread pool.


setThreadIdleMax

@Configurable
public void setThreadIdleMax(int max)
Sets the maximum number of idle threads in the thread pool.


setThreadIdleTimeout

@Configurable
public void setThreadIdleTimeout(Period timeout)

setConnectionErrorPage

@Configurable
public void setConnectionErrorPage(java.lang.String errorPage)
Sets the connection error page.


setRootDirectory

@Configurable
public void setRootDirectory(Path path)
Sets the root directory.


setRootDir

@Configurable
public void setRootDir(Path path)
Sets the root directory.


setServerHeader

@Configurable
public void setServerHeader(java.lang.String serverHeader)
Sets the server header.


setUrlLengthMax

@Configurable
public void setUrlLengthMax(int max)
Sets the url-length-max


setMaxUriLength

@Configurable
public void setMaxUriLength(int max)
Sets the url-length-max


setIgnoreClientDisconnect

@Configurable
public void setIgnoreClientDisconnect(boolean isIgnore)

addWebAppDefault

@Configurable
public void addWebAppDefault(WebAppConfig webAppConfig)
Adds a WebAppDefault.


addEarDefault

@Configurable
public void addEarDefault(EarConfig earConfig)
Adds an EarDefault


addHostDefault

@Configurable
public void addHostDefault(HostConfig hostConfig)
Adds a HostDefault.


createHostDeploy

@Configurable
public HostExpandDeployGenerator createHostDeploy()
Adds a HostDeploy.


addHostDeploy

@Configurable
public void addHostDeploy(HostExpandDeployGenerator deploy)
Adds a HostDeploy.


addHost

@Configurable
public void addHost(HostConfig host)
Adds the host.


createRewriteDispatch

@Configurable
public RewriteDispatch createRewriteDispatch()
Adds rewrite-dispatch.


add

@Configurable
public void add(DispatchRule rewrite)

createProxyCache

@Configurable
public AbstractProxyCache createProxyCache()
                                    throws ConfigException
Creates the proxy cache.

Throws:
ConfigException

createCache

@Configurable
public AbstractProxyCache createCache()
                               throws ConfigException
backward compatibility for proxy cache

Throws:
ConfigException

setAccessLog

@Configurable
public void setAccessLog(AccessLog accessLog)
Sets the access log.


setSessionCookie

@Configurable
public void setSessionCookie(java.lang.String sessionCookie)
Sets the session cookie


setSSLSessionCookie

@Configurable
public void setSSLSessionCookie(java.lang.String cookie)
Sets the ssl session cookie


setSessionUrlPrefix

@Configurable
public void setSessionUrlPrefix(java.lang.String urlPrefix)
Sets the session url prefix.


setAlternateSessionUrlPrefix

@Configurable
public void setAlternateSessionUrlPrefix(java.lang.String urlPrefix)
                                  throws ConfigException
Sets the alternate session url prefix.

Throws:
ConfigException

setUrlCharacterEncoding

@Configurable
public void setUrlCharacterEncoding(java.lang.String encoding)
                             throws ConfigException
Sets URL encoding.

Throws:
ConfigException

createPing

public java.lang.Object createPing()
                            throws ConfigException
Creates the ping.

Throws:
ConfigException

addSelectManager

public void addSelectManager(ServletContainerConfig.SelectManagerCompat selectManager)

addErrorPage

public void addErrorPage(ErrorPage errorPage)
Adds an error page


addLoadBalanceWeight

public void addLoadBalanceWeight(ConfigProgram program)

setLoadBalanceWarmupTime

public void setLoadBalanceWarmupTime(ConfigProgram program)

init

@PostConstruct
public void init()
Initialization.