org.ow2.clif.deploy
Class BladeDeploy

java.lang.Object
  extended by java.lang.Thread
      extended by org.ow2.clif.deploy.BladeDeploy
All Implemented Interfaces:
java.lang.Runnable

public class BladeDeploy
extends java.lang.Thread

Asynchronously and remotely instantiates a Blade component in a CLIF server.

Author:
Bruno Dillenseger

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  java.lang.String adlFilename
           
protected  java.util.Map<java.lang.String,java.lang.String> adlParameters
           
protected  java.lang.String argument
           
protected  org.objectweb.fractal.api.Component bladeComp
           
protected  org.objectweb.fractal.api.Component clifApp
           
protected  ClifException exception
           
protected  java.lang.String id
           
protected  ClifServerControl server
           
protected  boolean terminated
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BladeDeploy(org.objectweb.fractal.api.Component clifApp, java.lang.String adlFilename, java.util.Map<java.lang.String,java.lang.String> adlParameters, ClifServerControl server, java.lang.String id)
          Defines a new Blade Component deployment.
 
Method Summary
 org.objectweb.fractal.api.Component get()
          Gets the blade component (the call is blocked waiting for the blade to be actually deployed)
 void run()
          Actually performs the blade deployment.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

clifApp

protected org.objectweb.fractal.api.Component clifApp

server

protected ClifServerControl server

id

protected java.lang.String id

adlFilename

protected java.lang.String adlFilename

adlParameters

protected java.util.Map<java.lang.String,java.lang.String> adlParameters

argument

protected java.lang.String argument

bladeComp

protected org.objectweb.fractal.api.Component bladeComp

exception

protected ClifException exception

terminated

protected boolean terminated
Constructor Detail

BladeDeploy

public BladeDeploy(org.objectweb.fractal.api.Component clifApp,
                   java.lang.String adlFilename,
                   java.util.Map<java.lang.String,java.lang.String> adlParameters,
                   ClifServerControl server,
                   java.lang.String id)
Defines a new Blade Component deployment.

Parameters:
clifApp - the Clif application distributed component where this blade will be added
adlFilename - ADL definition of a BladeType compliant component
adlParameters - parameters for ADL definition (if any)
server - the controller of the CLIF server where to deploy the blade
id - the blade identifier
Method Detail

run

public void run()
Actually performs the blade deployment.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

get

public org.objectweb.fractal.api.Component get()
                                        throws ClifException
Gets the blade component (the call is blocked waiting for the blade to be actually deployed)

Returns:
the blade component reference
Throws:
ClifException