|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.distribute.NetarkivetMessage dk.netarkivet.archive.distribute.ArchiveMessage dk.netarkivet.archive.bitarchive.distribute.BatchMessage
public class BatchMessage
Container for batch jobs. Messages of this class should be sent to a BAMON queue from where they are collected by a BitarchiveMonitorServer. The BitarchiveMonitorServer also creates instances of this class and sends them to the individual bitarchive machines. The response to this message comes in the form of a BatchReplyMessage placed on the senders queue.
Field Summary |
---|
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage |
---|
replyOfId |
Constructor Summary | |
---|---|
BatchMessage(ChannelID to,
ChannelID replyTo,
FileBatchJob job,
java.lang.String replicaId,
java.lang.String... arguments)
Creates a BatchMessage object which can be used to initiate a batch job. |
|
BatchMessage(ChannelID to,
ChannelID replyTo,
FileBatchJob job,
java.lang.String replicaId,
java.lang.String batchId,
java.lang.String... arguments)
Creates a BatchMessage object which can be used to initiate a batch job. |
|
BatchMessage(ChannelID to,
FileBatchJob job,
java.lang.String replicaId)
Creates a BatchMessage object which can be used to initiate a batch job. |
Method Summary | |
---|---|
void |
accept(ArchiveMessageVisitor v)
Should be implemented as a part of the visitor pattern. |
java.util.List<java.lang.String> |
getArgs()
Returns the arguments for the batchjob. |
java.lang.String |
getBatchID()
Returns the predefined ID for the batch process. |
FileBatchJob |
getJob()
Retrieves batch job. |
java.lang.String |
getReplicaId()
Returns the replica id. |
java.lang.String |
toString()
Retrieval of a string representation of this object. |
Methods inherited from class dk.netarkivet.common.distribute.NetarkivetMessage |
---|
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BatchMessage(ChannelID to, FileBatchJob job, java.lang.String replicaId)
to
- The channel to which the batch message is to be sentjob
- The batch job to be executedreplicaId
- id of this replica.public BatchMessage(ChannelID to, ChannelID replyTo, FileBatchJob job, java.lang.String replicaId, java.lang.String... arguments)
to
- The channel to which the batch message is to be sentreplyTo
- The channel whereto the reply to this message is sent.job
- The batch job to be executedreplicaId
- id of this replica.arguments
- The arguments for initialising the batchjob.
ArgumentNotValid
- If the job is null, or the replica is either
null or the empty string.public BatchMessage(ChannelID to, ChannelID replyTo, FileBatchJob job, java.lang.String replicaId, java.lang.String batchId, java.lang.String... arguments) throws ArgumentNotValid
to
- The channel to which the batch message is to be sentreplyTo
- The channel whereto the reply to this message is sent.job
- The batch job to be executedreplicaId
- id of this replica.batchId
- The id for the process which runs the batchjob.arguments
- The arguments for initialising the batchjob. This is
allowed to be null.
ArgumentNotValid
- If the job is null, or the replica is either
null or the empty string.Method Detail |
---|
public FileBatchJob getJob()
public java.lang.String getReplicaId()
public java.util.List<java.lang.String> getArgs()
public java.lang.String getBatchID()
public void accept(ArchiveMessageVisitor v)
accept
in class ArchiveMessage
v
- A message visitorArchiveMessageVisitor
public java.lang.String toString()
toString
in class NetarkivetMessage
NetarkivetMessage.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |