Index

A C G H L N O P R S T W _ 
All Classes and Interfaces|All Packages|Serialized Form

A

AbstractLocatorException - Exception in org.refcodes.p2p
Base exception for peer ID related exceptions.
AbstractLocatorException(Object, String) - Constructor for exception org.refcodes.p2p.AbstractLocatorException
AbstractLocatorException(Object, String, String) - Constructor for exception org.refcodes.p2p.AbstractLocatorException
AbstractLocatorException(Object, String, Throwable) - Constructor for exception org.refcodes.p2p.AbstractLocatorException
AbstractLocatorException(Object, String, Throwable, String) - Constructor for exception org.refcodes.p2p.AbstractLocatorException
AbstractLocatorException(Object, Throwable) - Constructor for exception org.refcodes.p2p.AbstractLocatorException
AbstractLocatorException(Object, Throwable, String) - Constructor for exception org.refcodes.p2p.AbstractLocatorException
AbstractP2PHeader<LOCATOR> - Class in org.refcodes.p2p
Abstract implementation of a P2PHeader.
AbstractP2PHeader(LOCATOR) - Constructor for class org.refcodes.p2p.AbstractP2PHeader
Constructs the header using the given destination locator as destination (AbstractP2PHeader.getDestination()).
AbstractP2PMessage<LOCATOR,HEADER extends P2PHeader<LOCATOR>,BODY,TAIL extends P2PTail<LOCATOR>> - Class in org.refcodes.p2p
Abstract implementation of a P2PMessage.
AbstractP2PMessage(HEADER, BODY, TAIL) - Constructor for class org.refcodes.p2p.AbstractP2PMessage
Constructs an P2PMessage.
AbstractP2PTail<LOCATOR> - Class in org.refcodes.p2p
Abstract implementation of a P2PTail.
AbstractP2PTail() - Constructor for class org.refcodes.p2p.AbstractP2PTail
Constructs the tail.
AbstractPeer<LOCATOR,HEADER extends P2PHeader<LOCATOR>,TAIL extends P2PTail<LOCATOR>,MSG extends P2PMessage<LOCATOR,HEADER,?,TAIL>,CONSUMER extends P2PMessageConsumer<MSG,PEER>,PEER extends Peer<LOCATOR,HEADER,TAIL,MSG,ROUTER>,ROUTER extends PeerRouter<LOCATOR,HEADER,TAIL,MSG>> - Class in org.refcodes.p2p
The AbstractPeer class implements the Peer interface and is a concrete implementation of a physical Peer.
AbstractPeer(LOCATOR, CONSUMER) - Constructor for class org.refcodes.p2p.AbstractPeer
Constructs the Peer instance with the given initial state.
addPeerRouter(ROUTER) - Method in class org.refcodes.p2p.AbstractPeer
Adds a PeerRouter to the list of the known PeerRouter instances.
addPeerRouter(ROUTER) - Method in interface org.refcodes.p2p.Peer
Adds a PeerRouter to the list of the known PeerRouter instances.
appendHop(LOCATOR) - Method in class org.refcodes.p2p.AbstractP2PTail
Adds a stop-over peer, being the peer which received the message for dispatching to the next peer.
appendHop(LOCATOR) - Method in interface org.refcodes.p2p.P2PTail
Adds a stop-over peer, being the peer which received the message for dispatching to the next peer.

C

containsHop(LOCATOR) - Method in interface org.refcodes.p2p.P2PTail
Tests whether the providing P2PMessage has already stopped over the given Peer.

G

getBody() - Method in class org.refcodes.p2p.AbstractP2PMessage
getDestination() - Method in class org.refcodes.p2p.AbstractP2PHeader
getHeader() - Method in class org.refcodes.p2p.AbstractP2PMessage
getHopCount() - Method in interface org.refcodes.p2p.HopCountAccessor
Retrieves the hop count from the hop count property.
getHopCount(LOCATOR) - Method in interface org.refcodes.p2p.PeerRouter
Determines the (nearest) hop count to the given peer.
getHopCount(LOCATOR, LOCATOR[]) - Method in class org.refcodes.p2p.AbstractPeer
Determines the (nearest) hop count to the given peer.
getHopCount(LOCATOR, LOCATOR[]) - Method in interface org.refcodes.p2p.PeerRouter
Determines the (nearest) hop count to the given peer.
getHops() - Method in class org.refcodes.p2p.AbstractP2PTail
Retrieves the trail of peers already passed.
getHops() - Method in interface org.refcodes.p2p.HopsAccessor
Retrieves the hops from the hops property.
getHops() - Method in interface org.refcodes.p2p.P2PTail
Retrieves the trail of peers already passed.
getLocator() - Method in exception org.refcodes.p2p.AbstractLocatorException
getLocator() - Method in class org.refcodes.p2p.AbstractPeer
getPayload(Class<P>) - Method in interface org.refcodes.p2p.P2PMessage
Retrieves the object representing the message's payload.
getSource() - Method in class org.refcodes.p2p.AbstractP2PTail
getTail() - Method in class org.refcodes.p2p.AbstractP2PMessage

