|
||||||||||
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.bitarchive.distribute.BitarchiveServer
public class BitarchiveServer
Bitarchive container responsible for processing the different classes of message which can be received by a bitarchive and returning appropriate data.
Method Summary | |
---|---|
void |
cleanup()
Ends the heartbeat sender before next loop. |
void |
close()
Ends the heartbeat sender before next loop and removes the server as listener on allBa and anyBa. |
java.lang.String |
getBitarchiveAppId()
Returns a String that identifies this bit archive application (within the bit archive, i.e. |
static BitarchiveServer |
getInstance()
Returns the unique instance of this class The server creates an instance of the bitarchive it provides access to and starts to listen to JMS messages on the incomming jms queue Also, heartbeats are sent out at regular intervals to the Bitarchive Monitor, to tell that this bitarchive is alive. |
void |
visit(BatchMessage msg)
Process a batch job and send the result back to the client. |
void |
visit(GetFileMessage msg)
Process a getFile request and send the result back to the client. |
void |
visit(GetMessage msg)
Process a get request and send the result back to the client. |
void |
visit(RemoveAndGetFileMessage msg)
Removes an arcfile from the bitarchive and returns the removed file as an remotefile. |
void |
visit(UploadMessage msg)
Process a upload request and send the result back to the client. |
Methods inherited from class dk.netarkivet.archive.distribute.ArchiveMessageHandler |
---|
onMessage, visit, visit, visit, visit, visit, visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static BitarchiveServer getInstance()
UnknownID
- - if there was no heartbeat frequency defined in
settings
ArgumentNotValid
- - if the heartbeat frequency in settings is
invalid or either argument is nullpublic void close()
public void cleanup()
cleanup
in interface CleanupIF
public void visit(GetMessage msg)
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- a container for upload requestpublic void visit(UploadMessage msg)
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- a container for upload requestpublic void visit(RemoveAndGetFileMessage msg)
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- a container for remove requestpublic void visit(BatchMessage msg)
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- a container for batch jobspublic void visit(GetFileMessage msg)
visit
in interface ArchiveMessageVisitor
visit
in class ArchiveMessageHandler
msg
- a container for a getfile requestpublic java.lang.String getBitarchiveAppId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |