Package org.ow2.clif.server.lib
Class BladeInsertAdapterImpl
- java.lang.Object
-
- org.ow2.clif.server.lib.BladeInsertAdapterImpl
-
- All Implemented Interfaces:
java.lang.Runnable,org.objectweb.fractal.api.control.BindingController,ActivityControl,BladeControl,BladeInsertResponse
public class BladeInsertAdapterImpl extends java.lang.Object implements BladeControl, BladeInsertResponse, org.objectweb.fractal.api.control.BindingController, java.lang.Runnable
Implementation of a Blade Insert Adapter component (kind of an asynchronous wrapper to the Blade Insert component).- Author:
- Julien Buret, Nicolas Droze, Bruno Dillenseger
-
-
Field Summary
-
Fields inherited from interface org.ow2.clif.server.api.BladeControl
BLADE_CONTROL, BLADE_INSERT_CONTROL
-
Fields inherited from interface org.ow2.clif.server.api.BladeInsertResponse
BLADE_INSERT_RESPONSE
-
-
Constructor Summary
Constructors Constructor Description BladeInsertAdapterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaborted()Informs that the scenario stopped before completionvoidalarm(AlarmEvent alarm)Triggers an alarm eventvoidbindFc(java.lang.String clientItfName, java.lang.Object serverItf)voidchangeParameter(java.lang.String parameter, java.io.Serializable value)asynchronously changes a parameter of the bladevoidcompleted()Informs that the scenario has successfully completedvoiddo_init()protected voiddo_resume()voiddo_start()protected voiddo_stop(boolean initialized)protected voiddo_suspend()java.util.Map<java.lang.String,java.io.Serializable>getCurrentParameters()asynchronously gets parameters of the bladejava.lang.StringgetId()voidinit(java.io.Serializable testId)asynchronously initialize the bladevoidjoin()Waits for the end of the activityjava.lang.String[]listFc()java.lang.ObjectlookupFc(java.lang.String clientItfName)voidresume()asynchronously resumes the bladevoidrun()handles asynchronous calls on control operations, enforcing mutual exclusionvoidsetArgument(java.lang.String argument)Sets blade argument.voidsetId(java.lang.String id)Sets the blade identifier.voidstart()asynchronously starts the bladevoidstop()asynchronously stops the bladevoidsuspend()asynchronously suspends the bladevoidunbindFc(java.lang.String clientItfName)
-
-
-
Method Detail
-
run
public void run()
handles asynchronous calls on control operations, enforcing mutual exclusion- Specified by:
runin interfacejava.lang.Runnable
-
lookupFc
public java.lang.Object lookupFc(java.lang.String clientItfName)
- Specified by:
lookupFcin interfaceorg.objectweb.fractal.api.control.BindingController
-
bindFc
public void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)- Specified by:
bindFcin interfaceorg.objectweb.fractal.api.control.BindingController
-
unbindFc
public void unbindFc(java.lang.String clientItfName)
- Specified by:
unbindFcin interfaceorg.objectweb.fractal.api.control.BindingController
-
listFc
public java.lang.String[] listFc()
- Specified by:
listFcin interfaceorg.objectweb.fractal.api.control.BindingController
-
setArgument
public void setArgument(java.lang.String argument) throws ClifExceptionSets blade argument.- Specified by:
setArgumentin interfaceBladeControl- Throws:
ClifException
-
setId
public void setId(java.lang.String id)
Sets the blade identifier.- Specified by:
setIdin interfaceBladeControl
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceBladeControl- Returns:
- the blade identifier
-
init
public void init(java.io.Serializable testId)
asynchronously initialize the blade- Specified by:
initin interfaceActivityControl- Parameters:
testId- should contain a unique test identifier
-
do_init
public void do_init()
-
start
public void start()
asynchronously starts the blade- Specified by:
startin interfaceActivityControl
-
do_start
public void do_start()
-
stop
public void stop()
asynchronously stops the blade- Specified by:
stopin interfaceActivityControl
-
do_stop
protected void do_stop(boolean initialized)
-
suspend
public void suspend()
asynchronously suspends the blade- Specified by:
suspendin interfaceActivityControl
-
do_suspend
protected void do_suspend()
-
resume
public void resume()
asynchronously resumes the blade- Specified by:
resumein interfaceActivityControl
-
do_resume
protected void do_resume()
-
join
public void join()
Waits for the end of the activity- Specified by:
joinin interfaceActivityControl
-
changeParameter
public void changeParameter(java.lang.String parameter, java.io.Serializable value) throws ClifExceptionasynchronously changes a parameter of the blade- Specified by:
changeParameterin interfaceBladeControl- Throws:
ClifException
-
getCurrentParameters
public java.util.Map<java.lang.String,java.io.Serializable> getCurrentParameters()
asynchronously gets parameters of the blade- Specified by:
getCurrentParametersin interfaceBladeControl
-
aborted
public void aborted()
Description copied from interface:BladeInsertResponseInforms that the scenario stopped before completion- Specified by:
abortedin interfaceBladeInsertResponse
-
completed
public void completed()
Description copied from interface:BladeInsertResponseInforms that the scenario has successfully completed- Specified by:
completedin interfaceBladeInsertResponse
-
alarm
public void alarm(AlarmEvent alarm)
Description copied from interface:BladeInsertResponseTriggers an alarm event- Specified by:
alarmin interfaceBladeInsertResponse
-
-