public class BladeDeploy extends Future
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
argument |
protected java.util.Collection<java.util.Map.Entry<java.lang.String,ClifDeployDefinition>> |
bladeDefs |
protected org.objectweb.fractal.api.Component |
serverComp |
protected java.lang.String |
serverName |
protected org.objectweb.fractal.api.Interface |
supervisorInfo |
Constructor and Description |
---|
BladeDeploy(java.lang.String serverName,
org.objectweb.fractal.api.Component serverComp,
java.util.Collection<java.util.Map.Entry<java.lang.String,ClifDeployDefinition>> definitions,
java.lang.Object lock)
Creates a thread dedicated to deploying a collection of blades
in a given CLIF server.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
futureExecution()
Actually performs the blades deployment.
|
java.util.Map<java.lang.String,java.lang.Object> |
get()
Gets the blade components (the call is blocked waiting for the blades to be
actually deployed)
|
java.util.Collection<java.util.Map.Entry<java.lang.String,ClifDeployDefinition>> |
getDefinitions()
Gets the collection of blade definitions this instance is supposed to deploy.
|
futureGet, isComplete, run
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
protected org.objectweb.fractal.api.Interface supervisorInfo
protected org.objectweb.fractal.api.Component serverComp
protected java.lang.String serverName
protected java.lang.String argument
protected java.util.Collection<java.util.Map.Entry<java.lang.String,ClifDeployDefinition>> bladeDefs
public BladeDeploy(java.lang.String serverName, org.objectweb.fractal.api.Component serverComp, java.util.Collection<java.util.Map.Entry<java.lang.String,ClifDeployDefinition>> definitions, java.lang.Object lock)
serverComp
- the target Clif server componentserverName
- the name of the target Clif serverdefinitions
- the collection of blade deployment definitionslock
- a lock object that will be notified once deployment process is complete.
May be null if this synchronization feature is not wanted.get()
public java.lang.Object futureExecution() throws java.lang.Exception
futureExecution
in class Future
java.lang.Exception
- the task could not complete.public java.util.Map<java.lang.String,java.lang.Object> get() throws java.lang.Exception
java.lang.Exception
public java.util.Collection<java.util.Map.Entry<java.lang.String,ClifDeployDefinition>> getDefinitions()