P-Grid v2.0a2 API Specification

p2p.basic
Interface Peer


public interface Peer

Defines the operation that peers support. Each instance provides addressing information on the represented peer.


Method Summary
 GUID getGUID()
          Get the guid the distiguishes this peer from others.
 InetAddress getIP()
          Get the peer's address
 KeyRange getKeyRange()
          Get the range for which the peer is responsible.
 int getPort()
          Get the peer's service port
 

Method Detail

getGUID

GUID getGUID()
Get the guid the distiguishes this peer from others.

Returns:
the global unique identifer

getKeyRange

KeyRange getKeyRange()
Get the range for which the peer is responsible.

Returns:
the KeyRange

getIP

InetAddress getIP()
Get the peer's address

Returns:
the Internet address

getPort

int getPort()
Get the peer's service port

Returns:
the service port number

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