H

HopCountAccessor - Interface in org.refcodes.p2p
Provides an accessor for a hop count property.
HopCountAccessor.HopCountBuilder<B extends HopCountAccessor.HopCountBuilder<B>> - Interface in org.refcodes.p2p
Provides a builder method for a hop count property returning the builder for applying multiple build operations.
HopCountAccessor.HopCountMutator - Interface in org.refcodes.p2p
Provides a mutator for a hop count property.
HopCountAccessor.HopCountProperty - Interface in org.refcodes.p2p
Provides a hop count property.
HopsAccessor<LOCATOR> - Interface in org.refcodes.p2p
Provides an accessor for a hops property.
HopsAccessor.HopsBuilder<LOCATOR,B extends HopsAccessor.HopsBuilder<LOCATOR,B>> - Interface in org.refcodes.p2p
Provides a builder method for a hops property returning the builder for applying multiple build operations.
HopsAccessor.HopsMutator<LOCATOR> - Interface in org.refcodes.p2p
Provides a mutator for a hops property.
HopsAccessor.HopsProperty<LOCATOR> - Interface in org.refcodes.p2p
Provides a hops property.

L

letHopCount(int) - Method in interface org.refcodes.p2p.HopCountAccessor.HopCountProperty
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as of HopCountAccessor.HopCountMutator.setHopCount(int) and returns the very same value (getter).
letHops(LOCATOR[]) - Method in interface org.refcodes.p2p.HopsAccessor.HopsProperty
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as of HopsAccessor.HopsMutator.setHops(Object[])} and returns the very same value (getter).

N

NoSuchDestinationException - Exception in org.refcodes.p2p
Thrown in case there is none such peer.
NoSuchDestinationException(Object, String) - Constructor for exception org.refcodes.p2p.NoSuchDestinationException
NoSuchDestinationException(Object, String, String) - Constructor for exception org.refcodes.p2p.NoSuchDestinationException
NoSuchDestinationException(Object, String, Throwable) - Constructor for exception org.refcodes.p2p.NoSuchDestinationException
NoSuchDestinationException(Object, String, Throwable, String) - Constructor for exception org.refcodes.p2p.NoSuchDestinationException
NoSuchDestinationException(Object, Throwable) - Constructor for exception org.refcodes.p2p.NoSuchDestinationException
NoSuchDestinationException(Object, Throwable, String) - Constructor for exception org.refcodes.p2p.NoSuchDestinationException

O

onP2PMessage(MSG, PEER) - Method in interface org.refcodes.p2p.P2PMessageConsumer
Invoked when a message is being consumed.
org.refcodes.p2p - module org.refcodes.p2p
 
org.refcodes.p2p - package org.refcodes.p2p
 

P

