org.apache.geronimo.management.geronimo
Interface NetworkManager

All Known Subinterfaces:
ActiveMQManager, EJBManager, JMSManager, WebManager
All Known Implementing Classes:
ActiveMQManagerGBean, JettyManagerImpl, TomcatManagerImpl

public interface NetworkManager

Base management interface for a network technology with associated containers and connectors. Examples might be Web, EJB, JMS (all of which have the concept of containers and connectors). The container would be the Web Container, EJB Container, or JMS Broker. The connectors would be the services that expose those containers over the network, via HTTP, RMI, TCP, etc.


Method Summary
 NetworkConnector[] getConnectors()
          Gets any existing connectors associated with this network technology.
 NetworkConnector[] getConnectors(String protocol)
          Gets 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.
 Object[] getContainers()
          Gets the network containers (web, EJB, JMS, etc.)
 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.
 

Method Detail

getProductName

String getProductName()
Gets the name of the product that this manager manages.


getContainers

Object[] getContainers()
Gets the network containers (web, EJB, JMS, etc.)


getSupportedProtocols

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


removeConnector

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.

Parameters:
connectorName -

getConnectors

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

Parameters:
protocol - A protocol as returned by getSupportedProtocols

getConnectors

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


getConnectorsForContainer

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

Parameters:
container - The container to get connectors for
protocol - A protocol as returned by getSupportedProtocols

getConnectorsForContainer

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

Parameters:
container - The container to get connectors for


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