37 lines
880 B
Java
37 lines
880 B
Java
package com.google.code.gossip;
|
|
|
|
/**
|
|
* The object represents a gossip member with the properties as received from a remote gossip
|
|
* member.
|
|
*
|
|
* @author harmenw
|
|
*/
|
|
public class RemoteGossipMember extends GossipMember {
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param hostname
|
|
* The hostname or IP address.
|
|
* @param port
|
|
* The port number.
|
|
* @param heartbeat
|
|
* The current heartbeat.
|
|
*/
|
|
public RemoteGossipMember(String hostname, int port, String id, long heartbeat) {
|
|
super(hostname, port, id, heartbeat);
|
|
}
|
|
|
|
/**
|
|
* Construct a RemoteGossipMember with a heartbeat of 0.
|
|
*
|
|
* @param hostname
|
|
* The hostname or IP address.
|
|
* @param port
|
|
* The port number.
|
|
*/
|
|
public RemoteGossipMember(String hostname, int port, String id) {
|
|
super(hostname, port, id, System.currentTimeMillis());
|
|
}
|
|
}
|