|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.deployment.SubDeployerSupport (src)
org.jboss.web.AbstractWebContainer (src)
org.jboss.web.tomcat.tc5.Tomcat5
An implementation of the AbstractWebContainer for the Jakarta Tomcat5 servlet container. It has no code dependency on tomcat - only the new JMX model is used.
Tomcat5 is organized as a set of mbeans - just like jboss.
AbstractWebContainer
(src) Nested Class Summary |
Nested classes inherited from class org.jboss.web.AbstractWebContainer (src) |
AbstractWebContainer.WebDescriptorParser (src) |
Nested classes inherited from class org.jboss.deployment.SubDeployerSupport (src) |
SubDeployerSupport.ClassConfiguration (src) |
Field Summary | |
static java.lang.String |
DEFAULT_CACHE_NAME
Default value for property cacheName . |
protected java.lang.String |
managerClass
The fully qualified name of the class that will be used for session management if distributable is set to true. |
static java.lang.String |
NAME
|
Fields inherited from class org.jboss.web.AbstractWebContainer (src) |
acceptNonWarDirs, defaultSecurityDomain, DEPLOYER, deploymentMap, ERROR, java2ClassLoadingCompliance, lenientEjbLink, unpackWars, WEB_APP, WEB_MODULE |
Fields inherited from class org.jboss.deployment.SubDeployerSupport (src) |
CONFIGURATION, mainDeployer, nativePrefix, nativeSuffix, relativeOrder, suffixes, tempDeployDir |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.web.tomcat.tc5.Tomcat5MBean (src) |
TOMCAT_CONNECTORS_STARTED |
Fields inherited from interface org.jboss.deployment.SubDeployer (src) |
CREATE_NOTIFICATION, DESTROY_NOTIFICATION, INIT_NOTIFICATION, RELATIVE_ORDER_100, RELATIVE_ORDER_200, RELATIVE_ORDER_300, RELATIVE_ORDER_400, RELATIVE_ORDER_500, RELATIVE_ORDER_600, RELATIVE_ORDER_700, RELATIVE_ORDER_800, RELATIVE_ORDER_900, START_NOTIFICATION, STOP_NOTIFICATION |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
Tomcat5()
|
Method Summary | |
java.lang.String |
getCacheName()
Gets the JMX object name of a shared TreeCache to be used for clustered single-sign-on. |
java.lang.String |
getConfigFile()
Get the name of the external tomcat server configuration file. |
java.lang.String |
getContextMBeanCode()
|
AbstractWebDeployer (src) |
getDeployer(DeploymentInfo (src) di)
|
java.lang.String |
getDomain()
|
java.lang.String[] |
getFilteredPackages()
|
java.lang.String |
getManagerClass()
|
java.lang.String |
getName()
Use the short class name as the default for the service name. |
java.lang.String |
getSessionIdAlphabet()
The SessionIdAlphabet is the set of characters used to create a session Id |
int |
getSnapshotInterval()
Get the snapshot interval |
java.lang.String |
getSnapshotMode()
Get the snapshot mode |
java.lang.String |
getSubjectAttributeName()
Get the request attribute name under which the JAAS Subject is store |
boolean |
getUseJBossWebLoader()
Get the JBoss UCL use flag |
void |
handleNotification(Notification (src) msg,
java.lang.Object handback)
Callback method from the broadcaster MBean this listener implementation is registered to. |
boolean |
isAllowSelfPrivilegedWebApps()
Get whether web-apps are able to control the privileged flag |
boolean |
isUseJK()
Get the clustering code failover behaviour whether MOD_JK(2) is used or not. |
boolean |
isUseLocalCache()
Get the clustering code cache behaviour |
void |
setAllowSelfPrivilegedWebApps(boolean allowSelfPrivilegedWebApps)
Set whether web-apps are able to control the privileged flag |
void |
setCacheName(java.lang.String cacheName)
Gets the JMX object name of a shared TreeCache to be used for clustered single-sign-on. |
void |
setConfigFile(java.lang.String configFile)
Set the name of the external tomcat server configuration file. |
void |
setContextMBeanCode(java.lang.String className)
|
void |
setDomain(java.lang.String catalinaDomain)
The most important atteribute - defines the managed domain. |
void |
setFilteredPackages(java.lang.String[] pkgs)
|
void |
setManagerClass(java.lang.String managerClass)
|
void |
setSecurityManagerService(JaasSecurityManagerServiceMBean (src) mgr)
Set the SecurityManagerService binding. |
void |
setSessionIdAlphabet(java.lang.String sessionIdAlphabet)
The SessionIdAlphabet is the set of characters used to create a session Id |
void |
setSnapshotInterval(int interval)
Set the snapshot interval in milliseconds for snapshot mode = interval |
void |
setSnapshotMode(java.lang.String mode)
Set the snapshot mode. |
void |
setSubjectAttributeName(java.lang.String name)
Set the request attribute name under which the JAAS Subject will be stored when running with a security mgr that supports JAAS. |
void |
setUseJBossWebLoader(boolean flag)
Set the JBoss UCL use flag |
void |
setUseJK(boolean useJK)
Set the clustering code failover behaviour whether MOD_JK(2) is used or not. |
void |
setUseLocalCache(boolean useLocalCache)
Set the clustering code cache behaviour |
void |
startConnectors()
Start all connectors of the Domain + ":type=Service,serviceName=jboss.web" service. |
void |
startService()
Performs SubDeployer registration. |
void |
stopConnectors()
Stop all connectors of the Domain + ":type=Service,serviceName=jboss.web" service. |
void |
stopService()
Performs SubDeployer deregistration. |
Methods inherited from class org.jboss.deployment.SubDeployerSupport (src) |
addDeployableFiles, addDeployableJar, createService, deployUrl, destroyService, emitNotification, getRelativeOrder, getSuffixes, isDeployable, setRelativeOrder, setSuffixes |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, destroy, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.deployment.SubDeployer (src) |
getServiceName |
Field Detail |
public static final java.lang.String NAME
public static final java.lang.String DEFAULT_CACHE_NAME
cacheName
. This name will be used by JBossCache exclusively
for Tomcat clustering, e.g., session and sso replication.
protected java.lang.String managerClass
Constructor Detail |
public Tomcat5()
Method Detail |
public java.lang.String getName()
ServiceMBeanSupport (src)
getName
in interface ServiceMBean (src)
getName
in class ServiceMBeanSupport (src)
public java.lang.String getManagerClass()
getManagerClass
in interface Tomcat5MBean (src)
public void setManagerClass(java.lang.String managerClass)
setManagerClass
in interface Tomcat5MBean (src)
public java.lang.String getDomain()
getDomain
in interface Tomcat5MBean (src)
public void setDomain(java.lang.String catalinaDomain)
setDomain
in interface Tomcat5MBean (src)
catalinaDomain
- the domain portion of the JMX ObjectNamespublic void setContextMBeanCode(java.lang.String className)
setContextMBeanCode
in interface Tomcat5MBean (src)
public java.lang.String getContextMBeanCode()
getContextMBeanCode
in interface Tomcat5MBean (src)
public void setSnapshotInterval(int interval)
setSnapshotInterval
in interface Tomcat5MBean (src)
public int getSnapshotInterval()
getSnapshotInterval
in interface Tomcat5MBean (src)
public void setSnapshotMode(java.lang.String mode)
setSnapshotMode
in interface Tomcat5MBean (src)
public java.lang.String getSnapshotMode()
getSnapshotMode
in interface Tomcat5MBean (src)
public java.lang.String getCacheName()
getCacheName
in interface Tomcat5MBean (src)
DEFAULT_CACHE_NAME
,
TreeCacheSSOClusterManager
(src) public void setCacheName(java.lang.String cacheName)
setCacheName
in interface Tomcat5MBean (src)
DEFAULT_CACHE_NAME
,
TreeCacheSSOClusterManager
(src) public boolean isUseLocalCache()
Tomcat5MBean (src)
isUseLocalCache
in interface Tomcat5MBean (src)
public void setUseLocalCache(boolean useLocalCache)
Tomcat5MBean (src)
setUseLocalCache
in interface Tomcat5MBean (src)
public boolean isUseJK()
Tomcat5MBean (src)
isUseJK
in interface Tomcat5MBean (src)
public void setUseJK(boolean useJK)
Tomcat5MBean (src)
setUseJK
in interface Tomcat5MBean (src)
public void setSessionIdAlphabet(java.lang.String sessionIdAlphabet)
setSessionIdAlphabet
in interface Tomcat5MBean (src)
public java.lang.String getSessionIdAlphabet()
getSessionIdAlphabet
in interface Tomcat5MBean (src)
public boolean getUseJBossWebLoader()
Tomcat5MBean (src)
getUseJBossWebLoader
in interface Tomcat5MBean (src)
public void setUseJBossWebLoader(boolean flag)
Tomcat5MBean (src)
setUseJBossWebLoader
in interface Tomcat5MBean (src)
public java.lang.String getConfigFile()
Tomcat5MBean (src)
getConfigFile
in interface Tomcat5MBean (src)
public void setConfigFile(java.lang.String configFile)
Tomcat5MBean (src)
setConfigFile
in interface Tomcat5MBean (src)
configFile
- - the config file name, server.xml for examplepublic java.lang.String getSubjectAttributeName()
Tomcat5MBean (src)
getSubjectAttributeName
in interface Tomcat5MBean (src)
getSubjectAttributeName
in class AbstractWebContainer (src)
public void setSubjectAttributeName(java.lang.String name)
Tomcat5MBean (src)
setSubjectAttributeName
in interface Tomcat5MBean (src)
setSubjectAttributeName
in class AbstractWebContainer (src)
public boolean isAllowSelfPrivilegedWebApps()
Tomcat5MBean (src)
isAllowSelfPrivilegedWebApps
in interface Tomcat5MBean (src)
public void setAllowSelfPrivilegedWebApps(boolean allowSelfPrivilegedWebApps)
Tomcat5MBean (src)
setAllowSelfPrivilegedWebApps
in interface Tomcat5MBean (src)
public void setSecurityManagerService(JaasSecurityManagerServiceMBean (src) mgr)
Tomcat5MBean (src)
setSecurityManagerService
in interface Tomcat5MBean (src)
mgr
- the JaasSecurityManagerServiceMBeanpublic java.lang.String[] getFilteredPackages()
getFilteredPackages
in interface Tomcat5MBean (src)
public void setFilteredPackages(java.lang.String[] pkgs)
setFilteredPackages
in interface Tomcat5MBean (src)
pkgs
- public void startService() throws java.lang.Exception
SubDeployerSupport (src)
startService
in class AbstractWebContainer (src)
java.lang.Exception
public void stopService() throws java.lang.Exception
SubDeployerSupport (src)
stopService
in class SubDeployerSupport (src)
java.lang.Exception
public void startConnectors() throws java.lang.Exception
Tomcat5MBean (src)
startConnectors
in interface Tomcat5MBean (src)
java.lang.Exception
public void stopConnectors() throws java.lang.Exception
Tomcat5MBean (src)
stopConnectors
in interface Tomcat5MBean (src)
java.lang.Exception
public void handleNotification(Notification (src) msg, java.lang.Object handback)
NotificationListener (src)
handleNotification
in interface NotificationListener (src)
msg
- the notification objecthandback
- the handback object given to the broadcaster
upon listener registrationpublic AbstractWebDeployer (src) getDeployer(DeploymentInfo (src) di) throws java.lang.Exception
getDeployer
in class AbstractWebContainer (src)
java.lang.Exception
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |