|
||||||||||
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.checksum.distribute.ChecksumArchiveServer dk.netarkivet.archive.checksum.distribute.ChecksumFileServer
public class ChecksumFileServer
The server for the ChecksumFileApplication. Used for communication between the ArcRepository and the checksum archive.
Field Summary | |
---|---|
static java.lang.String |
APPLICATION_ID_SEPARATOR
The character to separate the applicationInstanceId and the IP address. |
protected ChecksumArchive |
cs
The archive which contain the actual data. |
protected static ChecksumFileServer |
instance
The instance of this server. |
Fields inherited from class dk.netarkivet.archive.checksum.distribute.ChecksumArchiveServer |
---|
checksumAppId, jmsCon, theCR |
Method Summary | |
---|---|
void |
cleanup()
Method for cleaning up, when closing this instance down. |
void |
close()
Method for closing the instance. |
protected java.lang.String |
createAppId()
Method for creating the identification for this application. |
java.lang.String |
getAppId()
Method for retrieving the identification of this application. |
static ChecksumFileServer |
getInstance()
Returns the unique instance of this class. |
void |
visit(CorrectMessage msg)
Method for correcting an entry in the archive. |
void |
visit(GetAllChecksumsMessage msg)
Method for retrieving a map containing all the checksums and their corresponding filenames within the archive. |
void |
visit(GetAllFilenamesMessage msg)
Method for retrieving all the filenames within the archive. |
void |
visit(GetChecksumMessage msg)
Method for retrieving the checksum of a record. |
void |
visit(UploadMessage msg)
The method for uploading arc files. |
Methods inherited from class dk.netarkivet.archive.distribute.ArchiveMessageHandler |
---|
onMessage, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static ChecksumFileServer instance
protected ChecksumArchive cs
public static final java.lang.String APPLICATION_ID_SEPARATOR
Method Detail |
---|
public static ChecksumFileServer getInstance()
public void close()
close
in class ChecksumArchiveServer
public void cleanup()
cleanup
in interface CleanupIF
cleanup
in class ChecksumArchiveServer
public java.lang.String getAppId()
getAppId
in class ChecksumArchiveServer
protected java.lang.String createAppId()
public void visit(UploadMessage msg) throws ArgumentNotValid
visit
in interface ArchiveMessageVisitor
visit
in class ChecksumArchiveServer
msg
- The upload message, containing the file to upload.
ArgumentNotValid
- If the UploadMessage is null.public void visit(CorrectMessage msg) throws ArgumentNotValid
visit
in interface ArchiveMessageVisitor
visit
in class ChecksumArchiveServer
msg
- The message containing the correct instance of the file to
correct.
ArgumentNotValid
- If the correct message is null.public void visit(GetChecksumMessage msg) throws ArgumentNotValid
visit
in interface ArchiveMessageVisitor
visit
in class ChecksumArchiveServer
msg
- The GetChecksumMessage which contains the name of the record
to have its checksum retrieved.
ArgumentNotValid
- If the message is null.public void visit(GetAllFilenamesMessage msg) throws ArgumentNotValid
visit
in interface ArchiveMessageVisitor
visit
in class ChecksumArchiveServer
msg
- The GetAllFilenamesMessage.
ArgumentNotValid
- If the GetAllFilenamesMessages is null.public void visit(GetAllChecksumsMessage msg) throws ArgumentNotValid
visit
in interface ArchiveMessageVisitor
visit
in class ChecksumArchiveServer
msg
- The GetAllChecksumMessage.
ArgumentNotValid
- If the GetAllChecksumMessage is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |