org.objectweb.dsrg.sofa.deployment
Class ComponentHandle

java.lang.Object
  extended by org.objectweb.dsrg.sofa.deployment.ComponentHandle
All Implemented Interfaces:
java.io.Serializable

public class ComponentHandle
extends java.lang.Object
implements java.io.Serializable

Remote reference to component instance. Consists of two parts - deployment dock reference and component instance unique ID per dock.

See Also:
Serialized Form

Constructor Summary
ComponentHandle(DeploymentDock dock, java.lang.String id, java.lang.String componentName)
          Creates new component instance reference.
 
Method Summary
 java.lang.String getComponentId()
          Get component instance unique ID.
 java.lang.String getComponentName()
          Returns name of the component architecture.
 DeploymentDock getDock()
          Get remote reference to deployment dock where component instance lives.
 void start()
          Start the component.
 void stop(boolean remove)
          Stops the component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentHandle

public ComponentHandle(DeploymentDock dock,
                       java.lang.String id,
                       java.lang.String componentName)
Creates new component instance reference.

Parameters:
dock - Dock where component instance lives.
id - ID of the component instance.
Method Detail

getComponentId

public java.lang.String getComponentId()
Get component instance unique ID.

Returns:
Returns ID.

getDock

public DeploymentDock getDock()
Get remote reference to deployment dock where component instance lives.

Returns:
Dock reference.

getComponentName

public java.lang.String getComponentName()
Returns name of the component architecture.

Returns:
name of the component architecture

start

public void start()
           throws java.rmi.RemoteException
Start the component. (Only glue to DeploymentDock.startComponent()).

Throws:
java.rmi.RemoteException

stop

public void stop(boolean remove)
          throws java.rmi.RemoteException
Stops the component. (Only glue to Deploymentdock.stopComponent()).

Parameters:
remove - True if the component should be removed from the list
Throws:
java.rmi.RemoteException