diff --git a/src/main/java/org/apache/gossip/GossipMember.java b/src/main/java/org/apache/gossip/GossipMember.java index dbc84b2..58b1e91 100644 --- a/src/main/java/org/apache/gossip/GossipMember.java +++ b/src/main/java/org/apache/gossip/GossipMember.java @@ -35,7 +35,7 @@ public abstract class GossipMember implements Comparable { 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. */ @@ -43,15 +43,13 @@ public abstract class GossipMember implements Comparable { /** * 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; diff --git a/src/main/java/org/apache/gossip/RemoteGossipMember.java b/src/main/java/org/apache/gossip/RemoteGossipMember.java index 88c568a..a9e6a76 100644 --- a/src/main/java/org/apache/gossip/RemoteGossipMember.java +++ b/src/main/java/org/apache/gossip/RemoteGossipMember.java @@ -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); diff --git a/src/main/java/org/apache/gossip/StartupSettings.java b/src/main/java/org/apache/gossip/StartupSettings.java index 9475536..93757bd 100644 --- a/src/main/java/org/apache/gossip/StartupSettings.java +++ b/src/main/java/org/apache/gossip/StartupSettings.java @@ -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;