|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.apache.catalina.startup.EmbeddedManager
Implementation of the Catalina JMX MBean as a wrapper of the Catalina class.
| Field Summary |
| Fields inherited from interface org.apache.catalina.startup.EmbeddedManagerMBean |
NAME, OBJECT_NAME, STARTED, STARTING, states, STOPPED, STOPPING |
| Constructor Summary | |
EmbeddedManager()
|
|
| Method Summary | |
void |
addConnector(Connector connector)
Add a new Connector to the set of defined Connectors. |
void |
addEngine(Engine engine)
Add a new Engine to the set of defined Engines. |
Connector |
createConnector(java.net.InetAddress address,
int port,
boolean secure)
Create, configure, and return a new TCP/IP socket connector based on the specified properties. |
Context |
createContext(java.lang.String path,
java.lang.String docBase)
Create, configure, and return a Context that will process all HTTP requests received from one of the associated Connectors, and directed to the specified context path on the virtual host to which this Context is connected. |
Engine |
createEngine()
Create, configure, and return an Engine that will process all HTTP requests received from one of the associated Connectors, based on the specified properties. |
Host |
createHost(java.lang.String name,
java.lang.String appBase)
Create, configure, and return a Host that will process all HTTP requests received from one of the associated Connectors, and directed to the specified virtual host. |
void |
destroy()
Destroy servlet container (if any is running). |
int |
getDebug()
Return the debugging detail level for this component. |
java.lang.String |
getInfo()
Return descriptive information about this Server implementation and the corresponding version number, in the format <description>/<version>. |
Logger |
getLogger()
Return the Logger for this component. |
java.lang.String |
getName()
Retruns the Catalina component name. |
Realm |
getRealm()
Return the default Realm for our Containers. |
java.lang.String |
getSocketFactory()
Return the secure socket factory class name. |
int |
getState()
Returns the state. |
java.lang.String |
getStateString()
Returns a String representation of the state. |
boolean |
isUseNaming()
Return true if naming is enabled. |
void |
postDeregister()
|
void |
postRegister(java.lang.Boolean registrationDone)
|
void |
preDeregister()
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
|
void |
removeConnector(Connector connector)
Remove the specified Connector from the set of defined Connectors. |
void |
removeContext(Context context)
Remove the specified Context from the set of defined Contexts for its associated Host. |
void |
removeEngine(Engine engine)
Remove the specified Engine from the set of defined Engines, along with all of its related Hosts and Contexts. |
void |
removeHost(Host host)
Remove the specified Host, along with all of its related Contexts, from the set of defined Hosts for its associated Engine. |
void |
setDebug(int debug)
Set the debugging detail level for this component. |
void |
setLogger(Logger logger)
Set the Logger for this component. |
void |
setRealm(Realm realm)
Set the default Realm for our Containers. |
void |
setSocketFactory(java.lang.String socketFactory)
Set the secure socket factory class name. |
void |
setUseNaming(boolean useNaming)
Enables or disables naming support. |
void |
start()
Start the servlet container. |
void |
stop()
Stop the servlet container. |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EmbeddedManager()
| Method Detail |
public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws java.lang.Exception
preRegister in interface javax.management.MBeanRegistrationjava.lang.Exceptionpublic void postRegister(java.lang.Boolean registrationDone)
postRegister in interface javax.management.MBeanRegistration
public void preDeregister()
throws java.lang.Exception
preDeregister in interface javax.management.MBeanRegistrationjava.lang.Exceptionpublic void postDeregister()
postDeregister in interface javax.management.MBeanRegistrationpublic java.lang.String getName()
getName in interface EmbeddedManagerMBeanpublic int getState()
getState in interface EmbeddedManagerMBeanpublic java.lang.String getStateString()
getStateString in interface EmbeddedManagerMBeanpublic void start()
start in interface EmbeddedManagerMBeanpublic void stop()
stop in interface EmbeddedManagerMBeanpublic void destroy()
destroy in interface EmbeddedManagerMBeanpublic int getDebug()
getDebug in interface EmbeddedManagerMBeanpublic void setDebug(int debug)
setDebug in interface EmbeddedManagerMBeandebug - The new debugging detail levelpublic boolean isUseNaming()
isUseNaming in interface EmbeddedManagerMBeanpublic void setUseNaming(boolean useNaming)
setUseNaming in interface EmbeddedManagerMBeanuseNaming - The new use naming valuepublic Logger getLogger()
getLogger in interface EmbeddedManagerMBeanpublic void setLogger(Logger logger)
setLogger in interface EmbeddedManagerMBeanlogger - The new loggerpublic Realm getRealm()
getRealm in interface EmbeddedManagerMBeanpublic void setRealm(Realm realm)
setRealm in interface EmbeddedManagerMBeanrealm - The new default realmpublic java.lang.String getSocketFactory()
getSocketFactory in interface EmbeddedManagerMBeanpublic void setSocketFactory(java.lang.String socketFactory)
setSocketFactory in interface EmbeddedManagerMBeansocketFactory - The new secure socket factory class namepublic void addConnector(Connector connector)
addConnector in interface EmbeddedManagerMBeanconnector - The connector to be added
java.lang.IllegalStateException - if no engines have been added yetpublic void addEngine(Engine engine)
addEngine in interface EmbeddedManagerMBeanengine - The engine to be added
public Connector createConnector(java.net.InetAddress address,
int port,
boolean secure)
createConnector in interface EmbeddedManagerMBeanaddress - InetAddress to listen to, or null
to listen on all address on this serverport - Port number to listen tosecure - Should this port be SSL-enabled?
public Context createContext(java.lang.String path,
java.lang.String docBase)
After you have customized the properties, listeners, and Valves for this Context, you must attach it to the corresponding Host by calling:
host.addChild(context);which will also cause the Context to be started if the Host has already been started.
createContext in interface EmbeddedManagerMBeanpath - Context path of this application ("" for the default
application for this host, must start with a slash otherwise)docBase - Absolute pathname to the document base directory
for this web application
java.lang.IllegalArgumentException - if an invalid parameter
is specifiedpublic Engine createEngine()
createEngine in interface EmbeddedManagerMBean
public Host createHost(java.lang.String name,
java.lang.String appBase)
After you have customized the properties, listeners, and Valves for this Host, you must attach it to the corresponding Engine by calling:
engine.addChild(host);which will also cause the Host to be started if the Engine has already been started. If this is the default (or only) Host you will be defining, you may also tell the Engine to pass all requests not assigned to another virtual host to this one:
engine.setDefaultHost(host.getName());
createHost in interface EmbeddedManagerMBeanname - Canonical name of this virtual hostappBase - Absolute pathname to the application base directory
for this virtual host
java.lang.IllegalArgumentException - if an invalid parameter
is specifiedpublic java.lang.String getInfo()
<description>/<version>.
getInfo in interface EmbeddedManagerMBeanpublic void removeConnector(Connector connector)
removeConnector in interface EmbeddedManagerMBeanconnector - The Connector to be removedpublic void removeContext(Context context)
removeContext in interface EmbeddedManagerMBeancontext - The Context to be removedpublic void removeEngine(Engine engine)
removeEngine in interface EmbeddedManagerMBeanengine - The Engine to be removedpublic void removeHost(Host host)
removeHost in interface EmbeddedManagerMBeanhost - The Host to be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||