public class SynchroBladeInsert extends SynchronizerImpl implements org.objectweb.fractal.api.control.BindingController, BladeControl, java.lang.Runnable
BLADE_CONTROL, BLADE_INSERT_CONTROL
SYNCHRONIZER
Constructor and Description |
---|
SynchroBladeInsert() |
Modifier and Type | Method and Description |
---|---|
void |
bindFc(java.lang.String clientItfName,
java.lang.Object serverItf) |
void |
changeParameter(java.lang.String parameter,
java.io.Serializable value)
Sets the parameter
parameter of this blade with the value
value . |
java.util.Map<java.lang.String,java.io.Serializable> |
getCurrentParameters()
Returns a
Map which maps the defined parameters to their values. |
java.lang.String |
getId() |
void |
init(java.io.Serializable testId)
Initialize the activity
|
void |
join()
Waits until the end of the activity
|
java.lang.String[] |
listFc() |
java.lang.Object |
lookupFc(java.lang.String itfName) |
protected void |
newLock(java.lang.String lockName)
Raise an alarm on each first lock notify
|
void |
resume()
Resume the activity (if suspended)
|
void |
run()
Timer to manage the execution duration.
|
void |
setArgument(java.lang.String argument)
Binds this Insert component in the CLIF/Fractal registry
using the provided domain name.
|
void |
setId(java.lang.String id)
Sets a unique identifier string to this blade
|
void |
start()
Initial start of the activity
|
void |
stop()
Final stop of the activity
|
void |
suspend()
Suspend the activity
|
void |
unbindFc(java.lang.String clientItfName) |
clear, getCount, getRendezVous, notify, reset, setRendezVous, toString, wait, wait, wait, wasNotified, wasNotified
public void changeParameter(java.lang.String parameter, java.io.Serializable value)
BladeControl
parameter
of this blade with the value
value
.
This method allows to change parameters independently of the activity of
the blade. However, some parameters can depend on the state of the blade.changeParameter
in interface BladeControl
public java.util.Map<java.lang.String,java.io.Serializable> getCurrentParameters()
BladeControl
Map
which maps the defined parameters to their values.getCurrentParameters
in interface BladeControl
public java.lang.String getId()
getId
in interface BladeControl
public void setArgument(java.lang.String argument) throws ClifException
setArgument
in interface BladeControl
argument
- the synchronization domain name.ClifException
public void setId(java.lang.String id)
BladeControl
setId
in interface BladeControl
public void init(java.io.Serializable testId)
ActivityControl
init
in interface ActivityControl
testId
- an arbitrary initialization namepublic void start()
ActivityControl
start
in interface ActivityControl
public void stop()
ActivityControl
stop
in interface ActivityControl
public void suspend()
ActivityControl
suspend
in interface ActivityControl
public void resume()
ActivityControl
resume
in interface ActivityControl
public void join()
ActivityControl
join
in interface ActivityControl
public void bindFc(java.lang.String clientItfName, java.lang.Object serverItf) throws org.objectweb.fractal.api.NoSuchInterfaceException, org.objectweb.fractal.api.control.IllegalBindingException, org.objectweb.fractal.api.control.IllegalLifeCycleException
bindFc
in interface org.objectweb.fractal.api.control.BindingController
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalBindingException
org.objectweb.fractal.api.control.IllegalLifeCycleException
public java.lang.String[] listFc()
listFc
in interface org.objectweb.fractal.api.control.BindingController
public java.lang.Object lookupFc(java.lang.String itfName) throws org.objectweb.fractal.api.NoSuchInterfaceException
lookupFc
in interface org.objectweb.fractal.api.control.BindingController
org.objectweb.fractal.api.NoSuchInterfaceException
public void unbindFc(java.lang.String clientItfName) throws org.objectweb.fractal.api.NoSuchInterfaceException, org.objectweb.fractal.api.control.IllegalBindingException, org.objectweb.fractal.api.control.IllegalLifeCycleException
unbindFc
in interface org.objectweb.fractal.api.control.BindingController
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalBindingException
org.objectweb.fractal.api.control.IllegalLifeCycleException
public void run()
run
in interface java.lang.Runnable
protected void newLock(java.lang.String lockName)
newLock
in class SynchronizerImpl
lockName
- the name of the new lock