Skip to content

Commit

Permalink
Adding management of Hazelcast clsuter members IP when we use TCPIP c…
Browse files Browse the repository at this point in the history
…onfiguration
  • Loading branch information
ngaud committed Dec 2, 2020
1 parent e47eac3 commit 0bfe651
Showing 1 changed file with 32 additions and 0 deletions.
Expand Up @@ -125,6 +125,18 @@ class SreNetworkConfig {

var joinMethod : JoinMethod

public static val IP_LIST_CLUSTER = PREFIX + ".iplist"; // $NON-NLS-1$

/**
* Default value for the eArray of Cluster members IP addresses represented as Strings.
*/
public static val DEFAULT_IP_LIST_CLUSTER = "127.0.0.1"

/**
* Array of Cluster members IP addresses represented as Strings
*/
var memberList : String

@Accessors(PUBLIC_GETTER)
var portAutoIncrement : boolean = DEFAULT_PORT_AUTO_INCREMENT_VALUE

Expand Down Expand Up @@ -182,6 +194,26 @@ class SreNetworkConfig {
return this.clusterName
}

/** Replies the list of IP addresses of Hazelcast Cluster members as Strings.
*
* @return the list of IP addresses of Hazelcast Cluster members.
* @see #getClusterMemberList()
*/
def getClusterMemberList : String {
return this.memberList
}

/** Set the list of IP addresses of Hazelcast Cluster members as Strings.
*
* @param ips the list of IP addresses of Hazelcast Cluster members as Strings.
* @see #getExplicitClusterName()
* @see #getRealClusterName()
*/
def setClusterMemberList(ips : String) {
this.memberList = ips;
}


/** Change the name of the Hazelcast cluster name.
*
* @param name the new cluster name.
Expand Down

0 comments on commit 0bfe651

Please sign in to comment.