org.apache.geronimo.management.geronimo
Interface NetworkConnector

All Known Subinterfaces:
ActiveMQConnector, EJBConnector, JettySecureConnector, JettyWebConnector, JMSConnector, SecureConnector, TomcatSecureConnector, TomcatWebConnector, WebConnector
All Known Implementing Classes:
AbstractHttp11ConnectorGBean, AJP13Connector, AJP13ConnectorGBean, BaseHttp11ConnectorGBean, ConnectorGBean, EjbDaemonGBean, Http11APRConnectorGBean, Http11ConnectorGBean, Http11NIOConnectorGBean, HTTPBlockingConnector, Https11APRConnectorGBean, Https11ConnectorGBean, Https11NIOConnectorGBean, HTTPSelectChannelConnector, HTTPSocketConnector, HTTPSSelectChannelConnector, HTTPSSocketConnector, JettyConnector, TransportConnectorGBeanImpl

public interface NetworkConnector

Base management interface for a network connector used to handle some protocol in order to talk to some part of the Geronimo server.


Method Summary
 String getHost()
          Gets the hostname/IP that this connector listens on.
 InetSocketAddress getListenAddress()
          Every connector must specify a property of type InetSocketAddress because we use that to identify the network services to print a list during startup.
 int getPort()
          Gets the network port that this connector listens on.
 String getProtocol()
          Gets the network protocol that this connector handles.
 void setHost(String host)
          Sets the hostname/IP that this connector listens on.
 void setPort(int port)
          Sets the network port that this connector listens on.
 

Method Detail

getProtocol

String getProtocol()
Gets the network protocol that this connector handles.


getPort

int getPort()
Gets the network port that this connector listens on.


setPort

void setPort(int port)
Sets the network port that this connector listens on.


getHost

String getHost()
Gets the hostname/IP that this connector listens on.


setHost

void setHost(String host)
             throws UnknownHostException
Sets the hostname/IP that this connector listens on. This is typically most useful for machines with multiple network cards, but can be used to limit a connector to only listen for connections from the local machine (127.0.0.1). To listen on all available network interfaces, specify an address of 0.0.0.0.

Throws:
UnknownHostException

getListenAddress

InetSocketAddress getListenAddress()
Every connector must specify a property of type InetSocketAddress because we use that to identify the network services to print a list during startup. However, this can be read-only since the host and port are set separately using setHost and setPort.



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