org.sapia.ubik.rmi.naming.remote
Class JNDIServerHelper

java.lang.Object
  extended by org.sapia.ubik.rmi.naming.remote.JNDIServerHelper
All Implemented Interfaces:
Consts

public class JNDIServerHelper
extends java.lang.Object
implements Consts

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Nested Class Summary
static class JNDIServerHelper.Args
           
 
Field Summary
 
Fields inherited from interface org.sapia.ubik.rmi.naming.remote.Consts
DEFAULT_PORT, JNDI_CLIENT_PUBLISH, JNDI_SERVER_DISCO, JNDI_SERVER_PUBLISH
 
Fields inherited from interface org.sapia.ubik.rmi.Consts
ALLOW_CODE_DOWNLOAD, CALLBACK_ENABLED, CLIENT_CALLBACK_TIMEOUT, CLIENT_GC_BATCHSIZE, CLIENT_GC_INTERVAL, CLIENT_GC_THRESHOLD, DEFAULT_DOMAIN, DEFAULT_MCAST_ADDR, DEFAULT_MCAST_PORT, IP_PATTERN_KEY, JMX_ENABLED, LOG_LEVEL, MARSHALLING, MCAST_ADDR_KEY, MCAST_BUFSIZE_KEY, MCAST_HEARTBEAT_INTERVAL, MCAST_HEARTBEAT_TIMEOUT, MCAST_PORT_KEY, OBJECT_TABLE_INITCAPACITY, OBJECT_TABLE_LOAD_FACTOR, SERVER_CALLBACK_MAX_THREADS, SERVER_GC_INTERVAL, SERVER_GC_TIMEOUT, SERVER_MAX_THREADS, SERVER_RESET_INTERVAL, STATS_DUMP_INTERVAL, STATS_ENABLED, TRANSPORT_PROVIDER, TRANSPORT_TYPE, UBIK_DOMAIN_NAME
 
Constructor Summary
JNDIServerHelper()
           
 
Method Summary
static ClientListener createClientListener(EventChannel ec, ServerAddress addr)
           
static javax.naming.Context newRootContext(EventChannel ec)
           
static JNDIServerHelper.Args parseArgs(java.lang.String[] args)
          Parses the given command-line arguments and returns their object representation, or null if the args could not be parsed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNDIServerHelper

public JNDIServerHelper()
Method Detail

parseArgs

public static JNDIServerHelper.Args parseArgs(java.lang.String[] args)
Parses the given command-line arguments and returns their object representation, or null if the args could not be parsed. If the latter happens, this method displays help to stdout before returing.

Returns:
an Args instance holding command-line arguments.

newRootContext

public static javax.naming.Context newRootContext(EventChannel ec)
                                           throws javax.naming.NamingException
Throws:
javax.naming.NamingException

createClientListener

public static ClientListener createClientListener(EventChannel ec,
                                                  ServerAddress addr)
                                           throws javax.naming.NamingException,
                                                  java.io.IOException
Throws:
javax.naming.NamingException
java.io.IOException


Copyright © 2010 Sapia OSS. All Rights Reserved.