public class PeerSync extends Object implements ReplicationSender
| Constructor and Description |
|---|
PeerSync(PeerDHT peer) |
PeerSync(PeerDHT peer,
int blockSize) |
PeerSync(PeerDHT peer,
ReplicationListener replicationListener,
int blockSize)
Create a PeerSync class and register the RPC.
|
| Modifier and Type | Method and Description |
|---|---|
PeerDHT |
peerDHT() |
FutureDone<SyncStat> |
sendDirect(PeerAddress other,
Number160 locationKey,
Map<Number640,Data> dataMap) |
SyncBuilder |
synchronize(PeerAddress other) |
SyncRPC |
syncRPC() |
public PeerSync(PeerDHT peer)
public PeerSync(PeerDHT peer, int blockSize)
public PeerSync(PeerDHT peer, ReplicationListener replicationListener, int blockSize)
ReplicationSync, than use the PeerSync that was created in that
class.peer - The peerblockSize - The block size as the basis for the checksums, RSync uses a
default of 700public PeerDHT peerDHT()
public SyncRPC syncRPC()
public SyncBuilder synchronize(PeerAddress other)
public FutureDone<SyncStat> sendDirect(PeerAddress other, Number160 locationKey, Map<Number640,Data> dataMap)
sendDirect in interface ReplicationSenderCopyright © 2014. All rights reserved.