org.objectweb.dsrg.sofa.deployment.util
Class RunAutoconfiguredEnvironment

java.lang.Object
  extended by org.objectweb.dsrg.sofa.deployment.util.RunAutoconfiguredEnvironment

public class RunAutoconfiguredEnvironment
extends java.lang.Object

Launches repository and dock registry and global connector manager without the need of too many things specified by the user.


Nested Class Summary
static class RunAutoconfiguredEnvironment.NodeThread
          The thread in which everything concerning the node runs.
 
Field Summary
static java.lang.String DOCK_REGISTRY_PORT
          Dock registry port.
static java.lang.String REPOSITORY_PATH_PROPERTY
          System property name for setting repository directory root.
static java.lang.String REPOSITORY_PORT
          System property name for setting repository server listening port.
static java.lang.String REPOSITORY_WEBAPP_PATH
          System property name for setting repository web application war path
 
Constructor Summary
RunAutoconfiguredEnvironment()
           
 
Method Summary
static void firstStart()
          Must be used instead of the startNode() function when starting the node for the first time because of the GlobalConnectionManager, which is started only once and cannot be stopped (yet) when the node stops.
static void initNode()
          Initializes all ports and starts the zeroconfiguration server.
static void main(java.lang.String[] args)
           
static boolean runDockRegistry(java.lang.String rmiPort)
          Launches the dock registry.
static boolean runGCM(int port)
          Launches the global connector manager.
static boolean runRepository(java.lang.String repositoryPort)
          Launches the repository.
static void startNode()
          Starts the node.
static void stopNode()
          Stops the node (can be run again).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPOSITORY_PATH_PROPERTY

public static final java.lang.String REPOSITORY_PATH_PROPERTY
System property name for setting repository directory root.

See Also:
Constant Field Values

REPOSITORY_PORT

public static final java.lang.String REPOSITORY_PORT
System property name for setting repository server listening port.

See Also:
Constant Field Values

REPOSITORY_WEBAPP_PATH

public static final java.lang.String REPOSITORY_WEBAPP_PATH
System property name for setting repository web application war path

See Also:
Constant Field Values

DOCK_REGISTRY_PORT

public static final java.lang.String DOCK_REGISTRY_PORT
Dock registry port.

See Also:
Constant Field Values
Constructor Detail

RunAutoconfiguredEnvironment

public RunAutoconfiguredEnvironment()
Method Detail

firstStart

public static void firstStart()
Must be used instead of the startNode() function when starting the node for the first time because of the GlobalConnectionManager, which is started only once and cannot be stopped (yet) when the node stops.


main

public static void main(java.lang.String[] args)

initNode

public static void initNode()
Initializes all ports and starts the zeroconfiguration server.


startNode

public static void startNode()
Starts the node. Warning - doesn't work if you didn't run initNode before starting.


stopNode

public static void stopNode()
Stops the node (can be run again).


runRepository

public static boolean runRepository(java.lang.String repositoryPort)
Launches the repository.

Returns:
true if the repository has been successfully launched

runGCM

public static boolean runGCM(int port)
Launches the global connector manager.

Returns:
true if the manager has been successfully launched

runDockRegistry

public static boolean runDockRegistry(java.lang.String rmiPort)
Launches the dock registry.

Returns:
true if the registry has been successfully launched