|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.resin.Resin
public class Resin
The Resin class represents the top-level container for Resin. It exactly matches the <resin> tag in the resin.xml
| Nested Class Summary | |
|---|---|
class |
Resin.JavaVar
Java variables |
class |
Resin.Var
EL variables |
| Field Summary | |
|---|---|
protected Management |
_management
|
| Constructor Summary | |
|---|---|
protected |
Resin(java.lang.ClassLoader loader)
Creates a new resin server. |
protected |
Resin(java.lang.ClassLoader loader,
java.lang.String licenseErrorMessage)
Creates a new resin server. |
| Method Summary | |
|---|---|
void |
addBoot(ContainerProgram program)
Ignore the boot configuration |
void |
addCluster(Cluster cluster)
|
void |
addClusterDefault(ContainerProgram program)
|
void |
addDynamicServer(java.lang.String clusterId,
java.lang.String address,
int port)
Sets the server id. |
void |
addSecurityProvider(java.lang.Class providerClass)
Adds a new security provider |
static Resin |
create()
Creates a new Resin instance |
static Resin |
create(java.lang.ClassLoader loader)
Creates a new Resin instance |
Cluster |
createCluster()
|
JspPropertyGroup |
createJsp()
Configures JSP (backwards compatibility). |
Management |
createManagement()
|
ModuleRepository |
createModuleRepository()
|
com.caucho.server.resin.Resin.SecurityManagerConfig |
createSecurityManager()
|
ServerCompatConfig |
createServer()
Creates the compatibility server. |
ThreadPoolConfig |
createThreadPool()
Configures the thread pool |
TransactionManager |
createTransactionManager()
Deprecated. |
void |
destroy()
Closes the server. |
Cluster |
findCluster(java.lang.String id)
|
ClusterServer |
findClusterServer(java.lang.String id)
|
ResinMXBean |
getAdmin()
|
BamBroker |
getAdminBroker()
Returns the admin broker |
Path |
getAdminPath()
Returns the admin directory |
java.lang.ClassLoader |
getClassLoader()
Returns the classLoader |
java.util.ArrayList<Cluster> |
getClusterList()
|
ClusterMXBean[] |
getClusters()
Returns the cluster names. |
static Resin |
getCurrent()
Returns the resin server. |
static java.lang.String |
getCurrentServerId()
|
java.lang.String |
getDisplayServerId()
Returns the server id. |
java.util.Date |
getInitialStartTime()
Returns the initial start time. |
protected java.lang.String |
getLicenseErrorMessage()
|
protected java.lang.String |
getLicenseMessage()
|
LifecycleState |
getLifecycleState()
Returns the current lifecycle state. |
static Resin |
getLocal()
Returns the resin server. |
Management |
getManagement()
Returns the management api. |
Path |
getManagementPath()
Deprecated. |
long |
getMinFreeMemory()
Gets the minimum free memory allowed. |
javax.management.ObjectName |
getObjectName()
|
Path |
getResinConf()
The configuration file used to start the server. |
Path |
getResinHome()
Returns resin.home. |
protected java.lang.String |
getResinName()
|
Path |
getRootDirectory()
Gets the root directory. |
java.lang.String |
getSchema()
Returns the relax schema. |
Server |
getServer()
Returns the active server. |
java.lang.String |
getServerId()
Returns the server id. |
long |
getShutdownWaitMax()
Gets the minimum free memory allowed. |
java.util.Date |
getStartTime()
Returns the start time. |
TempFileManager |
getTempFileManager()
|
ThreadPoolMXBean |
getThreadPoolAdmin()
|
void |
init()
Initialize the server. |
void |
initMain()
Initialize the server, binding to TCP and starting the threads. |
protected Cluster |
instantiateCluster()
|
boolean |
isActive()
Returns true if active. |
boolean |
isClosed()
Returns true if the server is closed. |
boolean |
isClosing()
Returns true if the server is closing. |
boolean |
isDynamicServer()
|
boolean |
isProfessional()
Set true for Resin pro. |
static void |
main(java.lang.String[] argv)
The main start of the web server. |
void |
setConfigFile(java.lang.String configFile)
Sets the config file. |
void |
setEnvironmentClassLoader(EnvironmentClassLoader loader)
Sets the classLoader |
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 |
setMinFreeMemory(Bytes minFreeMemory)
Sets the minimum free memory allowed. |
void |
setResinHome(Path home)
Sets resin.home |
void |
setRootDirectory(Path root)
Sets the root directory. |
void |
setServerId(java.lang.String serverId)
Sets the server id. |
void |
setShutdownWaitMax(Period shutdownWaitMax)
Sets the shutdown time |
void |
setUserName(java.lang.String userName)
Sets the user name for setuid. |
void |
setWatchdogManager(ConfigProgram program)
|
static void |
shutdown()
Shuts the server down. |
void |
start()
Starts the server. |
void |
stop()
Starts the server. |
java.lang.String |
toString()
|
void |
waitForExit()
Thread to wait until Resin should be stopped. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Management _management
| Constructor Detail |
|---|
protected Resin(java.lang.ClassLoader loader)
protected Resin(java.lang.ClassLoader loader,
java.lang.String licenseErrorMessage)
| Method Detail |
|---|
public static Resin create()
public static Resin create(java.lang.ClassLoader loader)
public static Resin getLocal()
public static Resin getCurrent()
public java.lang.ClassLoader getClassLoader()
getClassLoader in interface EnvironmentBeanpublic javax.management.ObjectName getObjectName()
public ResinMXBean getAdmin()
public BamBroker getAdminBroker()
public ThreadPoolMXBean getThreadPoolAdmin()
protected java.lang.String getLicenseMessage()
protected java.lang.String getLicenseErrorMessage()
public void setEnvironmentClassLoader(EnvironmentClassLoader loader)
public java.lang.String getSchema()
getSchema in interface SchemaBeanpublic void setServerId(java.lang.String serverId)
public java.lang.String getServerId()
public static java.lang.String getCurrentServerId()
public void addDynamicServer(java.lang.String clusterId,
java.lang.String address,
int port)
public java.lang.String getDisplayServerId()
public void setConfigFile(java.lang.String configFile)
public void setResinHome(Path home)
public Path getResinHome()
public void setRootDirectory(Path root)
public Path getRootDirectory()
public Path getAdminPath()
public Path getResinConf()
protected java.lang.String getResinName()
public boolean isProfessional()
public ClusterMXBean[] getClusters()
public void addClusterDefault(ContainerProgram program)
public Cluster createCluster()
throws ConfigException
ConfigExceptionprotected Cluster instantiateCluster()
public void addCluster(Cluster cluster)
public java.util.ArrayList<Cluster> getClusterList()
public void setEnvironmentSystemProperties(boolean isEnable)
public ServerCompatConfig createServer()
public ThreadPoolConfig createThreadPool()
throws java.lang.Exception
java.lang.Exceptionpublic void setUserName(java.lang.String userName)
public void setGroupName(java.lang.String groupName)
public void setMinFreeMemory(Bytes minFreeMemory)
public long getMinFreeMemory()
public void setShutdownWaitMax(Period shutdownWaitMax)
public long getShutdownWaitMax()
public void setGlobalSystemProperties(boolean isGlobal)
public com.caucho.server.resin.Resin.SecurityManagerConfig createSecurityManager()
public void setWatchdogManager(ConfigProgram program)
@Deprecated
public TransactionManager createTransactionManager()
throws ConfigException
ConfigExceptionpublic Management createManagement()
public ModuleRepository createModuleRepository()
public TempFileManager getTempFileManager()
@Deprecated public Path getManagementPath()
public void addSecurityProvider(java.lang.Class providerClass)
throws java.lang.Exception
java.lang.Exceptionpublic JspPropertyGroup createJsp()
public void addBoot(ContainerProgram program)
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Date getInitialStartTime()
public java.util.Date getStartTime()
public LifecycleState getLifecycleState()
public void init()
public Server getServer()
public Management getManagement()
public void start()
public void stop()
public boolean isDynamicServer()
public Cluster findCluster(java.lang.String id)
public ClusterServer findClusterServer(java.lang.String id)
public boolean isActive()
public boolean isClosing()
public boolean isClosed()
public void destroy()
public void initMain()
throws java.lang.Throwable
java.lang.Throwablepublic void waitForExit()
public java.lang.String toString()
toString in class java.lang.Objectpublic static void shutdown()
public static void main(java.lang.String[] argv)
-conf resin.xml : alternate configuration file -port port : set the server's portt
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||