|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.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(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)
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- a UploadMessagepublic void visit(BatchReplyMessage msg)
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- a BatchReplyMessagepublic void visit(BatchMessage msg)
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- the batch message to be resend
ArgumentNotValid
- if parameters are nullpublic void visit(GetMessage msg)
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- the message to be processed by the get command.public void visit(GetFileMessage msg)
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 close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |