public class PeerBean extends Object
ConnectionBean.| Constructor and Description |
|---|
PeerBean(KeyPair keyPair)
Creates a bean with a key pair.
|
public PeerBean(KeyPair keyPair)
keyPair - The key pair that holds private public keypublic KeyPair keyPair()
public PeerAddress serverPeerAddress()
public PeerBean serverPeerAddress(PeerAddress serverPeerAddress)
serverPeerAddress - The new address of this peer.public KeyPair getKeyPair()
public PeerBean keyPair(KeyPair keyPair)
keyPair - The public and private keypublic PeerMap peerMap()
public PeerBean peerMap(PeerMap peerMap)
peerMap - The peermap that stores neighborspublic PeerStatusListener[] peerStatusListeners()
public PeerBean peerStatusListeners(PeerStatusListener[] peerStatusListeners)
peerStatusListeners - The listeners that are interested in the peer status, e.g., peer is found to be online, or a peer is
offline or failed to respond in timepublic PeerBean storage(StorageLayer storage)
storage - The storage where the key value pairs are storedpublic StorageLayer storage()
public PeerBean replicationStorage(Replication replicationStorage)
replicationStorage - The replication used for storagepublic Replication replicationStorage()
public PeerBean replicationTracker(Replication replicationTracker)
public Replication getReplicationTracker()
public PeerBean trackerStorage(TrackerStorage trackerStorage)
public TrackerStorage trackerStorage()
public PeerBean bloomfilterFactory(BloomfilterFactory bloomfilterFactory)
public BloomfilterFactory bloomfilterFactory()
public PeerBean maintenanceTask(MaintenanceTask maintenanceTask)
public MaintenanceTask maintenanceTask()
public ReplicationExecutor replicationExecutor()
public PeerBean replicationExecutor(ReplicationExecutor replicationExecutor)
Copyright © 2014. All rights reserved.