|
||||||||||
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.GetMessage
public class GetMessage
Container for get requests.
Field Summary |
---|
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage |
---|
replyOfId |
Constructor Summary | |
---|---|
GetMessage(ChannelID to,
ChannelID replyTo,
java.lang.String arcfile,
long index)
Constructor. |
Method Summary | |
---|---|
void |
accept(ArchiveMessageVisitor v)
Should be implemented as a part of the visitor pattern. |
java.lang.String |
getArcFile()
Get name of the arc file. |
long |
getIndex()
Index of the record to retrieve. |
BitarchiveRecord |
getRecord()
Get the data retrieved from the arcfile. |
void |
setRecord(BitarchiveRecord rec)
Register retrieved record. |
java.lang.String |
toString()
Retrieval of a string representation of this instance. |
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 GetMessage(ChannelID to, ChannelID replyTo, java.lang.String arcfile, long index)
to
- Where the message should be sent.replyTo
- where the reply of this message should be sent.arcfile
- The name of the file to retrieve a arc-record from.index
- The offset of the arc-file.Method Detail |
---|
public java.lang.String getArcFile()
public long getIndex()
public void setRecord(BitarchiveRecord rec)
rec
- Record retrieved from arcfile at offset indexpublic BitarchiveRecord getRecord()
public void accept(ArchiveMessageVisitor v)
accept
in class ArchiveMessage
v
- A message visitorArchiveMessageVisitor
public java.lang.String toString()
toString
in class NetarkivetMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |