|
||||||||||
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 | |
---|---|
void |
close()
Close the replica client. |
ReplicaType |
getType()
For retrieving the type of archive. |
BatchMessage |
sendBatchJob(BatchMessage msg)
Method for sending a batch message and retrieving the results. |
BatchMessage |
sendBatchJob(ChannelID replyChannel,
FileBatchJob job)
Method for sending batch message and retrieving the results. |
void |
sendCorrectMessage(CorrectMessage msg)
For correcting an erroneous entry in the archive. |
void |
sendGetAllChecksumsMessage(GetAllChecksumsMessage msg)
Retrieves the checksum for all the arc files in the replica archive. |
void |
sendGetAllFilenamesMessage(GetAllFilenamesMessage msg)
Retrieves the names of all the arc file in the replica archive. |
GetChecksumMessage |
sendGetChecksumMessage(ChannelID replyChannel,
java.lang.String filename)
Retrieves the checksum for a specific file. |
void |
sendGetChecksumMessage(GetChecksumMessage msg)
Retrieves the checksum for a specific arc file. |
void |
sendGetFileMessage(GetFileMessage msg)
The message for retrieving an entire file from the replica. |
void |
sendGetMessage(GetMessage msg)
The message for retrieving a record from a arc-file in the replica. |
void |
sendRemoveAndGetFileMessage(RemoveAndGetFileMessage msg)
Message for deleting and retrieving a file from a archive. |
void |
sendUploadMessage(RemoteFile rf)
Uploads a file to the replica archive. |
Method Detail |
---|
BatchMessage sendBatchJob(BatchMessage msg)
msg
- The batch message to sent to the replica.
BatchMessage sendBatchJob(ChannelID replyChannel, FileBatchJob job)
replyChannel
- The channel where the reply should be sent.job
- The batchjob to execute on the replica.
void sendGetMessage(GetMessage msg)
msg
- The message for retrieving the record in a arc-file.void sendGetFileMessage(GetFileMessage msg)
msg
- The message for retrieving the file.void sendRemoveAndGetFileMessage(RemoveAndGetFileMessage msg)
msg
- The message for retrieving the file.void sendUploadMessage(RemoteFile rf)
rf
- The remote filevoid sendGetChecksumMessage(GetChecksumMessage msg)
msg
- The GetChecksumMessage to be send to the replica.GetChecksumMessage sendGetChecksumMessage(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 sendGetAllFilenamesMessage(GetAllFilenamesMessage msg)
msg
- The GetAllFilenamesMessage to sent to the replica.void sendGetAllChecksumsMessage(GetAllChecksumsMessage msg)
msg
- The message for retrieving all the checksums.void sendCorrectMessage(CorrectMessage msg)
msg
- The correct message to correct the bad entry in the archive.ReplicaType getType()
void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |