| 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.utils |
| Modifier and Type | Method and Description |
|---|---|
PeerAddress |
PeerConnection.remotePeer() |
PeerAddress |
PeerBean.serverPeerAddress() |
| Modifier and Type | Method and Description |
|---|---|
PeerConnection |
PeerConnection.changeRemotePeer(PeerAddress remotePeer) |
InetSocketAddress |
RelaySender.createSocketTCP(PeerAddress peerAddress) |
InetSocketAddress |
RelaySender.createSocketUPD(PeerAddress peerAddress) |
PeerBean |
PeerBean.notifyPeerFound(PeerAddress sender,
PeerAddress reporter,
PeerConnection peerConnection) |
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.peerAddress()
The peerAddress where we are reachable.
|
PeerAddress |
FuturePeerConnection.remotePeer() |
PeerAddress |
FutureAsyncTask.remotePeer() |
PeerAddress |
FuturePing.remotePeer() |
PeerAddress |
FutureDiscover.reporter() |
| Modifier and Type | Method and Description |
|---|---|
Collection<PeerAddress> |
FutureBootstrap.bootstrapTo()
Returns the Peers we bootstrapped in no particular order.
|
Collection<PeerAddress> |
FutureWrappedBootstrap.bootstrapTo()
Returns a list of of peers that were involved in the bootstrapping.
|
NavigableSet<PeerAddress> |
FutureRouting.directHits()
The direct hits set contains those peers that reported to have the key
(Number160) we were looking for.
|
SortedMap<PeerAddress,DigestInfo> |
FutureRouting.directHitsDigest()
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).
|
NavigableSet<PeerAddress> |
FutureRouting.potentialHits()
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.
|
Map<PeerAddress,Map<Number160,Data>> |
FutureTask.rawDataMap() |
SortedSet<PeerAddress> |
FutureRouting.routingPath()
Returns the peers that have been asked to provide neighbor information.
|
| Modifier and Type | Method and Description |
|---|---|
FuturePing |
FuturePing.done(PeerAddress remotePeer)
Gets called if the ping was a success and an other peer could ping us
with TCP and UDP.
|
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.
|
FutureDiscover |
FutureDiscover.failed(PeerAddress serverPeerAddress,
String failed) |
FutureDiscover |
FutureDiscover.reporter(PeerAddress reporter) |
void |
FutureDiscover.timeout(PeerAddress serverPeerAddress,
ScheduledExecutorService timer,
int delaySec)
Creates a new future object and creates a timer that fires failed after a timeout.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FutureWrappedBootstrap.bootstrapTo(Collection<PeerAddress> bootstrapTo)
The addresses we boostrap to.
|
void |
FutureRouting.neighbors(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.neighbors(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.neighbors(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.
|
| 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.peerAddress() |
PeerAddress |
Message.recipient()
The ID of the recipient.
|
PeerAddress |
Message.recipientRelay() |
PeerAddress |
Message.sender()
The ID of the sender.
|
| Modifier and Type | Method and Description |
|---|---|
Map.Entry<PeerAddress,Data> |
TrackerData.get(Number160 tmpKey) |
Collection<PeerAddress> |
NeighborSet.neighbors() |
Map<PeerAddress,Data> |
TrackerData.peerAddresses() |
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.recipient(PeerAddress recipient)
Set the ID of the recipient.
|
Message |
Message.recipientRelay(PeerAddress recipientRelay) |
Message |
Message.sender(PeerAddress sender)
The ID of the sender.
|
| Modifier and Type | Method and Description |
|---|---|
void |
NeighborSet.addResult(Collection<PeerAddress> neighbors) |
| Constructor and Description |
|---|
NeighborSet(int neighborLimit,
Collection<PeerAddress> neighbors) |
TrackerData(Map<PeerAddress,Data> peerAddresses) |
TrackerData(Map<PeerAddress,Data> peerAddresses,
boolean couldProvideMoreData) |
| Modifier and Type | Method and Description |
|---|---|
PeerAddress |
Peer.peerAddress() |
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() |
| Modifier and Type | Method and Description |
|---|---|
void |
RoutingMechanism.addPotentialHits(PeerAddress remotePeer) |
void |
RoutingMechanism.addToAlreadyAsked(PeerAddress next) |
void |
PeerReceivedBroadcastPing.broadcastPingReceived(PeerAddress sender)
Call this method when we receive a broadcast ping.
|
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,
Number160 locationkey) |
void |
ResponsibilityListener.meResponsible(Number160 locationKey,
PeerAddress newPeer) |
FutureDone<?> |
ResponsibilityListener.otherResponsible(Number160 locationKey,
PeerAddress other)
Here an other peer is responsible and we need to transfer data.
|
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) |
| Modifier and Type | Method and Description |
|---|---|
RoutingMechanism |
RoutingMechanism.alreadyAsked(SortedSet<PeerAddress> alreadyAsked) |
FutureDone<Pair<FutureRouting,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> |
CumulativeScheme.evaluate1(Map<PeerAddress,Map<Number640,Number160>> rawKeys480) |
Collection<Number640> |
EvaluatingSchemeDHT.evaluate1(Map<PeerAddress,Map<Number640,Number160>> rawKeys480) |
Map<Number640,Data> |
CumulativeScheme.evaluate2(Map<PeerAddress,Map<Number640,Data>> rawKeys) |
Map<Number640,Data> |
EvaluatingSchemeDHT.evaluate2(Map<PeerAddress,Map<Number640,Data>> rawData) |
Object |
CumulativeScheme.evaluate3(Map<PeerAddress,Object> rawKeys) |
Object |
EvaluatingSchemeDHT.evaluate3(Map<PeerAddress,Object> rawObjects) |
io.netty.buffer.ByteBuf |
CumulativeScheme.evaluate4(Map<PeerAddress,io.netty.buffer.ByteBuf> rawKeys) |
io.netty.buffer.ByteBuf |
EvaluatingSchemeDHT.evaluate4(Map<PeerAddress,io.netty.buffer.ByteBuf> rawChannels) |
DigestResult |
CumulativeScheme.evaluate5(Map<PeerAddress,DigestResult> rawDigest) |
DigestResult |
EvaluatingSchemeDHT.evaluate5(Map<PeerAddress,DigestResult> rawDigest) |
Collection<Number640> |
CumulativeScheme.evaluate6(Map<PeerAddress,Map<Number640,Byte>> rawKeys480) |
Collection<Number640> |
EvaluatingSchemeDHT.evaluate6(Map<PeerAddress,Map<Number640,Byte>> rawKeys480) |
Collection<TrackerData> |
EvaluatingSchemeTracker.evaluateSingle(Map<PeerAddress,TrackerData> rawData) |
boolean |
RoutingMechanism.evaluateSuccess(PeerAddress remotePeer,
DigestInfo digestBean,
Collection<PeerAddress> newNeighbors,
boolean last,
Number160 locationkey) |
RoutingMechanism |
RoutingMechanism.potentialHits(NavigableSet<PeerAddress> potentialHits) |
RoutingMechanism |
RoutingMechanism.queueToAsk(NavigableSet<PeerAddress> queueToAsk) |
| Modifier and Type | Method and Description |
|---|---|
PeerAddress |
PingBuilder.getPeerAddress() |
PeerAddress |
AnnounceBuilder.peerAddress() |
PeerAddress |
BootstrapBuilder.peerAddress() |
PeerAddress |
DiscoverBuilder.peerAddress() |
PeerAddress |
SendDirectBuilder.recipient() |
PeerAddress |
BroadcastBuilder.remotePeer() |
| Modifier and Type | Method and Description |
|---|---|
Collection<PeerAddress> |
BootstrapBuilder.bootstrapTo() |
| Modifier and Type | Method and Description |
|---|---|
AnnounceBuilder |
AnnounceBuilder.peerAddress(PeerAddress peerAddress) |
PingBuilder |
PingBuilder.peerAddress(PeerAddress peerAddress) |
BootstrapBuilder |
BootstrapBuilder.peerAddress(PeerAddress peerAddress)
Set the peer address to bootstrap to.
|
DiscoverBuilder |
DiscoverBuilder.peerAddress(PeerAddress peerAddress) |
AnnounceBuilder |
AnnounceBuilder.peerAddressOrig(PeerAddress peerAddress) |
| Modifier and Type | Method and Description |
|---|---|
BootstrapBuilder |
BootstrapBuilder.bootstrapTo(Collection<PeerAddress> bootstrapTo) |
| 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 firewall TCP status.
|
PeerAddress |
PeerAddress.changeFirewalledUDP(boolean firewalledUDP)
Create a new PeerAddress and change the firewall UDP status.
|
PeerAddress |
PeerAddress.changePeerId(Number160 peerId)
Create a new PeerAddress and change the peer id.
|
PeerAddress |
PeerAddress.changePeerSocketAddress(PeerSocketAddress peerSocketAddress) |
PeerAddress |
PeerAddress.changePeerSocketAddresses(Collection<PeerSocketAddress> peerSocketAddresses) |
PeerAddress |
PeerAddress.changePortForwarding(boolean portForwarding) |
PeerAddress |
PeerAddress.changePorts(int tcpPort,
int udpPort)
Create a new PeerAddress and change the TCP and UDP ports.
|
PeerAddress |
PeerAddress.changeRelayed(boolean isRelayed)
Create a new PeerAddress and change the relayed status.
|
PeerAddress |
PeerAddress.changeSlow(boolean isSlow)
Create a new PeerAddress and change the slow status
|
PeerAddress |
PeerMap.find(Number160 peerId) |
PeerAddress |
PeerAddress.internalPeerSocketAddress(PeerSocketAddress internalPeerSocketAddress) |
PeerAddress |
PeerStatistic.peerAddress() |
PeerAddress |
PeerStatistic.peerAddress(PeerAddress peerAddress)
Set the peer address only if the previous peer address that had the same peer ID.
|
PeerAddress |
LocalMap.translateReverse(PeerAddress remotePeer) |
| Modifier and Type | Method and Description |
|---|---|
List<PeerAddress> |
PeerMap.all()
Return all addresses from the neighbor list.
|
List<PeerAddress> |
PeerMap.allOverflow()
Return all addresses from the overflow / non-verified list.
|
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,PeerStatistic>> 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.
|
| 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.
|
PeerAddress |
PeerStatistic.peerAddress(PeerAddress peerAddress)
Set the peer address only if the previous peer address that had the same peer ID.
|
boolean |
PeerStatusListener.peerFailed(PeerAddress remotePeer,
PeerException exception)
Called if the peer does not send answer in time.
|
boolean |
PeerMap.peerFailed(PeerAddress remotePeer,
PeerException peerException)
Remove a peer from the list.
|
boolean |
LocalMap.peerFailed(PeerAddress remotePeer,
PeerException exception) |
boolean |
LocalMap.peerFound(PeerAddress remotePeer,
PeerAddress referrer) |
boolean |
PeerStatusListener.peerFound(PeerAddress remotePeer,
PeerAddress referrer,
PeerConnection peerConnection)
Called if the peer is online and who reported it.
|
boolean |
PeerMap.peerFound(PeerAddress remotePeer,
PeerAddress referrer,
PeerConnection peerConnection)
Adds a neighbor to the neighbor list.
|
boolean |
LocalMap.peerFound(PeerAddress remotePeer,
PeerAddress referrer,
PeerConnection peerConnection) |
void |
PeerMapChangeListener.peerInserted(PeerAddress peerAddress,
boolean verified)
This method is called if a peer is added to the map.
|
void |
PeerMapChangeListener.peerRemoved(PeerAddress peerAddress,
PeerStatistic storedPeerAddress)
This method is called if a peer is removed from the map.
|
void |
PeerMapChangeListener.peerUpdated(PeerAddress peerAddress,
PeerStatistic storedPeerAddress)
This method is called if a peer is updated.
|
boolean |
PeerFilter.reject(PeerAddress peerAddress,
Collection<PeerAddress> all,
Number160 target)
Each peer that is added in the map runs through this filter.
|
boolean |
PeerStatRoutingFilter.reject(PeerAddress peerAddress,
Collection<PeerAddress> all,
Number160 target) |
boolean |
PeerIPFilter.reject(PeerAddress peerAddress,
Collection<PeerAddress> all,
Number160 target) |
boolean |
DefaultPeerFilter.reject(PeerAddress peerAddress,
Collection<PeerAddress> all,
Number160 target) |
PeerStatistic |
LocalMap.translate(PeerAddress remotePeer) |
PeerAddress |
LocalMap.translateReverse(PeerAddress remotePeer) |
static PeerStatistic |
PeerMap.updateExistingVerifiedPeerAddress(Map<Number160,PeerStatistic> tmp,
PeerAddress peerAddress,
boolean firstHand)
Checks if a peer already exists in this map and if it does, it will update the entry because the peer address
(e.g.
|
| Constructor and Description |
|---|
PeerStatistic(PeerAddress peerAddress)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Collection<PeerAddress> |
NeighborRPC.getNeighbors(Number160 id,
int atLeast)
TODO: explain why protected method here.
|
| Modifier and Type | Method and Description |
|---|---|
FutureResponse |
AnnounceRPC.broadcast(PeerAddress remotePeer,
ConnectionConfiguration configuration,
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 |
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.
|
RequestHandler<FutureResponse> |
PingRPC.ping(PeerAddress remotePeer,
ConnectionConfiguration configuration)
Ping with UDP or TCP, but do not send yet.
|
FutureResponse |
AnnounceRPC.ping(PeerAddress remotePeer,
ConnectionConfiguration configuration,
ChannelCreator channelCreator) |
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 |
QuitRPC.quit(PeerAddress remotePeer,
ShutdownBuilder shutdownBuilder,
ChannelCreator channelCreator)
Sends a message that indicates this peer is about to quit.
|
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 |
|---|---|
static InetSocketAddress |
Utils.natReflection(InetSocketAddress recipient,
boolean udp,
PeerAddress self) |
Copyright © 2014. All rights reserved.