org.apache.geronimo.tomcat
Class TomcatManagerImpl

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

public class TomcatManagerImpl
extends Object
implements WebManager

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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.geronimo.management.geronimo.WebManager
WebManager.ConnectorAttribute<T>, WebManager.ConnectorType
 
Field Summary
static GBeanInfo GBEAN_INFO
           
 
Fields inherited from interface org.apache.geronimo.management.geronimo.WebManager
PROTOCOL_AJP, PROTOCOL_HTTP, PROTOCOL_HTTPS
 
Constructor Summary
TomcatManagerImpl(Kernel kernel)
           
 
Method Summary
 WebAccessLog getAccessLog(WebContainer container)
          Gets the WebAccessLog implementation for a web container.
 List<WebManager.ConnectorAttribute> getConnectorAttributes(WebManager.ConnectorType connectorType)
           
 AbstractName getConnectorConfiguration(WebManager.ConnectorType connectorType, List<WebManager.ConnectorAttribute> connectorAttributes, WebContainer container, String uniqueName)
           
 NetworkConnector[] getConnectors()
          Gets the ObjectNames of any existing connectors associated with this network technology.
 NetworkConnector[] getConnectors(String protocol)
          Gets the ObjectNames of any existing connectors for this network technology for the specified protocol.
 NetworkConnector[] getConnectorsForContainer(Object container)
          Gets the ObjectNames of any existing connectors for the specified container.
 NetworkConnector[] getConnectorsForContainer(Object container, String protocol)
          Gets the ObjectNames of any existing connectors for the specified container for the specified protocol.
 WebManager.ConnectorType getConnectorType(AbstractName connectorName)
           
 List<WebManager.ConnectorType> getConnectorTypes()
           
 Object[] getContainers()
          Gets the network containers.
static GBeanInfo getGBeanInfo()
           
 String getProductName()
          Gets the name of the product that this manager manages.
 String[] getSupportedProtocols()
          Gets the protocols which this container can configure connectors for.
 void removeConnector(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 GBeanInfo GBEAN_INFO
Constructor Detail

TomcatManagerImpl

public TomcatManagerImpl(Kernel kernel)
Method Detail

getProductName

public String getProductName()
Description copied from interface: NetworkManager
Gets the name of the product that this manager manages.

Specified by:
getProductName in interface NetworkManager

getContainers

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

Specified by:
getContainers in interface NetworkManager

getSupportedProtocols

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

Specified by:
getSupportedProtocols in interface NetworkManager

removeConnector

public void removeConnector(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 NetworkManager
Parameters:
connectorName -

getConnectors

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

Specified by:
getConnectors in interface NetworkManager
Parameters:
protocol - A protocol as returned by getSupportedProtocols

getAccessLog

public WebAccessLog getAccessLog(WebContainer container)
Description copied from interface: WebManager
Gets the WebAccessLog implementation for a web container. May be null if the access log cannot be managed.

Specified by:
getAccessLog in interface WebManager
Parameters:
container - The container whose access log is interesting

getConnectorTypes

public List<WebManager.ConnectorType> getConnectorTypes()
Specified by:
getConnectorTypes in interface WebManager

getConnectorAttributes

public List<WebManager.ConnectorAttribute> getConnectorAttributes(WebManager.ConnectorType connectorType)
Specified by:
getConnectorAttributes in interface WebManager

getConnectorConfiguration

public AbstractName getConnectorConfiguration(WebManager.ConnectorType connectorType,
                                              List<WebManager.ConnectorAttribute> connectorAttributes,
                                              WebContainer container,
                                              String uniqueName)
Specified by:
getConnectorConfiguration in interface WebManager

getConnectors

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

Specified by:
getConnectors in interface NetworkManager

getConnectorsForContainer

public 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 NetworkManager
Parameters:
protocol - A protocol as returned by getSupportedProtocols
container - The container to get connectors for

getConnectorsForContainer

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

Specified by:
getConnectorsForContainer in interface NetworkManager
Parameters:
container - The container to get connectors for

getGBeanInfo

public static GBeanInfo getGBeanInfo()

getConnectorType

public WebManager.ConnectorType getConnectorType(AbstractName connectorName)
Specified by:
getConnectorType in interface WebManager


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.