Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.detection
Class Peer<T>

java.lang.Object
  extended by org.nuxeo.runtime.detection.Peer<T>

public class Peer<T>
extends Object

Author:
Bogdan Stefanescu

Field Summary
 InetAddress addr
          this peer address
 T data
          This may be used by higher layer to attach some data to a peer entry
 String identity
          the identity of that peer
 long lastHeartBeat
          timestamp of the last heart beat
 int port
          this peer port
 
Constructor Summary
Peer(InetAddress addr, int port, String identity)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

identity

public final String identity
the identity of that peer


lastHeartBeat

public long lastHeartBeat
timestamp of the last heart beat


addr

public final InetAddress addr
this peer address


port

public final int port
this peer port


data

public T data
This may be used by higher layer to attach some data to a peer entry

Constructor Detail

Peer

public Peer(InetAddress addr,
            int port,
            String identity)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.