org.apache.geronimo.management.geronimo
Interface NetworkConnector

All Known Subinterfaces:
EJBConnector, JMSConnector, SecureConnector, WebConnector

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 © 2006 Apache Software Foundation. All Rights Reserved.