| Package | Description |
|---|---|
| net.tomp2p.connection | |
| net.tomp2p.futures | |
| net.tomp2p.p2p | |
| net.tomp2p.p2p.builder | |
| net.tomp2p.rpc |
| Modifier and Type | Class and Description |
|---|---|
class |
RequestHandler<K extends FutureResponse>
Is able to send UDP messages (as a request) and processes incoming replies.
|
| Modifier and Type | Method and Description |
|---|---|
FutureChannelCreator |
PeerConnection.acquire(FutureResponse futureResponse) |
io.netty.channel.ChannelFuture |
ChannelCreator.createTCP(SocketAddress socketAddress,
int connectionTimeoutMillis,
Map<String,Pair<io.netty.util.concurrent.EventExecutorGroup,io.netty.channel.ChannelHandler>> channelHandlers,
FutureResponse futureResponse)
Creates a channel to the given address.
|
io.netty.channel.ChannelFuture |
ChannelCreator.createUDP(SocketAddress recipient,
boolean broadcast,
Map<String,Pair<io.netty.util.concurrent.EventExecutorGroup,io.netty.channel.ChannelHandler>> channelHandlers,
FutureResponse futureResponse)
Creates a "channel" to the given address.
|
void |
Sender.sendTCP(io.netty.channel.SimpleChannelInboundHandler<Message> handler,
FutureResponse futureResponse,
Message message,
ChannelCreator channelCreator,
int idleTCPSeconds,
int connectTimeoutMillis,
PeerConnection peerConnection)
Send a message via TCP.
|
void |
Sender.sendUDP(io.netty.channel.SimpleChannelInboundHandler<Message> handler,
FutureResponse futureResponse,
Message message,
ChannelCreator channelCreator,
int idleUDPSeconds,
boolean broadcast)
Send a message via UDP.
|
io.netty.channel.ChannelFuture |
ChannelCreator.setupCloseListener(io.netty.channel.ChannelFuture channelFuture,
FutureResponse futureResponse)
Setup the close listener for a channel that was already created
|
| Constructor and Description |
|---|
TimeoutFactory(FutureResponse futureResponse,
int timeoutSeconds,
PeerStatusListener[] peerStatusListeners,
String name) |
| Modifier and Type | Method and Description |
|---|---|
FutureResponse |
FutureResponse.progress()
This will be called by the user, when the user provides more data.
|
FutureResponse |
FutureResponse.progressFirst()
Do not call this directly, as this is called from the TomP2P library.
|
FutureResponse |
FutureResponse.setProgressHandler(ProgresHandler progressHandler)
Set the user based progres handler, where the user can add more data and call
progress() when data has
been added. |
FutureResponse |
FutureResponse.setResponse()
If we don't get a reply message, which is the case for fire-and-forget messages, then set the reply to null and
set this future to complete with the type Success.
|
FutureResponse |
FutureResponse.setResponse(Message responseMessage)
Gets called if a peer responds.
|
FutureResponse |
FutureResponse.setResponseNow() |
| Modifier and Type | Method and Description |
|---|---|
FutureForkJoin<FutureResponse> |
FutureDHT.getFutureRequests()
Returns back those futures that are still running.
|
| Modifier and Type | Method and Description |
|---|---|
K |
FutureDHT.addRequests(FutureResponse futureResponse)
Adds all requests that have been created for the DHT operations.
|
| Constructor and Description |
|---|
FutureDirect(FutureResponse futureResponse) |
| Modifier and Type | Method and Description |
|---|---|
FutureResponse |
OperationMapper.create(ChannelCreator channelCreator,
PeerAddress remotePeerAddress)
Creates a single RPC.
|
FutureResponse |
DistributedTracker.Operation.create(PeerAddress address,
boolean primary)
Creates an RPC.
|
FutureResponse |
RoutingMechanism.futureResponse(int i) |
FutureResponse |
RoutingMechanism.futureResponse(int i,
FutureResponse futureResponse) |
| Modifier and Type | Method and Description |
|---|---|
AtomicReferenceArray<FutureResponse> |
RoutingMechanism.futureResponses() |
FutureLateJoin<FutureResponse> |
DistributedTracker.startPeerExchange(Number160 locationKey,
Number160 domainKey,
FutureChannelCreator futureChannelCreator,
ConnectionConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
FutureResponse |
RoutingMechanism.futureResponse(int i,
FutureResponse futureResponse) |
void |
OperationMapper.interMediateResponse(FutureResponse futureResponse)
Whenever a single future is finished, then this method is called.
|
| Constructor and Description |
|---|
RoutingMechanism(AtomicReferenceArray<FutureResponse> futureResponses,
FutureRouting futureRoutingResponse)
Creates the routing mechanism.
|
| Modifier and Type | Method and Description |
|---|---|
FutureResponse |
PingBuilder.ping(InetSocketAddress address)
Pings a peer.
|
FutureResponse |
PingBuilder.ping(InetSocketAddress address,
Number160 peerId,
boolean isUDP)
Pings a peer.
|
FutureResponse |
PingBuilder.ping(PeerAddress peerAddress,
boolean isUDP)
Pings a peer.
|
FutureResponse |
PingBuilder.pingPeerConnection(PeerConnection peerConnection) |
| Modifier and Type | Method and Description |
|---|---|
FutureCreator<FutureLateJoin<FutureResponse>> |
AddTrackerBuilder.getDefaultPEX() |
| Modifier and Type | Method and Description |
|---|---|
AddTrackerBuilder |
AddTrackerBuilder.setDefaultPEX(FutureCreator<FutureLateJoin<FutureResponse>> defaultPEX) |
| 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.
|
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.
|
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.
|
FutureResponse |
BroadcastRPC.send(PeerAddress remotePeer,
BroadcastBuilder broadcastBuilder,
ChannelCreator channelCreator,
ConnectionConfiguration configuration) |
FutureResponse |
DirectDataRPC.send(PeerAddress remotePeer,
SendDirectBuilderI sendDirectBuilder,
ChannelCreator channelCreator) |
| Modifier and Type | Method and Description |
|---|---|
RequestHandler<FutureResponse> |
PingRPC.ping(PeerAddress remotePeer,
ConnectionConfiguration configuration)
Ping with UDP or TCP, but do not send yet.
|
RequestHandler<FutureResponse> |
DirectDataRPC.sendInternal(PeerAddress remotePeer,
SendDirectBuilderI sendDirectBuilder)
Send data directly to a peer.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
TrackerRPC.isPrimary(FutureResponse response) |
static boolean |
TrackerRPC.isSecondary(FutureResponse response) |
Copyright © 2014. All rights reserved.