fix gossiping port as id
This commit is contained in:
@ -40,8 +40,8 @@ public abstract class GossipMember {
|
|||||||
public GossipMember(String host, int port, String id, int heartbeat) {
|
public GossipMember(String host, int port, String id, int heartbeat) {
|
||||||
_host = host;
|
_host = host;
|
||||||
_port = port;
|
_port = port;
|
||||||
_heartbeat = heartbeat;
|
|
||||||
_id = id;
|
_id = id;
|
||||||
|
_heartbeat = heartbeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -90,7 +90,7 @@ abstract public class PassiveGossipThread implements Runnable {
|
|||||||
RemoteGossipMember member = new RemoteGossipMember(
|
RemoteGossipMember member = new RemoteGossipMember(
|
||||||
memberJSONObject.getString(GossipMember.JSON_HOST),
|
memberJSONObject.getString(GossipMember.JSON_HOST),
|
||||||
memberJSONObject.getInt(GossipMember.JSON_PORT),
|
memberJSONObject.getInt(GossipMember.JSON_PORT),
|
||||||
memberJSONObject.getString(GossipMember.JSON_PORT),
|
memberJSONObject.getString(GossipMember.JSON_ID),
|
||||||
memberJSONObject.getInt(GossipMember.JSON_HEARTBEAT));
|
memberJSONObject.getInt(GossipMember.JSON_HEARTBEAT));
|
||||||
GossipService.LOGGER.debug(member.toString());
|
GossipService.LOGGER.debug(member.toString());
|
||||||
// This is the first member found, so this should be the member who is communicating
|
// This is the first member found, so this should be the member who is communicating
|
||||||
|
Reference in New Issue
Block a user