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

java.lang.Object
  extended by org.objectweb.joram.mom.proxies.tcp.TcpProxyService
      extended by org.objectweb.joram.mom.proxies.tcp.SSLTcpProxyService
All Implemented Interfaces:
ConnectionManagerMBean, TcpProxyServiceMBean

public class SSLTcpProxyService
extends TcpProxyService

Starts a SSLTCP entry point for MOM clients.


Field Summary
private static java.lang.String CIPHER
           
private static java.lang.String KS
           
private static java.lang.String KS_PASS
           
private static java.lang.String KS_TYPE
           
static org.objectweb.util.monolog.api.Logger logger
          logger
private static java.lang.String MBEAN_NAME
           
private static SSLTcpProxyService proxyService
          The proxy service reference (used to stop it).
private static java.lang.String SSLCONTEXT
           
 
Fields inherited from class org.objectweb.joram.mom.proxies.tcp.TcpProxyService
address, backlog, BACKLOG_PROP, DEFAULT_BACKLOG, DEFAULT_BINDADDRESS, DEFAULT_POOL_SIZE, DEFAULT_PORT, DEFAULT_SO_TIMEOUT, POOL_SIZE_PROP, port, SO_TIMEOUT_PROP
 
Constructor Summary
SSLTcpProxyService(int port, int backlog, java.lang.String address)
           
 
Method Summary
protected  java.net.ServerSocket createServerSocket(int port, int backlog, java.lang.String address)
          Initialize the listening socket.
private static javax.net.ServerSocketFactory createServerSocketFactory()
           
private static java.lang.String[] getCipherList()
           
 java.lang.String getMBeanName()
          Gets the name of the MBean.
static void init(java.lang.String args, boolean firstTime)
          Initializes the SSLTCP entry point by creating a ssl server socket listening to the specified port.
 
Methods inherited from class org.objectweb.joram.mom.proxies.tcp.TcpProxyService
activate, closeAllConnections, deactivate, getConnection, getFailedLoginCount, getInitiatedConnectionCount, getProtocolErrorCount, getRunningConnectionsCount, getServerAddress, getServerSocket, getTcpListenersPoolSize, isActivated, registerConnection, resetServerSocket, start, stopService, unregisterConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static org.objectweb.util.monolog.api.Logger logger
logger


CIPHER

private static final java.lang.String CIPHER
See Also:
Constant Field Values

KS

private static final java.lang.String KS
See Also:
Constant Field Values

KS_PASS

private static final java.lang.String KS_PASS
See Also:
Constant Field Values

KS_TYPE

private static final java.lang.String KS_TYPE
See Also:
Constant Field Values

SSLCONTEXT

private static final java.lang.String SSLCONTEXT
See Also:
Constant Field Values

MBEAN_NAME

private static final java.lang.String MBEAN_NAME
See Also:
Constant Field Values

proxyService

private static SSLTcpProxyService proxyService
The proxy service reference (used to stop it).

Constructor Detail

SSLTcpProxyService

public SSLTcpProxyService(int port,
                          int backlog,
                          java.lang.String address)
                   throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

init

public static void init(java.lang.String args,
                        boolean firstTime)
                 throws java.lang.Exception
Initializes the SSLTCP entry point by creating a ssl server socket listening to the specified port.

Parameters:
args - stringified listening port
firstTime - true when the agent server starts.
Throws:
java.lang.Exception

getMBeanName

public java.lang.String getMBeanName()
Description copied from interface: ConnectionManagerMBean
Gets the name of the MBean.

Specified by:
getMBeanName in interface ConnectionManagerMBean
Overrides:
getMBeanName in class TcpProxyService

createServerSocketFactory

private static javax.net.ServerSocketFactory createServerSocketFactory()
                                                                throws java.lang.Exception
Throws:
java.lang.Exception

createServerSocket

protected java.net.ServerSocket createServerSocket(int port,
                                                   int backlog,
                                                   java.lang.String address)
                                            throws java.lang.Exception
Description copied from class: TcpProxyService
Initialize the listening socket.

Overrides:
createServerSocket in class TcpProxyService
Returns:
The initialized socket.
Throws:
java.lang.Exception

getCipherList

private static java.lang.String[] getCipherList()
                                         throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.