com.caucho.server.resin
Class ResinConfig

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

public class ResinConfig
extends java.lang.Object
implements EnvironmentBean

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


Method Summary
 void addBoot(ContainerProgram program)
          Ignore the boot configuration
 void addLog(LogConfig log)
          Overrides standard configuration to change to system-class-loader.
 void addLogger(LoggerConfig logger)
          Overrides standard configuration to change to system-class-loader.
 void addLogHandler(LogHandlerConfig logHandler)
          Overrides standard configuration to change to system-class-loader.
 void addSecurityProvider(java.lang.Class<?> providerClass)
          Adds a new security provider
 JspPropertyGroup createJsp()
          Configures JSP (backwards compatibility).
 LogConfig createLog()
           
 LoggerConfig createLogger()
           
 LogHandlerConfig createLogHandler()
          Overrides standard configuration to change to system-class-loader.
 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 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 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)
          Sets the resin system key
 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 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

setResinSystemAuthKey

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


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


setJoinCluster

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

setHomeCluster

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

createLogger

@Configurable
public LoggerConfig createLogger()

addLogger

@Configurable
public void addLogger(LoggerConfig logger)
Overrides standard configuration to change to system-class-loader.


createLog

@Configurable
public LogConfig createLog()

addLog

@Configurable
public void addLog(LogConfig log)
            throws java.io.IOException
Overrides standard configuration to change to system-class-loader.

Throws:
java.io.IOException

createLogHandler

@Configurable
public LogHandlerConfig createLogHandler()
Overrides standard configuration to change to system-class-loader.


addLogHandler

@Configurable
public void addLogHandler(LogHandlerConfig logHandler)
Overrides standard configuration to change to system-class-loader.


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