P2PException - Exception in org.refcodes.p2p
Base exception for this package.
P2PException(String) - Constructor for exception org.refcodes.p2p.P2PException
P2PException(String, String) - Constructor for exception org.refcodes.p2p.P2PException
P2PException(String, Throwable) - Constructor for exception org.refcodes.p2p.P2PException
P2PException(String, Throwable, String) - Constructor for exception org.refcodes.p2p.P2PException
P2PException(Throwable) - Constructor for exception org.refcodes.p2p.P2PException
P2PException(Throwable, String) - Constructor for exception org.refcodes.p2p.P2PException
P2PHeader<LOCATOR> - Interface in org.refcodes.p2p
The P2PHeader defines the static attributes addressed for the target of the P2PMessage (a header might be signed as it is not modified during dispatch).
P2PMessage<LOCATOR,HEADER extends P2PHeader<LOCATOR>,BODY,TAIL extends P2PTail<LOCATOR>> - Interface in org.refcodes.p2p
A P2PMessage is a transient passing various peers till reaching its target, consisting of a target, a payload and a trail of visited (peer) nodes.
P2PMessageConsumer<MSG extends P2PMessage<?,?,?,?>,PEER extends Peer<?,?,?,MSG,?>> - Interface in org.refcodes.p2p
A message consumer is a functional interfaces consuming messages.
P2PTail<LOCATOR> - Interface in org.refcodes.p2p
The P2PTail describes the dynamic attributes required during dispatch of a P2PMessage (a tail is modified during dispatch by having the visited hops appended).
Peer<LOCATOR,HEADER extends P2PHeader<LOCATOR>,TAIL extends P2PTail<LOCATOR>,MSG extends P2PMessage<LOCATOR,HEADER,?,TAIL>,ROUTER extends PeerRouter<LOCATOR,HEADER,TAIL,MSG>> - Interface in org.refcodes.p2p
A Peer represents a physical peer using PeerRouter instances to communicate with its direct neighbours.
PeerProxy<LOCATOR,HEADER extends P2PHeader<LOCATOR>,TAIL extends P2PTail<LOCATOR>,MSG extends P2PMessage<LOCATOR,HEADER,?,TAIL>> - Interface in org.refcodes.p2p
A PeerProxy represents a proxy for a physical Peer.
PeerRouter<LOCATOR,HEADER extends P2PHeader<LOCATOR>,TAIL extends P2PTail<LOCATOR>,MSG extends P2PMessage<LOCATOR,HEADER,?,TAIL>> - Interface in org.refcodes.p2p
A PeerRouter defines functionality to route a P2PMessage.
peerRouters() - Method in class org.refcodes.p2p.AbstractPeer
Retrieves all known (attached) PeerRouter instances.
peerRouters() - Method in interface org.refcodes.p2p.Peer
Retrieves all known (attached) PeerRouter instances.

R

removePeerRouter(ROUTER) - Method in class org.refcodes.p2p.AbstractPeer
Removes a PeerRouter from the list of the known PeerRouter instances.
removePeerRouter(ROUTER) - Method in interface org.refcodes.p2p.Peer
Removes a PeerRouter from the list of the known PeerRouter instances.

S

sendMessage(LOCATOR, P) - Method in interface org.refcodes.p2p.Peer
Convenience method for PeerRouter.sendMessage(P2PMessage).
sendMessage(MSG) - Method in class org.refcodes.p2p.AbstractPeer
Passes a message to the given peer.
sendMessage(MSG) - Method in interface org.refcodes.p2p.PeerRouter
Passes a message to the given peer.
setHopCount(int) - Method in interface org.refcodes.p2p.HopCountAccessor.HopCountMutator
Sets the hop count for the hop count property.
setHops(LOCATOR[]) - Method in interface org.refcodes.p2p.HopsAccessor.HopsMutator
Sets the hops for the hops property.

T

Terminal<LOCATOR> - Interface in org.refcodes.p2p
A Terminal provides the least required functionality for receiving messages.
toString() - Method in class org.refcodes.p2p.AbstractP2PHeader
toString() - Method in class org.refcodes.p2p.AbstractP2PMessage
toString() - Method in class org.refcodes.p2p.AbstractP2PTail
toString() - Method in class org.refcodes.p2p.AbstractPeer

W

withHopCount(int) - Method in interface org.refcodes.p2p.HopCountAccessor.HopCountBuilder
Sets the hop count for the hop count property.
withHops(LOCATOR[]) - Method in interface org.refcodes.p2p.HopsAccessor.HopsBuilder
Sets the hops for the hops property.

_

_body - Variable in class org.refcodes.p2p.AbstractP2PMessage
 
_destination - Variable in class org.refcodes.p2p.AbstractP2PHeader
 
_header - Variable in class org.refcodes.p2p.AbstractP2PMessage
 
_hops - Variable in class org.refcodes.p2p.AbstractP2PTail
 
_locator - Variable in class org.refcodes.p2p.AbstractPeer
 
_messageConsumer - Variable in class org.refcodes.p2p.AbstractPeer
 
_peerRouter - Variable in class org.refcodes.p2p.AbstractPeer
 
_tail - Variable in class org.refcodes.p2p.AbstractP2PMessage
 
A C G H L N O P R S T W _ 
All Classes and Interfaces|All Packages|Serialized Form