GOSSIP-20 Updated Javadocs to reflect URI objects, removed hostname and port references
This commit is contained in:
committed by
Rishabh Patel
parent
c4cb0d7c6c
commit
4e13c899f0
@ -35,7 +35,7 @@ public abstract class GossipMember implements Comparable<GossipMember> {
|
||||
protected final String clusterName;
|
||||
|
||||
/**
|
||||
* The purpose of the id field is to be able for nodes to identify themselves beyond there
|
||||
* The purpose of the id field is to be able for nodes to identify themselves beyond their
|
||||
* host/port. For example an application might generate a persistent id so if they rejoin the
|
||||
* cluster at a different host and port we are aware it is the same node.
|
||||
*/
|
||||
@ -44,14 +44,12 @@ public abstract class GossipMember implements Comparable<GossipMember> {
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param host
|
||||
* The hostname or IP address.
|
||||
* @param port
|
||||
* The port number.
|
||||
* @param uri
|
||||
* A URI object containing IP/hostname and port
|
||||
* @param heartbeat
|
||||
* The current heartbeat.
|
||||
* The current heartbeat
|
||||
* @param id
|
||||
* an id that may be replaced after contact
|
||||
* An id that may be replaced after contact
|
||||
*/
|
||||
public GossipMember(String clusterName, URI uri, String id, long heartbeat) {
|
||||
this.clusterName = clusterName;
|
||||
|
@ -30,12 +30,10 @@ public class RemoteGossipMember extends GossipMember {
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param hostname
|
||||
* The hostname or IP address.
|
||||
* @param port
|
||||
* The port number.
|
||||
* @param uri
|
||||
* A URI object containing IP/hostname and port
|
||||
* @param heartbeat
|
||||
* The current heartbeat.
|
||||
* The current heartbeat
|
||||
*/
|
||||
public RemoteGossipMember(String clusterName, URI uri, String id, long heartbeat) {
|
||||
super(clusterName, uri, id, heartbeat);
|
||||
|
@ -58,8 +58,8 @@ public class StartupSettings {
|
||||
*
|
||||
* @param id
|
||||
* The id to be used for this service
|
||||
* @param port
|
||||
* The port to start the service on.
|
||||
* @param uri
|
||||
* A URI object containing IP/hostname and port
|
||||
* @param logLevel
|
||||
* unused
|
||||
*/
|
||||
@ -80,8 +80,8 @@ public class StartupSettings {
|
||||
*
|
||||
* @param id
|
||||
* The id to be used for this service
|
||||
* @param port
|
||||
* The port to start the service on.
|
||||
* @param uri
|
||||
* A URI object containing IP/hostname and port
|
||||
*/
|
||||
public StartupSettings(String id, URI uri, GossipSettings gossipSettings, String cluster) {
|
||||
this.id = id;
|
||||
|
Reference in New Issue
Block a user