|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.archive.distribute.ArchiveMessageHandler dk.netarkivet.archive.arcrepository.distribute.ArcRepositoryServer
public class ArcRepositoryServer
Listens on the queue "TheArcrepos" and submits the messages to a corresponding visit method on BitarchiveClient.
Constructor Summary | |
---|---|
ArcRepositoryServer(ArcRepository ar)
Creates and adds a ArcRepositoryMessageHandler as listener on the "TheArcrepos"-queue. |
Method Summary | |
---|---|
void |
close()
Removes the ArcRepositoryMessageHandler as listener. |
void |
visit(AdminDataMessage msg)
Update the admin data in the arcrepository. |
void |
visit(BatchMessage msg)
Resends a batch message to the requested bitarchive. |
void |
visit(BatchReplyMessage msg)
Forwards the handling of batch replies to the arc repository. |
void |
visit(CorrectMessage msg)
Method for handling CorrectMessages. |
void |
visit(GetAllChecksumsMessage msg)
Method for retrieving all the checksums from a replica. |
void |
visit(GetAllFilenamesMessage msg)
For retrieving all the filenames from a replica. |
void |
visit(GetChecksumMessage msg)
Method for handling the results of a GetChecksumMessage. |
void |
visit(GetFileMessage msg)
Forwards a getfile message to requested bitarchive replica. |
void |
visit(GetMessage msg)
Forwards a get message to the local bitarchive. |
void |
visit(RemoveAndGetFileMessage msg)
Request a file to be deleted from bitarchives. |
void |
visit(StoreMessage msg)
Forwards the call to the ArcRepository.store() method with the StoreMessage as parameter. |
void |
visit(UploadMessage msg)
Forwards the handling of upload replies to the arc repository. |
Methods inherited from class dk.netarkivet.archive.distribute.ArchiveMessageHandler |
---|
onMessage, visit, visit, visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArcRepositoryServer(ArcRepository ar)
ar
- the ArcRepositoryMethod Detail |
---|
public void visit(StoreMessage msg)
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- the message to be processed by the store command.public void visit(RemoveAndGetFileMessage msg)
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- the message to be processedpublic void visit(AdminDataMessage msg)
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- the message to be processedpublic void visit(UploadMessage msg) throws ArgumentNotValid
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- a UploadMessage
ArgumentNotValid
- If the message is null.public void visit(BatchReplyMessage msg) throws ArgumentNotValid
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- a BatchReplyMessage
ArgumentNotValid
- If the message is null.public void visit(BatchMessage msg) throws ArgumentNotValid
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- the batch message to be resend.
ArgumentNotValid
- if parameters are nullpublic void visit(GetMessage msg) throws ArgumentNotValid
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- the message to be processed by the get command.
ArgumentNotValid
- If the message is null.public void visit(GetFileMessage msg) throws ArgumentNotValid
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- the message to be processed by the get command.
ArgumentNotValid
- If one of the arguments are null.public void visit(GetAllFilenamesMessage msg) throws ArgumentNotValid
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- The message to be processed.
ArgumentNotValid
- If the argument is null.public void visit(GetAllChecksumsMessage msg) throws ArgumentNotValid
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- The GetAllChecksumsMessage.
ArgumentNotValid
- If the GetAllChecksumsMessage is null.public void visit(GetChecksumMessage msg)
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- The GetChecksumMessage message.public void visit(CorrectMessage msg) throws ArgumentNotValid
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- The message for correcting a bad entry in an archive.
ArgumentNotValid
- If the CorrectMessage is null.public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |