Joram ${version}

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

java.lang.Object
  extended byorg.objectweb.joram.mom.proxies.tcp.TcpProxyService
Direct Known Subclasses:
SSLTcpProxyService

public class TcpProxyService
extends java.lang.Object

Starts a TCP entry point for MOM clients.


Field Summary
static java.lang.String BACKLOG_PROP
           
static int DEFAULT_BACKLOG
           
static int DEFAULT_POOL_SIZE
           
static int DEFAULT_PORT
           
static int DEFAULT_SO_TIMEOUT
           
static java.lang.String POOL_SIZE_PROP
           
protected static TcpProxyService proxyService
          The proxy service reference (used to stop it).
static java.lang.String SO_TIMEOUT_PROP
           
 
Constructor Summary
TcpProxyService(java.net.ServerSocket serverSocket, int poolSize, int timeout)
           
 
Method Summary
static int getListenPort()
           
static void init(java.lang.String args, boolean firstTime)
          Initializes the TCP entry point by creating a server socket listening to the specified port.
protected  void start()
           
static void stopService()
          Stops the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SO_TIMEOUT_PROP

public static final java.lang.String SO_TIMEOUT_PROP
See Also:
Constant Field Values

DEFAULT_SO_TIMEOUT

public static final int DEFAULT_SO_TIMEOUT
See Also:
Constant Field Values

POOL_SIZE_PROP

public static final java.lang.String POOL_SIZE_PROP
See Also:
Constant Field Values

DEFAULT_POOL_SIZE

public static final int DEFAULT_POOL_SIZE
See Also:
Constant Field Values

BACKLOG_PROP

public static final java.lang.String BACKLOG_PROP
See Also:
Constant Field Values

DEFAULT_BACKLOG

public static final int DEFAULT_BACKLOG
See Also:
Constant Field Values

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

proxyService

protected static TcpProxyService proxyService
The proxy service reference (used to stop it).

Constructor Detail

TcpProxyService

public TcpProxyService(java.net.ServerSocket serverSocket,
                       int poolSize,
                       int timeout)
Method Detail

getListenPort

public static final int getListenPort()

init

public static void init(java.lang.String args,
                        boolean firstTime)
                 throws java.lang.Exception
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.
Throws:
java.lang.Exception

stopService

public static void stopService()
Stops the service.


start

protected void start()

Joram ${version}

Copyright © 2005 Scalagent - All rights reserved