| Package | Description |
|---|---|
| net.tomp2p.connection | |
| net.tomp2p.futures | |
| net.tomp2p.message | |
| net.tomp2p.p2p | |
| net.tomp2p.p2p.builder | |
| net.tomp2p.peers | |
| net.tomp2p.rpc | |
| net.tomp2p.storage |
| Modifier and Type | Method and Description |
|---|---|
PeerAddress |
PeerConnection.remotePeer() |
PeerAddress |
PeerBean.serverPeerAddress() |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
RelaySender.createSocketTCP(PeerAddress peerAddress) |
InetSocketAddress |
RelaySender.createSocketUPD(PeerAddress peerAddress) |
PeerBean |
PeerBean.serverPeerAddress(PeerAddress serverPeerAddress) |
| Constructor and Description |
|---|
PeerConnection(PeerAddress remotePeer,
ChannelCreator cc,
int heartBeatMillis)
If we don't have an open TCP connection, we first need a channel creator to open a channel.
|
PeerConnection(PeerAddress remotePeer,
io.netty.channel.ChannelFuture channelFuture,
int heartBeatMillis)
If we already have an open TCP connection, we don't need a channel creator
|
| Modifier and Type | Method and Description |
|---|---|
PeerAddress |
FutureDiscover.getPeerAddress()
The peerAddress where we are reachable.
|
PeerAddress |
FutureAsyncTask.getRemotePeer() |
PeerAddress |
FutureDiscover.getReporter() |
PeerAddress |
FuturePeerConnection.remotePeer() |
| Modifier and Type | Method and Description |
|---|---|
Collection<PeerAddress> |
FutureBootstrap.getBootstrapTo()
Returns the Peers we bootstrapped in no particular order.
|
Collection<PeerAddress> |
FutureWrappedBootstrap.getBootstrapTo()
Returns a list of of peers that were involved in the bootstrapping.
|
NavigableSet<PeerAddress> |
FutureRouting.getDirectHits()
The direct hits set contains those peers that reported to have the key
(Number160) we were looking for.
|
SortedMap<PeerAddress,DigestInfo> |
FutureRouting.getDirectHitsDigest()
The direct hits map contains those peers that reported to have the key
(Number160) we were looking for including its digest (size of the result
set and its xored hashes).
|
Set<PeerAddress> |
FutureTracker.getDirectTrackers() |
Set<PeerAddress> |
FutureTracker.getPeersOnTracker() |
NavigableSet<PeerAddress> |
FutureRouting.getPotentialHits()
The potential hits set contains those peers that are in the direct hit
and that did report to *not* have the key (Number160) we were looking
for.
|
Set<PeerAddress> |
FutureTracker.getPotentialTrackers() |
Map<PeerAddress,Map<Number640,Data>> |
FutureGet.getRawData()
Returns the raw data from the get operation.
|
Map<PeerAddress,Map<Number640,Data>> |
FutureRemove.getRawData()
Returns the raw data from the get operation.
|
Map<PeerAddress,Map<Number160,Data>> |
FutureTask.getRawDataMap() |
Map<PeerAddress,DigestResult> |
FutureDigest.getRawDigest() |
Map<PeerAddress,io.netty.buffer.ByteBuf> |
FutureSend.getRawDirectData1()
Return raw data from send_dircet (Netty buffer).
|
Map<PeerAddress,Object> |
FutureSend.getRawDirectData2()
Return raw data from send_dircet (Object).
|
Map<PeerAddress,Map<Number640,Byte>> |
FutureRemove.getRawKeys()
Returns the raw keys from the storage or removal operation.
|
Map<PeerAddress,TrackerData> |
FutureTracker.getRawPeersOnTracker() |
Map<PeerAddress,Map<Number640,Byte>> |
FuturePut.getRawResult()
Returns the raw result from the storage or removal operation.
|
SortedSet<PeerAddress> |
FutureRouting.getRoutingPath()
Returns the peers that have been asked to provide neighbor information.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FutureDiscover.done(PeerAddress ourPeerAddress,
PeerAddress reporter)
Gets called if the discovery was a success and an other peer could ping us with TCP and UDP.
|
void |
FutureShutdown.report(PeerAddress recipient,
boolean success)
Report the intermediate status.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FutureWrappedBootstrap.setBootstrapTo(Collection<PeerAddress> bootstrapTo)
The addresses we boostrap to.
|
void |
FutureSend.setDirectData1(Map<PeerAddress,io.netty.buffer.ByteBuf> rawChannels)
Finish the future and set the keys and data that have send directly using the Netty buffer.
|
void |
FutureSend.setDirectData2(Map<PeerAddress,Object> rawObjects)
Finish the future and set the keys and data that have send directly using an object.
|
void |
FutureRouting.setNeighbors(SortedMap<PeerAddress,DigestInfo> directHits,
NavigableSet<PeerAddress> potentialHits,
SortedSet<PeerAddress> routingPath,
boolean isBootstrap,
boolean isRoutingToOther)
Sets the result of the routing process and finishes the future.
|
void |
FutureRouting.setNeighbors(SortedMap<PeerAddress,DigestInfo> directHits,
NavigableSet<PeerAddress> potentialHits,
SortedSet<PeerAddress> routingPath,
boolean isBootstrap,
boolean isRoutingToOther)
Sets the result of the routing process and finishes the future.
|
void |
FutureRouting.setNeighbors(SortedMap<PeerAddress,DigestInfo> directHits,
NavigableSet<PeerAddress> potentialHits,
SortedSet<PeerAddress> routingPath,
boolean isBootstrap,
boolean isRoutingToOther)
Sets the result of the routing process and finishes the future.
|
void |
FutureGet.setReceivedData(Map<PeerAddress,Map<Number640,Data>> rawData)
Finish the future and set the keys and data that have been received.
|
void |
FutureRemove.setReceivedData(Map<PeerAddress,Map<Number640,Data>> rawData)
Finish the future and set the keys and data that have been received.
|
void |
FutureDigest.setReceivedDigest(Map<PeerAddress,DigestResult> rawDigest)
Finishes the future and set the digest information that have been received.
|
void |
FuturePut.setStoredKeys(Map<PeerAddress,Map<Number640,Byte>> rawResult)
Finish the future and set the keys that have been stored.
|
void |
FutureRemove.setStoredKeys(Map<PeerAddress,Map<Number640,Byte>> rawKeys640)
Finish the future and set the keys that have been stored.
|
void |
FutureTracker.setTrackers(Set<PeerAddress> potentialTrackers,
Set<PeerAddress> directTrackers,
Map<PeerAddress,TrackerData> peersOnTracker)
Set the result of the tracker process.
|
void |
FutureTracker.setTrackers(Set<PeerAddress> potentialTrackers,
Set<PeerAddress> directTrackers,
Map<PeerAddress,TrackerData> peersOnTracker)
Set the result of the tracker process.
|
void |
FutureTracker.setTrackers(Set<PeerAddress> potentialTrackers,
Set<PeerAddress> directTrackers,
Map<PeerAddress,TrackerData> peersOnTracker)
Set the result of the tracker process.
|
| Constructor and Description |
|---|
FutureAsyncTask(PeerAddress remotePeer)
Constructor
|
FuturePeerConnection(PeerAddress remotePeer) |
| Modifier and Type | Field and Description |
|---|---|
static io.netty.util.AttributeKey<PeerAddress> |
Decoder.PEER_ADDRESS_KEY |
| Modifier and Type | Method and Description |
|---|---|
PeerAddress |
MessageID.getNodeAddress() |
PeerAddress |
Message.getRecipient()
The ID of the recipient.
|
PeerAddress |
TrackerData.getReferrer() |
PeerAddress |
Message.getSender()
The ID of the sender.
|
| Modifier and Type | Method and Description |
|---|---|
Map<PeerAddress,Data> |
TrackerData.getPeerAddresses() |
Map<PeerAddress,Data> |
TrackerData.map() |
Collection<PeerAddress> |
NeighborSet.neighbors() |
Map.Entry<PeerAddress,Data> |
TrackerData.remove(Number160 remotePeerId) |
| Modifier and Type | Method and Description |
|---|---|
void |
NeighborSet.add(PeerAddress neighbor) |
void |
TrackerData.put(PeerAddress remotePeer,
Data attachement) |
Message |
Message.setRecipient(PeerAddress recipient)
Set the ID of the recipient.
|
Message |
Message.setSender(PeerAddress sender)
The ID of the sender.
|
| Modifier and Type | Method and Description |
|---|---|
void |
NeighborSet.addResult(Collection<PeerAddress> neighbors) |
| Constructor and Description |
|---|
TrackerData(Map<PeerAddress,Data> peerAddresses,
PeerAddress referrer) |
TrackerData(Map<PeerAddress,Data> peerAddresses,
PeerAddress referrer,
boolean couldProvideMoreData) |
| Constructor and Description |
|---|
NeighborSet(int neighborLimit,
Collection<PeerAddress> neighbors) |
TrackerData(Map<PeerAddress,Data> peerAddresses,
PeerAddress referrer) |
TrackerData(Map<PeerAddress,Data> peerAddresses,
PeerAddress referrer,
boolean couldProvideMoreData) |
| Modifier and Type | Method and Description |
|---|---|
PeerAddress |
Peer.getPeerAddress() |
PeerAddress |
RoutingMechanism.pollFirstInQueueToAsk() |
PeerAddress |
RoutingMechanism.pollRandomInQueueToAsk(Random rnd) |
| Modifier and Type | Method and Description |
|---|---|
SortedSet<PeerAddress> |
RoutingMechanism.alreadyAsked() |
SortedMap<PeerAddress,DigestInfo> |
RoutingMechanism.directHits() |
NavigableSet<PeerAddress> |
RoutingMechanism.potentialHits() |
NavigableSet<PeerAddress> |
RoutingMechanism.queueToAsk() |
protected List<PeerAddress> |
ReplicationExecutor.send(Number160 locationKey,
Map<Number640,Data> dataMapConverted)
If my peer is responsible, I'll issue a put if absent to make sure all replicas are stored.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RoutingMechanism.addPotentialHits(PeerAddress remotePeer) |
void |
RoutingMechanism.addToAlreadyAsked(PeerAddress next) |
void |
Maintenance.addTrackerMaintenance(PeerAddress peerAddress,
PeerAddress referrer,
Number160 locationKey,
Number160 domainKey,
TrackerStorage trackerStorage) |
FutureResponse |
OperationMapper.create(ChannelCreator channelCreator,
PeerAddress remotePeerAddress)
Creates a single RPC.
|
FutureResponse |
DistributedTracker.Operation.create(PeerAddress address,
boolean primary)
Creates an RPC.
|
FuturePeerConnection |
Peer.createPeerConnection(PeerAddress destination) |
FuturePeerConnection |
Peer.createPeerConnection(PeerAddress destination,
int heartBeatMillis)
Opens a TCP connection and keeps it open.
|
boolean |
RoutingMechanism.evaluateSuccess(PeerAddress remotePeer,
DigestInfo digestBean,
Collection<PeerAddress> newNeighbors,
boolean last) |
void |
ReplicationExecutor.otherResponsible(Number160 locationKey,
PeerAddress other,
boolean delayed) |
void |
ResponsibilityListener.otherResponsible(Number160 locationKey,
PeerAddress other,
boolean delayed)
Here an other peer is responsible and we need to transfer data.
|
void |
Replication.peerInserted(PeerAddress peerAddress,
boolean verified) |
void |
Replication.peerRemoved(PeerAddress peerAddress,
PeerStatatistic peerStatatistic) |
void |
Replication.peerUpdated(PeerAddress peerAddress,
PeerStatatistic peerStatatistic) |
void |
PeerReachable.peerWellConnected(PeerAddress peerAddress,
PeerAddress reporter,
boolean tcp)
Call this method when other peers can reach our peer from outside.
|
SendDirectBuilder |
Peer.sendDirect(PeerAddress recipientAddress) |
void |
ReplicationExecutor.DefaultReplicationSender.sendDirect(PeerAddress other,
Number160 locationKey,
Map<Number640,Data> dataMap)
If an other peer is responsible, we send this peer our data, so that the other peer can take care of this.
|
void |
ReplicationSender.sendDirect(PeerAddress other,
Number160 locationKey,
Map<Number640,Data> dataMap) |
| Modifier and Type | Method and Description |
|---|---|
static RequestP2PConfiguration |
DistributedHashTable.adjustConfiguration(RequestP2PConfiguration p2pConfiguration,
SortedMap<PeerAddress,DigestInfo> directHitsDigest)
Adjusts the number of minimum requests in the P2P configuration.
|
RoutingMechanism |
RoutingMechanism.alreadyAsked(SortedSet<PeerAddress> alreadyAsked) |
FutureWrapper<FutureRouting> |
DistributedRouting.bootstrap(Collection<PeerAddress> peerAddresses,
RoutingBuilder routingBuilder,
ChannelCreator cc)
Bootstraps to the given peerAddresses, i.e.
|
RoutingMechanism |
RoutingMechanism.directHits(SortedMap<PeerAddress,DigestInfo> directHits) |
Collection<Number640> |
VotingSchemeDHT.evaluate1(Map<PeerAddress,Map<Number640,Number160>> rawKeysByte) |
Collection<Number640> |
EvaluatingSchemeDHT.evaluate1(Map<PeerAddress,Map<Number640,Number160>> rawKeys480) |
Collection<Number640> |
CumulativeScheme.evaluate1(Map<PeerAddress,Map<Number640,Number160>> rawKeys480) |
Map<Number640,Data> |
VotingSchemeDHT.evaluate2(Map<PeerAddress,Map<Number640,Data>> rawData) |
Map<Number640,Data> |
EvaluatingSchemeDHT.evaluate2(Map<PeerAddress,Map<Number640,Data>> rawData) |
Map<Number640,Data> |
CumulativeScheme.evaluate2(Map<PeerAddress,Map<Number640,Data>> rawKeys) |
Object |
VotingSchemeDHT.evaluate3(Map<PeerAddress,Object> rawKeys) |
Object |
EvaluatingSchemeDHT.evaluate3(Map<PeerAddress,Object> rawObjects) |
Object |
CumulativeScheme.evaluate3(Map<PeerAddress,Object> rawKeys) |
io.netty.buffer.ByteBuf |
VotingSchemeDHT.evaluate4(Map<PeerAddress,io.netty.buffer.ByteBuf> rawKeys) |
io.netty.buffer.ByteBuf |
EvaluatingSchemeDHT.evaluate4(Map<PeerAddress,io.netty.buffer.ByteBuf> rawChannels) |
io.netty.buffer.ByteBuf |
CumulativeScheme.evaluate4(Map<PeerAddress,io.netty.buffer.ByteBuf> rawKeys) |
DigestResult |
VotingSchemeDHT.evaluate5(Map<PeerAddress,DigestResult> rawDigest) |
DigestResult |
EvaluatingSchemeDHT.evaluate5(Map<PeerAddress,DigestResult> rawDigest) |
DigestResult |
CumulativeScheme.evaluate5(Map<PeerAddress,DigestResult> rawDigest) |
Collection<Number640> |
VotingSchemeDHT.evaluate6(Map<PeerAddress,Map<Number640,Byte>> rawKeys480) |
Collection<Number640> |
EvaluatingSchemeDHT.evaluate6(Map<PeerAddress,Map<Number640,Byte>> rawKeys480) |
Collection<Number640> |
CumulativeScheme.evaluate6(Map<PeerAddress,Map<Number640,Byte>> rawKeys480) |
Collection<TrackerData> |
EvaluatingSchemeTracker.evaluateSingle(Map<PeerAddress,TrackerData> rawData) |
Collection<TrackerData> |
VotingSchemeTracker.evaluateSingle(Map<PeerAddress,TrackerData> rawData) |
boolean |
RoutingMechanism.evaluateSuccess(PeerAddress remotePeer,
DigestInfo digestBean,
Collection<PeerAddress> newNeighbors,
boolean last) |
static <K extends FutureDHT<?>> |
DistributedHashTable.parallelRequests(RequestP2PConfiguration p2pConfiguration,
NavigableSet<PeerAddress> queue,
boolean cancleOnFinish,
FutureChannelCreator futureChannelCreator,
OperationMapper<K> operation,
K futureDHT)
Creates RPCs and executes them parallel.
|
RoutingMechanism |
RoutingMechanism.potentialHits(NavigableSet<PeerAddress> potentialHits) |
RoutingMechanism |
RoutingMechanism.queueToAsk(NavigableSet<PeerAddress> queueToAsk) |
| Constructor and Description |
|---|
Replication(ReplicationStorage replicationStorage,
PeerAddress selfAddress,
PeerMap peerMap,
int replicationFactor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PeerAddress |
PingBuilder.getPeerAddress() |
PeerAddress |
BootstrapBuilder.getPeerAddress() |
PeerAddress |
SendDirectBuilder.getRecipient() |
PeerAddress |
DiscoverBuilder.peerAddress() |
PeerAddress |
AddTrackerBuilder.peerAddressToAnnounce() |
PeerAddress |
BroadcastBuilder.remotePeer() |
| Modifier and Type | Method and Description |
|---|---|
NavigableSet<PeerAddress> |
ShutdownBuilder.filter(NavigableSet<PeerAddress> closePeers)
Adds the possibility to filter the peers, to add more or remove peers for the shutdown process.
|
NavigableSet<PeerAddress> |
ShutdownBuilder.Filter.filter(NavigableSet<PeerAddress> closePeers)
Adds the possibility to filter the peers, to add more or remove peers for the shutdown process
|
Collection<PeerAddress> |
BootstrapBuilder.getBootstrapTo() |
NavigableSet<PeerAddress> |
ParallelRequestBuilder.getQueue() |
| Modifier and Type | Method and Description |
|---|---|
ParallelRequestBuilder<K> |
ParallelRequestBuilder.add(PeerAddress peerAddress) |
DiscoverBuilder |
DiscoverBuilder.peerAddress(PeerAddress peerAddress) |
AddTrackerBuilder |
AddTrackerBuilder.peerAddressToAnnounce(PeerAddress peerAddressToAnnounce) |
FutureResponse |
PingBuilder.ping(PeerAddress peerAddress,
boolean isUDP)
Pings a peer.
|
PingBuilder |
PingBuilder.setPeerAddress(PeerAddress peerAddress) |
BootstrapBuilder |
BootstrapBuilder.setPeerAddress(PeerAddress peerAddress)
Set the peer address to bootstrap to.
|
| Modifier and Type | Method and Description |
|---|---|
NavigableSet<PeerAddress> |
ShutdownBuilder.filter(NavigableSet<PeerAddress> closePeers)
Adds the possibility to filter the peers, to add more or remove peers for the shutdown process.
|
NavigableSet<PeerAddress> |
ShutdownBuilder.Filter.filter(NavigableSet<PeerAddress> closePeers)
Adds the possibility to filter the peers, to add more or remove peers for the shutdown process
|
BootstrapBuilder |
BootstrapBuilder.setBootstrapTo(Collection<PeerAddress> bootstrapTo) |
ParallelRequestBuilder<K> |
ParallelRequestBuilder.setQueue(NavigableSet<PeerAddress> queue) |
| Constructor and Description |
|---|
SendDirectBuilder(Peer peer,
PeerAddress recipientAddress) |
| Modifier and Type | Method and Description |
|---|---|
PeerAddress |
PeerAddress.changeAddress(InetAddress inetAddress)
Create a new PeerAddress and change the InetAddress.
|
PeerAddress |
PeerAddress.changeFirewalledTCP(boolean firewalledTCP)
Create a new PeerAddress and change the firewalledTCP status.
|
PeerAddress |
PeerAddress.changeFirewalledUDP(boolean firewalledUDP)
Create a new PeerAddress and change the firewallUDP status.
|
PeerAddress |
PeerAddress.changePeerId(Number160 peerId)
Create a new PeerAddress and change the peer id.
|
PeerAddress |
PeerAddress.changePeerSocketAddress(PeerSocketAddress peerSocketAddress) |
PeerAddress |
PeerAddress.changePeerSocketAddresses(PeerSocketAddress[] peerSocketAddresses) |
PeerAddress |
PeerAddress.changePorts(int tcpPort,
int udpPort)
Create a new PeerAddress and change the TCP and UDP ports.
|
PeerAddress |
PeerStatatistic.getPeerAddress() |
PeerAddress |
PeerStatatistic.setPeerAddress(PeerAddress peerAddress)
Set the peer address only if the previous peer address that had the same peer ID.
|
| Modifier and Type | Method and Description |
|---|---|
NavigableSet<PeerAddress> |
PeerMap.closePeers(int atLeast)
Returns close peers to the peer itself.
|
NavigableSet<PeerAddress> |
PeerMap.closePeers(Number160 id,
int atLeast)
Returns close peer from the set to a given key.
|
static NavigableSet<PeerAddress> |
PeerMap.closePeers(Number160 self,
Number160 other,
int atLeast,
List<Map<Number160,PeerStatatistic>> peerMap) |
Comparator<PeerAddress> |
PeerMap.createComparator()
Creates an XOR comparator based on this peer ID.
|
static Comparator<PeerAddress> |
PeerMap.createComparator(Number160 id)
Create the Kademlia distance comparator.
|
List<PeerAddress> |
PeerMap.getAll()
Return all addresses from the neighbor list.
|
List<PeerAddress> |
PeerMap.getAllOverflow()
Return all addresses from the overflow / non-verified list.
|
| Modifier and Type | Method and Description |
|---|---|
int |
PeerAddress.compareTo(PeerAddress nodeAddress) |
boolean |
PeerMap.contains(PeerAddress peerAddress)
Checks if a peer address in either in the verified map.
|
boolean |
PeerMap.containsOverflow(PeerAddress peerAddress)
Checks if a peer address in either in the overflow / non-verified map.
|
static int |
PeerMap.isCloser(Number160 id,
PeerAddress rn,
PeerAddress rn2)
Returns -1 if the first remote node is closer to the key, if the second is closer, then 1 is returned.
|
static int |
PeerMap.isKadCloser(Number160 id,
PeerAddress rn,
PeerAddress rn2)
Returns -1 if the first remote node is closer to the key, if the secondBITS is closer, then 1 is returned.
|
boolean |
PeerMap.isPeerRemovedTemporarly(PeerAddress peerAddress)
Checks if a peer is in the offline map.
|
boolean |
PeerMap.peerFailed(PeerAddress remotePeer,
PeerStatusListener.FailReason reason)
Remove a peer from the list.
|
boolean |
PeerStatusListener.peerFailed(PeerAddress remotePeer,
PeerStatusListener.FailReason reason)
Called if the peer does not send answer in time.
|
boolean |
PeerMap.peerFound(PeerAddress remotePeer,
PeerAddress referrer)
Adds a neighbor to the neighbor list.
|
boolean |
PeerStatusListener.peerFound(PeerAddress remotePeer,
PeerAddress referrer)
Called if the peer is online and who reported it.
|
void |
PeerMapChangeListener.peerInserted(PeerAddress peerAddress,
boolean verified)
This method is called if a peer is added to the map.
|
void |
PeerMapChangeListener.peerRemoved(PeerAddress peerAddress,
PeerStatatistic storedPeerAddress)
This method is called if a peer is removed from the map.
|
void |
PeerMapChangeListener.peerUpdated(PeerAddress peerAddress,
PeerStatatistic storedPeerAddress)
This method is called if a peer is updated.
|
boolean |
DefaultPeerFilter.reject(PeerAddress peerAddress) |
boolean |
PeerFilter.reject(PeerAddress peerAddress)
Each peer that is added in the map runs through this filter.
|
PeerAddress |
PeerStatatistic.setPeerAddress(PeerAddress peerAddress)
Set the peer address only if the previous peer address that had the same peer ID.
|
| Constructor and Description |
|---|
PeerStatatistic(PeerAddress peerAddress)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected SortedSet<PeerAddress> |
NeighborRPC.getNeighbors(Number160 id,
int atLeast)
TODO: explain why protected method here.
|
| Modifier and Type | Method and Description |
|---|---|
FutureResponse |
StorageRPC.add(PeerAddress remotePeer,
AddBuilder addBuilder,
ChannelCreator channelCreator)
Adds data on a remote peer.
|
FutureResponse |
TrackerRPC.addToTracker(PeerAddress remotePeer,
AddTrackerBuilder builder,
ChannelCreator channelCreator) |
FutureResponse |
NeighborRPC.closeNeighbors(PeerAddress remotePeer,
NeighborRPC.SearchValues searchValues,
Message.Type type,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Requests close neighbors from the remote peer.
|
Message |
DispatchHandler.createMessage(PeerAddress recipient,
byte name,
Message.Type type)
Create a request message and fills it with connection bean and peer bean parameters.
|
static Message |
DispatchHandler.createResponseMessage(Message requestMessage,
Message.Type replyType,
PeerAddress peerAddress) |
FutureResponse |
StorageRPC.digest(PeerAddress remotePeer,
DigestBuilder getBuilder,
ChannelCreator channelCreator) |
FutureResponse |
PingRPC.fireTCP(PeerAddress remotePeer,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Ping a TCP peer, but don't expect an answer.
|
FutureResponse |
PingRPC.fireUDP(PeerAddress remotePeer,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Ping a UDP peer, but don't expect an answer.
|
FutureResponse |
StorageRPC.get(PeerAddress remotePeer,
GetBuilder getBuilder,
ChannelCreator channelCreator) |
FutureResponse |
TrackerRPC.getFromTracker(PeerAddress remotePeer,
GetTrackerBuilder builder,
ChannelCreator channelCreator) |
FutureResponse |
PeerExchangeRPC.peerExchange(PeerAddress remotePeer,
Number160 locationKey,
Number160 domainKey,
boolean isReplication,
ChannelCreator channelCreator,
ConnectionConfiguration connectionConfiguration)
Peer exchange (PEX) information about other peers from the swarm, to not ask the primary trackers too often.
|
RequestHandler<FutureResponse> |
PingRPC.ping(PeerAddress remotePeer,
ConnectionConfiguration configuration)
Ping with UDP or TCP, but do not send yet.
|
FutureResponse |
PingRPC.pingBroadcastUDP(PeerAddress remotePeer,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Ping a UDP peer using layer 2 broadcast.
|
FutureResponse |
PingRPC.pingTCP(PeerAddress remotePeer,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Ping a TCP peer.
|
FutureResponse |
PingRPC.pingTCPDiscover(PeerAddress remotePeer,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Ping a TCP peer, and find out how the other peer sees us.
|
FutureResponse |
PingRPC.pingTCPProbe(PeerAddress remotePeer,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Ping a TCP peer, and request the other peer to ping us on our public address with a fire and forget message.
|
FutureResponse |
PingRPC.pingUDP(PeerAddress remotePeer,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Ping a UDP peer.
|
FutureResponse |
PingRPC.pingUDPDiscover(PeerAddress remotePeer,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Ping a UDP peer, and find out how the other peer sees us.
|
FutureResponse |
PingRPC.pingUDPProbe(PeerAddress remotePeer,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Ping a UDP peer, and request the other peer to ping us on our public address with a fire and forget message.
|
FutureResponse |
StorageRPC.put(PeerAddress remotePeer,
PutBuilder putBuilder,
ChannelCreator channelCreator)
Stores data on a remote peer.
|
FutureResponse |
StorageRPC.putIfAbsent(PeerAddress remotePeer,
PutBuilder putBuilder,
ChannelCreator channelCreator)
Stores data on a remote peer.
|
FutureResponse |
StorageRPC.putMeta(PeerAddress remotePeer,
PutBuilder putBuilder,
ChannelCreator channelCreator) |
FutureResponse |
QuitRPC.quit(PeerAddress remotePeer,
ShutdownBuilder shutdownBuilder,
ChannelCreator channelCreator)
Sends a message that indicates this peer is about to quit.
|
FutureResponse |
StorageRPC.remove(PeerAddress remotePeer,
RemoveBuilder removeBuilder,
ChannelCreator channelCreator)
Removes data from a peer.
|
Buffer |
RawDataReply.reply(PeerAddress sender,
Buffer requestBuffer,
boolean complete)
Replies to a direct message from a peer.
|
Object |
ObjectDataReply.reply(PeerAddress sender,
Object request)
Replies to a direct message from a peer.
|
FutureResponse |
BroadcastRPC.send(PeerAddress remotePeer,
BroadcastBuilder broadcastBuilder,
ChannelCreator channelCreator,
ConnectionConfiguration configuration) |
FutureResponse |
DirectDataRPC.send(PeerAddress remotePeer,
SendDirectBuilderI sendDirectBuilder,
ChannelCreator channelCreator) |
RequestHandler<FutureResponse> |
DirectDataRPC.sendInternal(PeerAddress remotePeer,
SendDirectBuilderI sendDirectBuilder)
Send data directly to a peer.
|
| Modifier and Type | Method and Description |
|---|---|
PeerAddress |
IdentityManagement.getPeerAddress() |
| Modifier and Type | Method and Description |
|---|---|
void |
TrackerStorage.addActive(Number160 locationKey,
Number160 domainKey,
PeerAddress remotePeer,
Data attachement) |
boolean |
TrackerStorage.moveFromSecondaryToMesh(PeerAddress peerAddress,
PeerAddress referrer,
Number160 locationKey,
Number160 domainKey,
PublicKey publicKey) |
boolean |
IdentityManagement.peerFailed(PeerAddress peerAddress,
PeerStatusListener.FailReason reason) |
boolean |
TrackerStorage.peerFailed(PeerAddress remotePeer,
PeerStatusListener.FailReason reason) |
boolean |
IdentityManagement.peerFound(PeerAddress peerAddress,
PeerAddress referrer) |
boolean |
TrackerStorage.peerFound(PeerAddress remotePeer,
PeerAddress referrer) |
boolean |
TrackerStorage.put(Number160 locationKey,
Number160 domainKey,
PeerAddress peerAddress,
PublicKey publicKey,
Data attachement) |
boolean |
TrackerStorage.putReferred(Number160 locationKey,
Number160 domainKey,
PeerAddress peerAddress,
PeerAddress referrer,
Data attachement,
TrackerStorage.ReferrerType type) |
void |
TrackerStorage.removeReferred(Number160 locationKey,
Number160 domainKey,
Number160 key,
PeerAddress referrer) |
| Constructor and Description |
|---|
IdentityManagement(PeerAddress self) |
Copyright © 2014. All rights reserved.