org.eclipse.ecf.server.generic.app
Class ClientApplication

java.lang.Object
  extended by org.eclipse.ecf.server.generic.app.ClientApplication

public class ClientApplication
extends java.lang.Object

An ECF client container implementation that runs as an application.

Usage: java org.eclipse.ecf.provider.app.ClientApplication <serverid>

If <serverid> is omitted or "-" is specified, ecftcp://localhost:3282/server" is used.


Field Summary
static java.lang.String COMPOSENT_CONTAINER_NAME
           
static java.lang.String CONTAINER_FACTORY_CLASS
           
static java.lang.String CONTAINER_FACTORY_NAME
           
static int DEFAULT_TIMEOUT
           
static int DEFAULT_WAITTIME
           
 
Constructor Summary
ClientApplication()
           
 
Method Summary
 void connect(ID server)
           
protected  ISharedObjectContainer createClient()
           
 void createSharedObjects()
           
 void disconnect()
           
 void init(java.lang.String[] args)
           
static void main(java.lang.String[] args)
          An ECF client container implementation that runs as an application.
 void removeSharedObjects()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_WAITTIME

public static final int DEFAULT_WAITTIME
See Also:
Constant Field Values

DEFAULT_TIMEOUT

public static final int DEFAULT_TIMEOUT

CONTAINER_FACTORY_NAME

public static final java.lang.String CONTAINER_FACTORY_NAME

CONTAINER_FACTORY_CLASS

public static final java.lang.String CONTAINER_FACTORY_CLASS

COMPOSENT_CONTAINER_NAME

public static final java.lang.String COMPOSENT_CONTAINER_NAME
Constructor Detail

ClientApplication

public ClientApplication()
Method Detail

init

public void init(java.lang.String[] args)
          throws java.lang.Exception
Throws:
java.lang.Exception

createClient

protected ISharedObjectContainer createClient()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

connect

public void connect(ID server)
             throws java.lang.Exception
Throws:
java.lang.Exception

disconnect

public void disconnect()

createSharedObjects

public void createSharedObjects()
                         throws java.lang.Exception
Throws:
java.lang.Exception

removeSharedObjects

public void removeSharedObjects()
                         throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
An ECF client container implementation that runs as an application.

Usage: java org.eclipse.ecf.provider.app.ClientApplication <serverid>

If <serverid> is omitted or "-" is specified, ecftcp://localhost:3282/server" is used.

Throws:
java.lang.Exception