Class HazelcastNetworkClusterProperties
java.lang.Object
org.apereo.cas.configuration.model.support.hazelcast.HazelcastNetworkClusterProperties
- All Implemented Interfaces:
Serializable
@RequiresModule(name="cas-server-support-hazelcast-core")
public class HazelcastNetworkClusterProperties
extends Object
implements Serializable
This is
HazelcastNetworkClusterProperties
.- Since:
- 6.4.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIf this property is set, then this is the address where the server socket is bound to.Sets the well known members.You can specify which network interfaces that Hazelcast should use.The outbound ports for the Hazelcast configuration.int
getPort()
You can specify the ports which Hazelcast will use to communicate between cluster members.The default public address to be advertised to other cluster members and clients.getSsl()
You can use the SSL (Secure Sockets Layer) protocol to establish an encrypted communication across your Hazelcast cluster with key stores and trust stores.boolean
IPv6 support has been switched off by default, since some platforms have issues in use of IPv6 stack.boolean
You may also want to choose to use only one port.boolean
Enable TCP/IP config.setIpv4Enabled
(boolean ipv4Enabled) IPv6 support has been switched off by default, since some platforms have issues in use of IPv6 stack.setLocalAddress
(String localAddress) If this property is set, then this is the address where the server socket is bound to.setMembers
(List<String> members) Sets the well known members.setNetworkInterfaces
(String networkInterfaces) You can specify which network interfaces that Hazelcast should use.setOutboundPorts
(List<String> outboundPorts) The outbound ports for the Hazelcast configuration.setPort
(int port) You can specify the ports which Hazelcast will use to communicate between cluster members.setPortAutoIncrement
(boolean portAutoIncrement) You may also want to choose to use only one port.setPublicAddress
(String publicAddress) The default public address to be advertised to other cluster members and clients.You can use the SSL (Secure Sockets Layer) protocol to establish an encrypted communication across your Hazelcast cluster with key stores and trust stores.setTcpipEnabled
(boolean tcpipEnabled) Enable TCP/IP config.
-
Constructor Details
-
HazelcastNetworkClusterProperties
public HazelcastNetworkClusterProperties()
-
-
Method Details
-
isTcpipEnabled
public boolean isTcpipEnabled()Enable TCP/IP config. Contains the configuration for the Tcp/Ip join mechanism. The Tcp/Ip join mechanism relies on one or more well known members. So when a new member wants to join a cluster, it will try to connect to one of the well known members. If it is able to connect, it will now about all members in the cluster and doesn't rely on these well known members anymore. -
getMembers
Sets the well known members. If members is empty, calling this method will have the same effect as callingclear()
. A member can be a comma separated string, e..g10.11.12.1,10.11.12.2
which indicates multiple members are going to be added. The list of members must include ALL CAS server node, including the current node that owns this configuration. -
isPortAutoIncrement
public boolean isPortAutoIncrement()You may also want to choose to use only one port. In that case, you can disable the auto-increment feature of port. -
getPort
public int getPort()You can specify the ports which Hazelcast will use to communicate between cluster members. The name of the parameter for this is port and its default value is 5701. By default, Hazelcast will try 100 ports to bind. Meaning that, if you set the value of port as 5701, as members are joining to the cluster, Hazelcast tries to find ports between 5701 and 5801. -
getOutboundPorts
The outbound ports for the Hazelcast configuration. -
getLocalAddress
If this property is set, then this is the address where the server socket is bound to. -
getPublicAddress
The default public address to be advertised to other cluster members and clients. -
getNetworkInterfaces
You can specify which network interfaces that Hazelcast should use. Servers mostly have more than one network interface, so you may want to list the valid IPs. Range characters ('*' and '-') can be used for simplicity. For instance, 10.3.10.* refers to IPs between 10.3.10.0 and 10.3.10.255. Interface 10.3.10.4-18 refers to IPs between 10.3.10.4 and 10.3.10.18 (4 and 18 included). If network interface configuration is enabled (it is disabled by default) and if Hazelcast cannot find an matching interface, then it will print a message on the console and will not start on that node.Interfaces can be separated by a comma.
-
isIpv4Enabled
public boolean isIpv4Enabled()IPv6 support has been switched off by default, since some platforms have issues in use of IPv6 stack. And some other platforms such as Amazon AWS have no support at all. To enable IPv6 support set this setting to false. -
getSsl
You can use the SSL (Secure Sockets Layer) protocol to establish an encrypted communication across your Hazelcast cluster with key stores and trust stores. -
setTcpipEnabled
Enable TCP/IP config. Contains the configuration for the Tcp/Ip join mechanism. The Tcp/Ip join mechanism relies on one or more well known members. So when a new member wants to join a cluster, it will try to connect to one of the well known members. If it is able to connect, it will now about all members in the cluster and doesn't rely on these well known members anymore.- Returns:
this
.
-
setMembers
Sets the well known members. If members is empty, calling this method will have the same effect as callingclear()
. A member can be a comma separated string, e..g10.11.12.1,10.11.12.2
which indicates multiple members are going to be added. The list of members must include ALL CAS server node, including the current node that owns this configuration.- Returns:
this
.
-
setPortAutoIncrement
You may also want to choose to use only one port. In that case, you can disable the auto-increment feature of port.- Returns:
this
.
-
setPort
You can specify the ports which Hazelcast will use to communicate between cluster members. The name of the parameter for this is port and its default value is 5701. By default, Hazelcast will try 100 ports to bind. Meaning that, if you set the value of port as 5701, as members are joining to the cluster, Hazelcast tries to find ports between 5701 and 5801.- Returns:
this
.
-
setOutboundPorts
The outbound ports for the Hazelcast configuration.- Returns:
this
.
-
setLocalAddress
If this property is set, then this is the address where the server socket is bound to.- Returns:
this
.
-
setPublicAddress
The default public address to be advertised to other cluster members and clients.- Returns:
this
.
-
setNetworkInterfaces
You can specify which network interfaces that Hazelcast should use. Servers mostly have more than one network interface, so you may want to list the valid IPs. Range characters ('*' and '-') can be used for simplicity. For instance, 10.3.10.* refers to IPs between 10.3.10.0 and 10.3.10.255. Interface 10.3.10.4-18 refers to IPs between 10.3.10.4 and 10.3.10.18 (4 and 18 included). If network interface configuration is enabled (it is disabled by default) and if Hazelcast cannot find an matching interface, then it will print a message on the console and will not start on that node.Interfaces can be separated by a comma.
- Returns:
this
.
-
setIpv4Enabled
IPv6 support has been switched off by default, since some platforms have issues in use of IPv6 stack. And some other platforms such as Amazon AWS have no support at all. To enable IPv6 support set this setting to false.- Returns:
this
.
-
setSsl
You can use the SSL (Secure Sockets Layer) protocol to establish an encrypted communication across your Hazelcast cluster with key stores and trust stores.- Returns:
this
.
-