|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.netarkivet.common.distribute.NetarkivetMessage
dk.netarkivet.archive.distribute.ArchiveMessage
dk.netarkivet.archive.bitarchive.distribute.GetMessage
public class GetMessage
Container for get requests.
Field Summary | |
---|---|
(package private) BitarchiveRecord |
record
the retrieved record. |
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage |
---|
replyOfId |
Constructor Summary | |
---|---|
GetMessage(ChannelID to,
ChannelID replyTo,
java.lang.String arcfile,
long index)
|
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()
Returns a string containing: |
Methods inherited from class dk.netarkivet.common.distribute.NetarkivetMessage |
---|
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, isOk, setNotOk, setNotOk |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
BitarchiveRecord record
Constructor Detail |
---|
public GetMessage(ChannelID to, ChannelID replyTo, java.lang.String arcfile, long index)
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()
NetarkivetMessage
toString
in class NetarkivetMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |