Package org.apache.catalina.mbeans
Class ServiceMBean
- All Implemented Interfaces:
- DynamicMBean,- MBeanRegistration,- ModelMBeanNotificationBroadcaster,- NotificationBroadcaster
- 
Field SummaryFields inherited from class org.apache.tomcat.util.modeler.BaseModelMBeanattributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddConnector(String address, int port, boolean isAjp, boolean isSSL) Add a new Connector to the set of defined Connectors, and associate it with this Service's Container.voidaddExecutor(String type) Adds a named executor to the serviceString[]Find and return the set of Connectors associated with this Service.String[]Retrieves all executors.getExecutor(String name) Retrieves executor by nameMethods inherited from class org.apache.catalina.mbeans.BaseCatalinaMBeandoGetManagedResource, newInstanceMethods inherited from class org.apache.tomcat.util.modeler.BaseModelMBeanaddAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, invoke, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedBean, setManagedResource, toString
- 
Constructor Details- 
ServiceMBeanpublic ServiceMBean()
 
- 
- 
Method Details- 
addConnectorpublic void addConnector(String address, int port, boolean isAjp, boolean isSSL) throws MBeanException Add a new Connector to the set of defined Connectors, and associate it with this Service's Container.- Parameters:
- address- The IP address on which to bind
- port- TCP port number to listen on
- isAjp- Create a AJP/1.3 Connector
- isSSL- Create a secure Connector
- Throws:
- MBeanException- error creating the connector
 
- 
addExecutorAdds a named executor to the service- Parameters:
- type- Classname of the Executor to be added
- Throws:
- MBeanException- error creating the executor
 
- 
findConnectorsFind and return the set of Connectors associated with this Service.- Returns:
- an array of string representations of the connectors
- Throws:
- MBeanException- error accessing the associated service
 
- 
findExecutorsRetrieves all executors.- Returns:
- an array of string representations of the executors
- Throws:
- MBeanException- error accessing the associated service
 
- 
getExecutorRetrieves executor by name- Parameters:
- name- Name of the executor to be retrieved
- Returns:
- a string representation of the executor
- Throws:
- MBeanException- error accessing the associated service
 
 
-