org.objectweb.joram.mom.proxies.tcp.TcpProxyService Class Reference

Inherited by org.objectweb.joram.mom.proxies.tcp.SSLTcpProxyService.

Inheritance diagram for org.objectweb.joram.mom.proxies.tcp.TcpProxyService:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.joram.mom.proxies.tcp.TcpProxyService:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TcpProxyService (ServerSocket serverSocket, int poolSize, int timeout)

Static Public Member Functions

static final int getListenPort ()
static final String getListenAddress ()
static void init (String args, boolean firstTime) throws Exception
static void stopService ()

Static Public Attributes

static final String SO_TIMEOUT_PROP = "org.objectweb.joram.mom.proxies.tcp.soTimeout"
static final int DEFAULT_SO_TIMEOUT = 10000
static final String POOL_SIZE_PROP = "org.objectweb.joram.mom.proxies.tcp.poolSize"
static final int DEFAULT_POOL_SIZE = 1
static final String BACKLOG_PROP = "org.objectweb.joram.mom.proxies.tcp.backlog"
static final int DEFAULT_BACKLOG = 10
static final int DEFAULT_PORT = 16010
static final String DEFAULT_BINDADDRESS = "0.0.0.0"

Protected Member Functions

void start ()

Static Protected Attributes

static TcpProxyService proxyService

Package Functions

void registerConnection (TcpConnection tcpConnection)
void unregisterConnection (TcpConnection tcpConnection)
TcpConnection getConnection (AgentId proxyId, int key)

Detailed Description

Starts a TCP entry point for MOM clients.

Definition at line 38 of file TcpProxyService.java.


Member Function Documentation

static void org.objectweb.joram.mom.proxies.tcp.TcpProxyService.init ( String  args,
boolean  firstTime 
) throws Exception [static]

Initializes the TCP entry point by creating a server socket listening to the specified port.

Parameters:
args stringified listening port
firstTime true when the agent server starts.

Reimplemented in org.objectweb.joram.mom.proxies.tcp.SSLTcpProxyService.

Definition at line 106 of file TcpProxyService.java.

References org.objectweb.joram.mom.proxies.tcp.TcpProxyService.BACKLOG_PROP, org.objectweb.joram.mom.proxies.tcp.TcpProxyService.DEFAULT_BACKLOG, org.objectweb.joram.mom.proxies.tcp.TcpProxyService.DEFAULT_BINDADDRESS, org.objectweb.joram.mom.proxies.tcp.TcpProxyService.DEFAULT_POOL_SIZE, org.objectweb.joram.mom.proxies.tcp.TcpProxyService.DEFAULT_PORT, org.objectweb.joram.mom.proxies.tcp.TcpProxyService.DEFAULT_SO_TIMEOUT, org.objectweb.joram.mom.proxies.tcp.TcpProxyService.POOL_SIZE_PROP, org.objectweb.joram.mom.proxies.tcp.TcpProxyService.proxyService, org.objectweb.joram.mom.proxies.tcp.TcpProxyService.SO_TIMEOUT_PROP, org.objectweb.joram.mom.proxies.tcp.TcpProxyService.start(), and org.objectweb.joram.mom.proxies.tcp.TcpProxyService.TcpProxyService().

Here is the call graph for this function:

static void org.objectweb.joram.mom.proxies.tcp.TcpProxyService.stopService (  )  [static]

Stops the service.

Definition at line 149 of file TcpProxyService.java.

References org.objectweb.joram.mom.proxies.tcp.TcpProxyService.proxyService, and org.objectweb.joram.mom.proxies.tcp.TcpProxyService.stop().

Here is the call graph for this function:


Member Data Documentation

final String org.objectweb.joram.mom.proxies.tcp.TcpProxyService.SO_TIMEOUT_PROP = "org.objectweb.joram.mom.proxies.tcp.soTimeout" [static]

