public class ServiceMBean extends BaseModelMBean
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType
Constructor and Description |
---|
ServiceMBean() |
Modifier and Type | Method and Description |
---|---|
void |
addConnector(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(String type)
Adds a named executor to the service
|
String[] |
findConnectors()
Find and return the set of Connectors associated with this Service.
|
String[] |
findExecutors()
Retrieves all executors.
|
String |
getExecutor(String name)
Retrieves executor by name
|
addAttributeChangeNotificationListener, 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
public ServiceMBean() throws MBeanException, RuntimeOperationsException
public void addConnector(String address, int port, boolean isAjp, boolean isSSL) throws MBeanException
address
- The IP address on which to bindport
- TCP port number to listen onisAjp
- Create a AJP/1.3 ConnectorisSSL
- Create a secure ConnectorMBeanException
- error creating the connectorpublic void addExecutor(String type) throws MBeanException
type
- Classname of the Executor to be addedMBeanException
- error creating the executorpublic String[] findConnectors() throws MBeanException
MBeanException
- error accessing the associated servicepublic String[] findExecutors() throws MBeanException
MBeanException
- error accessing the associated servicepublic String getExecutor(String name) throws MBeanException
name
- Name of the executor to be retrievedMBeanException
- error accessing the associated serviceCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.