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
public void addExecutor(String type) throws MBeanException
type
- Classname of the Executor to be addedMBeanException
public String[] findConnectors() throws MBeanException
MBeanException
public String[] findExecutors() throws MBeanException
MBeanException
public String getExecutor(String name) throws MBeanException
name
- Name of the executor to be retrievedMBeanException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.