Name the property that allow to fix the TCP SO_TIMEOUT property for the client's connections.

Definition at line 43 of file TcpProxyService.java.

Referenced by org.objectweb.joram.mom.proxies.tcp.TcpProxyService.init(), and org.objectweb.joram.mom.proxies.tcp.SSLTcpProxyService.init().

final int org.objectweb.joram.mom.proxies.tcp.TcpProxyService.DEFAULT_SO_TIMEOUT = 10000 [static]

Default value for the TCP SO_TIMEOUT property.

Definition at line 48 of file TcpProxyService.java.

Referenced by org.objectweb.joram.mom.proxies.tcp.TcpProxyService.init(), and org.objectweb.joram.mom.proxies.tcp.SSLTcpProxyService.init().

final String org.objectweb.joram.mom.proxies.tcp.TcpProxyService.POOL_SIZE_PROP = "org.objectweb.joram.mom.proxies.tcp.poolSize" [static]

Name the property that allow to fix the pool size for the connection's listener.

Definition at line 54 of file TcpProxyService.java.

Referenced by org.objectweb.joram.mom.proxies.tcp.TcpProxyService.init(), and org.objectweb.joram.mom.proxies.tcp.SSLTcpProxyService.init().

final int org.objectweb.joram.mom.proxies.tcp.TcpProxyService.DEFAULT_POOL_SIZE = 1 [static]

Default value for the pool size.

Definition at line 59 of file TcpProxyService.java.

Referenced by org.objectweb.joram.mom.proxies.tcp.TcpProxyService.init(), and org.objectweb.joram.mom.proxies.tcp.SSLTcpProxyService.init().

final String org.objectweb.joram.mom.proxies.tcp.TcpProxyService.BACKLOG_PROP = "org.objectweb.joram.mom.proxies.tcp.backlog" [static]

Name the property that allow to fix the TCP BACKLOG property for the client's connections.

Definition at line 65 of file TcpProxyService.java.

Referenced by org.objectweb.joram.mom.proxies.tcp.TcpProxyService.init(), and org.objectweb.joram.mom.proxies.tcp.SSLTcpProxyService.init().

final int org.objectweb.joram.mom.proxies.tcp.TcpProxyService.DEFAULT_BACKLOG = 10 [static]

Default value for the TCP BACKLOG property.

Definition at line 70 of file TcpProxyService.java.

Referenced by org.objectweb.joram.mom.proxies.tcp.TcpProxyService.init(), and org.objectweb.joram.mom.proxies.tcp.SSLTcpProxyService.init().

final int org.objectweb.joram.mom.proxies.tcp.TcpProxyService.DEFAULT_PORT = 16010 [static]

Default value for the TCP port of the listen socket.

Definition at line 75 of file TcpProxyService.java.

Referenced by org.objectweb.joram.mom.proxies.tcp.TcpProxyService.init(), and org.objectweb.joram.mom.proxies.tcp.SSLTcpProxyService.init().

final String org.objectweb.joram.mom.proxies.tcp.TcpProxyService.DEFAULT_BINDADDRESS = "0.0.0.0" [static]

Default IP address for binding the listen socket.

Definition at line 80 of file TcpProxyService.java.

Referenced by org.objectweb.joram.mom.proxies.tcp.TcpProxyService.init(), and org.objectweb.joram.mom.proxies.tcp.SSLTcpProxyService.init().

TcpProxyService org.objectweb.joram.mom.proxies.tcp.TcpProxyService.proxyService [static, protected]

The proxy service reference (used to stop it).

Definition at line 85 of file TcpProxyService.java.

Referenced by org.objectweb.joram.mom.proxies.tcp.TcpProxyService.init(), org.objectweb.joram.mom.proxies.tcp.SSLTcpProxyService.init(), and org.objectweb.joram.mom.proxies.tcp.TcpProxyService.stopService().


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 16:20:23 2008 for joram by  doxygen 1.5.0