org.apache.geronimo.tomcat
Class TomcatManagerImpl

java.lang.Object
  extended by org.apache.geronimo.tomcat.TomcatManagerImpl
All Implemented Interfaces:
org.apache.geronimo.management.geronimo.NetworkManager, org.apache.geronimo.management.geronimo.WebManager

public class TomcatManagerImpl
extends Object
implements org.apache.geronimo.management.geronimo.WebManager

Tomcat implementation of the WebManager management API. Knows how to manipulate other Tomcat objects for management purposes.


Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Fields inherited from interface org.apache.geronimo.management.geronimo.WebManager
PROTOCOL_AJP, PROTOCOL_HTTP, PROTOCOL_HTTPS
 
Constructor Summary
TomcatManagerImpl(org.apache.geronimo.kernel.Kernel kernel)
           
 
Method Summary
 org.apache.geronimo.management.geronimo.WebConnector addConnector(org.apache.geronimo.management.geronimo.WebContainer container, String uniqueName, String protocol, String host, int port)
          Creates and returns a new connector.
 org.apache.geronimo.management.geronimo.WebAccessLog getAccessLog(org.apache.geronimo.management.geronimo.WebContainer container)
           
 org.apache.geronimo.management.geronimo.NetworkConnector[] getConnectors()
          Gets the ObjectNames of any existing connectors associated with this network technology.
 org.apache.geronimo.management.geronimo.NetworkConnector[] getConnectors(String protocol)
          Gets the ObjectNames of any existing connectors for this network technology for the specified protocol.
 org.apache.geronimo.management.geronimo.NetworkConnector[] getConnectorsForContainer(Object container)
          Gets the ObjectNames of any existing connectors for the specified container.
 org.apache.geronimo.management.geronimo.NetworkConnector[] getConnectorsForContainer(Object container, String protocol)
          Gets the ObjectNames of any existing connectors for the specified container for the specified protocol.
 Object[] getContainers()
          Gets the network containers.
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 String getProductName()
           
 String[] getSupportedProtocols()
          Gets the protocols which this container can configure connectors for.
 void removeConnector(org.apache.geronimo.gbean.AbstractName connectorName)
          Removes a connector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

TomcatManagerImpl

public TomcatManagerImpl(org.apache.geronimo.kernel.Kernel kernel)
Method Detail

getProductName

public String getProductName()
Specified by:
getProductName in interface org.apache.geronimo.management.geronimo.NetworkManager

addConnector

public org.apache.geronimo.management.geronimo.WebConnector addConnector(org.apache.geronimo.management.geronimo.WebContainer container,
                                                                         String uniqueName,
                                                                         String protocol,
                                                                         String host,
                                                                         int port)
Creates and returns a new connector. Note that the connector may well require further customization before being fully functional (e.g. SSL settings for a secure connector). This may need to be done before starting the resulting connector.

Specified by:
addConnector in interface org.apache.geronimo.management.geronimo.WebManager
Parameters:
container - The container to add the connector to
uniqueName - A name fragment that's unique to this connector
protocol - The protocol that the connector should use
host - The host name or IP that the connector should listen on
port - The port that the connector should listen on

getContainers

public Object[] getContainers()
Gets the network containers.

Specified by:
getContainers in interface org.apache.geronimo.management.geronimo.NetworkManager

getSupportedProtocols

public String[] getSupportedProtocols()
Gets the protocols which this container can configure connectors for.

Specified by:
getSupportedProtocols in interface org.apache.geronimo.management.geronimo.NetworkManager

removeConnector

public void removeConnector(org.apache.geronimo.gbean.AbstractName connectorName)
Removes a connector. This shuts it down if necessary, and removes it from the server environment. It must be a connector that uses this network technology.

Specified by:
removeConnector in interface org.apache.geronimo.management.geronimo.NetworkManager
Parameters:
connectorName -

getConnectors

public org.apache.geronimo.management.geronimo.NetworkConnector[] getConnectors(String protocol)
Gets the ObjectNames of any existing connectors for this network technology for the specified protocol.

Specified by:
getConnectors in interface org.apache.geronimo.management.geronimo.NetworkManager
Parameters:
protocol - A protocol as returned by getSupportedProtocols

getAccessLog

public org.apache.geronimo.management.geronimo.WebAccessLog getAccessLog(org.apache.geronimo.management.geronimo.WebContainer container)
Specified by:
getAccessLog in interface org.apache.geronimo.management.geronimo.WebManager

getConnectors

public org.apache.geronimo.management.geronimo.NetworkConnector[] getConnectors()
Gets the ObjectNames of any existing connectors associated with this network technology.

Specified by:
getConnectors in interface org.apache.geronimo.management.geronimo.NetworkManager

getConnectorsForContainer

public org.apache.geronimo.management.geronimo.NetworkConnector[] getConnectorsForContainer(Object container,
                                                                                            String protocol)
Gets the ObjectNames of any existing connectors for the specified container for the specified protocol.

Specified by:
getConnectorsForContainer in interface org.apache.geronimo.management.geronimo.NetworkManager
Parameters:
protocol - A protocol as returned by getSupportedProtocols

getConnectorsForContainer

public org.apache.geronimo.management.geronimo.NetworkConnector[] getConnectorsForContainer(Object container)
Gets the ObjectNames of any existing connectors for the specified container.

Specified by:
getConnectorsForContainer in interface org.apache.geronimo.management.geronimo.NetworkManager

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


Copyright © 2006 Apache Software Foundation. All Rights Reserved.