|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
Job
.
See:
Description
Interface Summary | |
---|---|
JobMessage | A JobMessage is the data passed on to a Job for
executing its task. |
Class Summary | |
---|---|
DefaultJobMessage | A simple implementation of JobMessage . |
JobMessages provide reporting data to a Job
.
When a Verifier
needs to call a Job
for execution of a
task, it would use a specialization of JobMessage
to send the
required data to the Job
.
A Job
can choose to accept only specific types of
JobMessage
s at their discretion. This should be
returned by the
getSupportedMessageTypes()
method. The values returned by this method should be compatible the
same as returned by the
getJobMessageType()
methods of the supported JobMessage
class. For a
supported JobMessage
, the Job
s
isMessageTypeSupported(String)
should also return true
when the message type of that
JobMessage
is passed to the Job
.
However, to avoid the scenario where a Verifier
wishing
to call a Job
does not understand or is unable to
create any JobMessage
type understood by the
Job
, all Job
s are required to support
at least the DefaultJobMessage
.
Apart from the data specific to the JobMessage
, an
object of the class also carries some metadata about the
operation that led to its creation and also the execution of the
Job
. This data includes:
The UML diagram below gives the High Level design of
JobMessages
.
Click on any of the classes above to see a detailed documentation of
the class.
com.mindtree.techworks.insight.reporting.verifiers
,
com.mindtree.techworks.insight.reporting.jobs
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |