public class ServiceMBean extends BaseModelMBean
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType
Constructor and Description |
---|
ServiceMBean() |
Modifier and Type | Method and Description |
---|---|
void |
addConnector(java.lang.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.
|
void |
addExecutor(java.lang.String type)
Adds a named executor to the service
|
java.lang.String[] |
findConnectors()
Find and return the set of Connectors associated with this Service.
|
java.lang.String[] |
findExecutors()
Retrieves all executors
|
java.lang.String |
getExecutor(java.lang.String name)
Retrieves executor by name
|
addAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, invoke, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedBean, setManagedResource, toString
public ServiceMBean() throws javax.management.MBeanException, javax.management.RuntimeOperationsException
javax.management.MBeanException
javax.management.RuntimeOperationsException
public void addConnector(java.lang.String address, int port, boolean isAjp, boolean isSSL) throws javax.management.MBeanException
address
- The IP address on which to bindport
- TCP port number to listen onisAjp
- Create a AJP/1.3 ConnectorisSSL
- Create a secure Connectorjavax.management.MBeanException
public void addExecutor(java.lang.String type) throws javax.management.MBeanException
type
- Classname of the Executor to be addedjavax.management.MBeanException
public java.lang.String[] findConnectors() throws javax.management.MBeanException
javax.management.MBeanException
public java.lang.String[] findExecutors() throws javax.management.MBeanException
javax.management.MBeanException
public java.lang.String getExecutor(java.lang.String name) throws javax.management.MBeanException
name
- Name of the executor to be retrievedjavax.management.MBeanException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.