Class ServiceMBean

  • All Implemented Interfaces:
    javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.modelmbean.ModelMBeanNotificationBroadcaster, javax.management.NotificationBroadcaster

    public class ServiceMBean
    extends BaseCatalinaMBean<Service>
    • Constructor Detail

      • ServiceMBean

        public ServiceMBean()
    • Method Detail

      • addConnector

        public void addConnector​(java.lang.String address,
                                 int port,
                                 boolean isAjp,
                                 boolean isSSL)
                          throws javax.management.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:
        javax.management.MBeanException - error creating the connector
      • addExecutor

        public void addExecutor​(java.lang.String type)
                         throws javax.management.MBeanException
        Adds a named executor to the service
        Parameters:
        type - Classname of the Executor to be added
        Throws:
        javax.management.MBeanException - error creating the executor
      • findConnectors

        public java.lang.String[] findConnectors()
                                          throws javax.management.MBeanException
        Find and return the set of Connectors associated with this Service.
        Returns:
        an array of string representations of the connectors
        Throws:
        javax.management.MBeanException - error accessing the associated service
      • findExecutors

        public java.lang.String[] findExecutors()
                                         throws javax.management.MBeanException
        Retrieves all executors.
        Returns:
        an array of string representations of the executors
        Throws:
        javax.management.MBeanException - error accessing the associated service
      • getExecutor

        public java.lang.String getExecutor​(java.lang.String name)
                                     throws javax.management.MBeanException
        Retrieves executor by name
        Parameters:
        name - Name of the executor to be retrieved
        Returns:
        a string representation of the executor
        Throws:
        javax.management.MBeanException - error accessing the associated service