P-Grid v2.0a2 API Specification

Uses of Interface
p2p.basic.Peer

Packages that use Peer
p2p.basic   
p2p.basic.events   
p2p.storage   
 

Uses of Peer in p2p.basic
 

Methods in p2p.basic that return Peer
abstract  Peer P2PFactory.createPeer(InetAddress netAddr, int port)
          Create a Peer instance compatible with the P2P implementation based on the provided information.
 Peer P2P.getLocalPeer()
          Get information on the local peer.
 Peer[] P2P.getNeighbors()
          Get information on the neighbors known to this peer.
 Peer P2P.lookup(Key key, long timeout)
          Get information on a peer.
 

Methods in p2p.basic with parameters of type Peer
 void P2P.join(Peer peer)
          Initialize the local routing table after connecting to network.
 void P2P.send(Peer peer, Message message)
          Send a message directly to a peer (no routing is done)
 

Uses of Peer in p2p.basic.events
 

Methods in p2p.basic.events with parameters of type Peer
 void P2PListener.newMessage(Message message, Peer origin)
          Invoked when a new message needs to be delivered to the application.
 

Uses of Peer in p2p.storage
 

Methods in p2p.storage that return Peer
 Peer DataItem.getPeer()
          Get the host responsible for this item.
 

Methods in p2p.storage with parameters of type Peer
 DataItem TypeHandler.createDataItem(GUID guid, Key key, Peer host, Object data)
          Create a DataItem instance compatible with the Storage implementation.
 


P-Grid v2.0a2 API Specification

This is open source software distributed under the terms of the GNU General Public License, a copy of which is included in the file LICENSE. If not you can find the GPL at http://www.gnu.org/copyleft/gpl.txt