|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.metastatic.rsync.v2.Receiver
The receiver process. The receiver is the one who generates the checksums for the to-be-synched files, and receives the deltas. These two processes (checksum generation and applying deltas) are usually run in parallel -- one thread generates sums for one file while another thread rebuilds another file.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Receiver(MultiplexedInputStream in,
MultiplexedOutputStream out,
Configuration config,
int remoteVersion,
boolean amServer)
Create a new receiver object. |
|
| Method Summary | |
|---|---|
void |
generateFiles(List files)
Generate the checksums for a list of files and send them to the other side. |
Statistics |
getStatistics()
Return the statistics for this session. |
void |
receiveFiles(List files)
Recieve the deltas from the other side, and rebuild the target files. |
void |
setStatistics(Statistics stats)
Set the pre-initialized statistics object fer this session. |
void |
update(GeneratorEvent e)
Update with a single, new checksum pair. |
void |
update(RebuilderEvent e)
Upate this listener with an event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Receiver(MultiplexedInputStream in,
MultiplexedOutputStream out,
Configuration config,
int remoteVersion,
boolean amServer)
in - The input stream from the Sender.out - The output stream to the Sender.config - The configuration to use.amServer - true if this is the server process.| Method Detail |
public Statistics getStatistics()
public void setStatistics(Statistics stats)
stats - The statistics object to use.
public void generateFiles(List files)
throws IOException
files - The files to generate the checksums for.
IOException - If an I/O error occurs.
public void receiveFiles(List files)
throws IOException
files - The list of Files to be received.
IOException - If an I/O error occurs.
public void update(GeneratorEvent e)
throws ListenerException
GeneratorListener
update in interface GeneratorListenere - The event containing the next checksum pair.
ListenerException
public void update(RebuilderEvent e)
throws ListenerException
RebuilderListener
update in interface RebuilderListenere - The event.
ListenerException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||