org.objectweb.dsrg.sofa.deployment
Class DockHelper

java.lang.Object
  extended by org.objectweb.dsrg.sofa.deployment.DockHelper

public class DockHelper
extends java.lang.Object

A helper class for static dock creation


Constructor Summary
DockHelper()
           
 
Method Summary
static DeploymentDock createDeploymentDock(java.lang.String name, java.lang.String host, java.lang.String port)
          Creates a new deployment dock
static DeploymentDock getCurrentDock()
          Gets the current dock (each JVM runs only one)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockHelper

public DockHelper()
Method Detail

createDeploymentDock

public static DeploymentDock createDeploymentDock(java.lang.String name,
                                                  java.lang.String host,
                                                  java.lang.String port)
Creates a new deployment dock

Parameters:
name - The name of the dock
host - Hostname of the machine running the deployment dock registry
port - Port where the deployment dock registry runs
Returns:

getCurrentDock

public static DeploymentDock getCurrentDock()
Gets the current dock (each JVM runs only one)

Returns:
The dock running in the current JVM