Top Constructors Methods
org.apache.catalina.mbeans

public Class ServiceMBean

extends BaseCatalinaMBean<Service>
Class Inheritance
Imports
javax.management.MBeanException, org.apache.catalina.Executor, .Service, org.apache.catalina.connector.Connector

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addConnector(String
The IP address on which to bind
address
,
int
TCP port number to listen on
port
,
boolean
Create a AJP/1.3 Connector
isAjp
,
boolean
Create a secure Connector
isSSL
)

Add a new Connector to the set of defined Connectors, and associate it with this Service's Container.

public void
addExecutor(String
Classname of the Executor to be added
type
)

Adds a named executor to the service

public String[]

Returns:

an array of string representations of the connectors
findConnectors
()

Find and return the set of Connectors associated with this Service.

public String[]

Returns:

an array of string representations of the executors
findExecutors
()

Retrieves all executors.

public String

Returns:

a string representation of the executor
getExecutor
(String
Name of the executor to be retrieved
name
)

Retrieves executor by name

Inherited from org.apache.catalina.mbeans.BaseCatalinaMBean:
doGetManagedResourcenewInstance

Constructor Detail

ServiceMBeanback to summary
public ServiceMBean()

Method Detail

addConnectorback to summary
public 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:String

The IP address on which to bind

port:int

TCP port number to listen on

isAjp:boolean

Create a AJP/1.3 Connector

isSSL:boolean

Create a secure Connector

Exceptions
MBeanException:
error creating the connector
addExecutorback to summary
public void addExecutor(String type) throws MBeanException

Adds a named executor to the service

Parameters
type:String

Classname of the Executor to be added

Exceptions
MBeanException:
error creating the executor
findConnectorsback to summary
public String[] findConnectors() throws MBeanException

Find and return the set of Connectors associated with this Service.

Returns:String[]

an array of string representations of the connectors

Exceptions
MBeanException:
error accessing the associated service
findExecutorsback to summary
public String[] findExecutors() throws MBeanException

Retrieves all executors.

Returns:String[]

an array of string representations of the executors

Exceptions
MBeanException:
error accessing the associated service
getExecutorback to summary
public String getExecutor(String name) throws MBeanException

Retrieves executor by name

Parameters
name:String

Name of the executor to be retrieved

Returns:String

a string representation of the executor

Exceptions
MBeanException:
error accessing the associated service