org.apache.geronimo.management.geronimo
Interface NetworkManager

All Known Subinterfaces:
EJBManager, JMSManager, WebManager

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.

Version:
$Rev: 391894 $ $Date: 2006-04-06 06:00:33 +0200 (Thu, 06 Apr 2006) $

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(org.apache.geronimo.gbean.AbstractName connectorName)
          Removes a connector.
 

Method Detail

getProductName

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


getContainers

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


getSupportedProtocols

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


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.

Parameters:
connectorName -

getConnectors

public 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

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


getConnectorsForContainer

public 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

public 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.