|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.multiplexer.Attachment
org.objectweb.dream.multiplexer.PeriodicAttachment
This class defines a periodic attachment.
Field Summary | |
static String |
END_DATE
The name of the key that must be used to specify the end date of this attachment in the parameters passed to the
PullPushMultiplexer.attach(String[], Map[], String[], Map[], Map) |
protected long |
endDate
|
protected long |
nextDeadline
|
static String |
PULLING_FREQUENCY
The name of the key that must be used to specify the pulling frequency of this attachment in the parameters passed to the
PullPushMultiplexer.attach(String[], Map[], String[], Map[], Map) |
protected long |
pullingFrequencyInMillis
|
static String |
STARTING_DATE
The name of the key that must be used to specify the starting date of this attachment in the parameters passed to the
PullPushMultiplexer.attach(String[], Map[], String[], Map[], Map) |
protected long |
startingDate
|
static String |
TIMESTAMP
The name of the key that must be used in the context of the pull method to specify the time at which the pulling has
been scheduled by the multiplexer. |
Fields inherited from class org.objectweb.dream.multiplexer.Attachment |
id, inputContexts, inputNames, inputs, outputContexts, outputNames, outputs |
Constructor Summary | |
PeriodicAttachment(int id,
String[] inputNames,
Pull[] inputs,
Map[] inputContexts,
String[] outputNames,
Push[] outputs,
Map[] outputContexts,
long startingDate,
long pullingFrequencyInMillis)
Creates a new Attachment object without an end date. |
|
PeriodicAttachment(int id,
String[] inputNames,
Pull[] inputs,
Map[] inputContexts,
String[] outputNames,
Push[] outputs,
Map[] outputContexts,
long startingDate,
long pullingFrequencyInMillis,
long endDate)
Creates a new Attachment object |
Method Summary | |
Object |
clone()
Returns a clone of this attachment. |
long |
getEndDate()
Returns the endDate value. |
long |
getNextDeadline()
Returns the nextDeadline value. |
long |
getStartingDate()
Returns the startingDate value. |
long |
pullingFrequencyInMillis()
Returns the samplingFrequencyInMillis value. |
void |
setEndDate(long endDate)
Sets the endDate value. |
void |
setNextDeadline(long nextDeadline)
Sets the nextDeadline value. |
Methods inherited from class org.objectweb.dream.multiplexer.Attachment |
equals, getId, getInputContexts, getInputNames, getInputs, getOutputContexts, getOutputNames, getOutputs, hashCode, setInputContexts, setInputNames, setInputs, setOutputContexts, setOutputNames, setOutputs |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected long startingDate
protected long pullingFrequencyInMillis
protected long endDate
protected long nextDeadline
public static final String STARTING_DATE
parameters
passed to the
PullPushMultiplexer.attach(String[], Map[], String[], Map[], Map)
public static final String END_DATE
parameters
passed to the
PullPushMultiplexer.attach(String[], Map[], String[], Map[], Map)
public static final String PULLING_FREQUENCY
parameters
passed to the
PullPushMultiplexer.attach(String[], Map[], String[], Map[], Map)
public static final String TIMESTAMP
pull
method to specify the time at which the pulling has
been scheduled by the multiplexer.
Constructor Detail |
public PeriodicAttachment(int id, String[] inputNames, Pull[] inputs, Map[] inputContexts, String[] outputNames, Push[] outputs, Map[] outputContexts, long startingDate, long pullingFrequencyInMillis, long endDate)
Attachment
object
id
- the id of the attachmentinputNames
- the names of the attached inputs.inputs
- the attached inputs.inputContexts
- the contexts to be passed when pulling the inputs.outputNames
- the names of the outputs to wich intputs are attached.outputs
- the outputs to wich intputs are attached.outputContexts
- the contexts to be passed when pushing the outputs.startingDate
- attachment start date.pullingFrequencyInMillis
- time between two pullingendDate
- attachment end datepublic PeriodicAttachment(int id, String[] inputNames, Pull[] inputs, Map[] inputContexts, String[] outputNames, Push[] outputs, Map[] outputContexts, long startingDate, long pullingFrequencyInMillis)
Attachment
object without an end date. It
means that pulling never ends.
id
- the id of the attachmentinputNames
- the names of the attached inputs.inputs
- the attached inputs.inputContexts
- the contexts to be passed when pulling the inputs.outputNames
- the names of the outputs to wich intputs are attached.outputs
- the outputs to wich intputs are attached.outputContexts
- the contexts to be passed when pushing the outputs.startingDate
- attachment start date.pullingFrequencyInMillis
- time between two pullingMethod Detail |
public long getNextDeadline()
public void setNextDeadline(long nextDeadline)
nextDeadline
- the nextDeadline to set.public long getStartingDate()
public long getEndDate()
public void setEndDate(long endDate)
endDate
- the endDate to set.public long pullingFrequencyInMillis()
public Object clone()
clone
in class Attachment
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |