|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReplicaClient
Interface for the replica clients. To be used by the BitarchiveClient and the ChecksumClient.
Method Summary | |
---|---|
BatchMessage |
batch(BatchMessage msg)
Method for sending a batch message and retrieving the results. |
BatchMessage |
batch(ChannelID replyChannel,
FileBatchJob job)
Method for sending batch message and retrieving the results. |
void |
close()
Close the replica client. |
void |
correct(RemoteFile arcfile,
java.lang.String checksum)
For correcting a erroneous file in the archive. |
void |
get(GetMessage msg)
The message for retrieving a record from a arc-file in the replica. |
void |
getAllChecksums(GetAllChecksumsMessage msg)
Retrieves the checksum for all the arc files in the replica archive. |
void |
getAllFilenames(GetAllFilenamesMessage msg)
Retrieves the names of all the arc file in the replica archive. |
GetChecksumMessage |
getChecksum(ChannelID replyChannel,
java.lang.String filename)
Retrieves the checksum for a specific file. |
void |
getChecksum(GetChecksumMessage msg)
Retrieves the checksum for a specific arc file. |
void |
getFile(GetFileMessage msg)
The message for retrieving an entire file from the replica. |
ReplicaType |
getType()
For retrieving the type of archive. |
void |
removeAndGetFile(RemoveAndGetFileMessage msg)
Message for deleting and retrieving a file from a archive. |
void |
upload(RemoteFile rf)
Uploads a file to the replica archive. |
Method Detail |
---|
BatchMessage batch(BatchMessage msg)
msg
- The batch message to sent to the replica.
BatchMessage batch(ChannelID replyChannel, FileBatchJob job)
replyChannel
- The channel where the reply should be sent.job
- The batchjob to execute on the replica.
void get(GetMessage msg)
msg
- The message for retrieving the record in a arc-file.void getFile(GetFileMessage msg)
msg
- The message for retrieving the file.void removeAndGetFile(RemoveAndGetFileMessage msg)
msg
- The message for retrieving the file.void upload(RemoteFile rf)
rf
- The remote filevoid getChecksum(GetChecksumMessage msg)
arcName
- The name of the arcfile.GetChecksumMessage getChecksum(ChannelID replyChannel, java.lang.String filename)
replyChannel
- The channel where the reply should be sent.filename
- The name of the file to retrieve the checksum from.
void getAllFilenames(GetAllFilenamesMessage msg)
void getAllChecksums(GetAllChecksumsMessage msg)
ReplicaType getType()
void correct(RemoteFile arcfile, java.lang.String checksum)
arcfile
- The file which is to replace the wrong file within the
archive.void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |