com.caucho.server.resin
Class ResinConfig

java.lang.Object
  extended by com.caucho.server.resin.AbstractResinConfig
      extended by com.caucho.server.resin.ResinConfig
All Implemented Interfaces:
EnvironmentBean

public class ResinConfig
extends AbstractResinConfig
implements EnvironmentBean

The ResinConfig class represents configuration for the top-level system.


Method Summary
 void addBoot(ContainerProgram program)
          Ignore the boot configuration
 void addSecurityProvider(java.lang.Class<?> providerClass)
          Adds a new security provider
 JspPropertyGroup createJsp()
          Configures JSP (backwards compatibility).
 Management createManagement()
          Deprecated. 
 java.lang.Object createModuleRepository()
           
 Management createResinManagement()
          Deprecated. 
 com.caucho.server.resin.ResinConfig.SecurityManagerConfig createSecurityManager()
           
 ThreadPoolConfig createThreadPool()
          Configures the thread pool
 TransactionManager createTransactionManager()
          Deprecated. 
 java.lang.ClassLoader getClassLoader()
          Returns the classLoader
 long getMinFreeMemory()
          Gets the minimum free memory allowed.
 TempFileManager getTempFileManager()
           
 void setAdminPath(Path path)
          Deprecated. 
 void setClusterSystemKey(java.lang.String key)
          Sets the resin system key
 void setElasticDns(boolean isElasticServer)
           
 void setElasticServer(boolean isElasticServer)
           
 void setEnvironmentSystemProperties(boolean isEnable)
          Set true if the server should enable environment-based system properties.
 void setGlobalSystemProperties(boolean isGlobal)
          Set true if system properties are global.
 void setGroupName(java.lang.String groupName)
          Sets the group name for setuid.
 void setHomeCluster(java.lang.String homeCluster)
           
 void setHomeServer(java.lang.String homeServer)
           
 void setJoinCluster(java.lang.String joinCluster)
           
 void setMinFreeMemory(Bytes minFreeMemory)
          Sets the minimum free memory allowed.
 void setResinDataDirectory(Path path)
          Deprecated. 
 void setResinSystemAuthKey(java.lang.String key)
          Obsolete version of ClusterSystemKey
 void setRootDirectory(Path root)
           
 void setShutdownWaitMax(Period shutdownWaitMax)
          Sets the shutdown time
 void setUserName(java.lang.String userName)
          Sets the user name for setuid.
 void setWatchdogManager(ConfigProgram program)
           
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.server.resin.AbstractResinConfig
addLog, addLogger, addLogHandler, createLog, createLogger, createLogHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getClassLoader

public java.lang.ClassLoader getClassLoader()
Returns the classLoader

Specified by:
getClassLoader in interface EnvironmentBean

setClusterSystemKey

@Configurable
public void setClusterSystemKey(java.lang.String key)
Sets the resin system key


setResinSystemAuthKey

@Configurable
public void setResinSystemAuthKey(java.lang.String key)
Obsolete version of ClusterSystemKey


setRootDirectory

@Configurable
public void setRootDirectory(Path root)

setEnvironmentSystemProperties

@Configurable
public void setEnvironmentSystemProperties(boolean isEnable)
Set true if the server should enable environment-based system properties.


createThreadPool

@Configurable
public ThreadPoolConfig createThreadPool()
                                  throws java.lang.Exception
Configures the thread pool

Throws:
java.lang.Exception

setUserName

@Configurable
public void setUserName(java.lang.String userName)
Sets the user name for setuid.


setGroupName

@Configurable
public void setGroupName(java.lang.String groupName)
Sets the group name for setuid.


setMinFreeMemory

@Configurable
public void setMinFreeMemory(Bytes minFreeMemory)
Sets the minimum free memory allowed.


getMinFreeMemory

public long getMinFreeMemory()
Gets the minimum free memory allowed.


setShutdownWaitMax

@Configurable
public void setShutdownWaitMax(Period shutdownWaitMax)
Sets the shutdown time


setElasticServer

@Configurable
public void setElasticServer(boolean isElasticServer)

setElasticDns

@Configurable
public void setElasticDns(boolean isElasticServer)

setJoinCluster

@Configurable
public void setJoinCluster(java.lang.String joinCluster)

setHomeCluster

@Configurable
public void setHomeCluster(java.lang.String homeCluster)

setHomeServer

@Configurable
public void setHomeServer(java.lang.String homeServer)

setGlobalSystemProperties

@Configurable
public void setGlobalSystemProperties(boolean isGlobal)
Set true if system properties are global.


createSecurityManager

@Configurable
public com.caucho.server.resin.ResinConfig.SecurityManagerConfig createSecurityManager()

setWatchdogManager

@Configurable
public void setWatchdogManager(ConfigProgram program)

createTransactionManager

@Deprecated
public TransactionManager createTransactionManager()
                                            throws ConfigException
Deprecated. 

Configures the TM.

Throws:
ConfigException

createModuleRepository

public java.lang.Object createModuleRepository()

getTempFileManager

public TempFileManager getTempFileManager()

addSecurityProvider

public void addSecurityProvider(java.lang.Class<?> providerClass)
                         throws java.lang.Exception
Adds a new security provider

Throws:
java.lang.Exception

createJsp

public JspPropertyGroup createJsp()
Configures JSP (backwards compatibility).


addBoot

public void addBoot(ContainerProgram program)
             throws java.lang.Exception
Ignore the boot configuration

Throws:
java.lang.Exception

setAdminPath

@Configurable
@Deprecated
public void setAdminPath(Path path)
Deprecated. 

Sets the admin directory


setResinDataDirectory

@Configurable
@Deprecated
public void setResinDataDirectory(Path path)
Deprecated. 

Sets the admin directory


createManagement

@Deprecated
public Management createManagement()
Deprecated. 


createResinManagement

@Deprecated
public Management createResinManagement()
Deprecated. 


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object