Package net.webpdf.wsclient.openapi
Class ClusterSettings
- java.lang.Object
-
- net.webpdf.wsclient.openapi.ClusterSettings
-
public class ClusterSettings extends Object
Settings for the cluster
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CONNECT_TIMEOUTstatic StringJSON_PROPERTY_MODEstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_NODE_NAMEstatic StringJSON_PROPERTY_ROLEstatic StringJSON_PROPERTY_SECRET_KEYstatic StringJSON_PROPERTY_STOP_ON_ERROR
-
Constructor Summary
Constructors Constructor Description ClusterSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterSettingsconnectTimeout(Integer connectTimeout)booleanequals(Object o)@Nullable IntegergetConnectTimeout()Defines the number of milliseconds that a server node waits when it joins the cluster (e.g. when waiting for a coordinator server node)@Nullable ClusterModegetMode()Get mode@Nullable StringgetName()Defines the name of the cluster.@Nullable StringgetNodeName()Defines the name for the node.@Nullable ClusterRolegetRole()Get role@Nullable StringgetSecretKey()The encryption key used for communication in the cluster between the nodes.@Nullable BooleangetStopOnError()If 'true', the server node is also started if an error has occurred (e.g. when joining the cluster).inthashCode()ClusterSettingsmode(ClusterMode mode)ClusterSettingsname(String name)ClusterSettingsnodeName(String nodeName)ClusterSettingsrole(ClusterRole role)ClusterSettingssecretKey(String secretKey)voidsetConnectTimeout(Integer connectTimeout)voidsetMode(ClusterMode mode)voidsetName(String name)voidsetNodeName(String nodeName)voidsetRole(ClusterRole role)voidsetSecretKey(String secretKey)voidsetStopOnError(Boolean stopOnError)ClusterSettingsstopOnError(Boolean stopOnError)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CONNECT_TIMEOUT
public static final String JSON_PROPERTY_CONNECT_TIMEOUT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MODE
public static final String JSON_PROPERTY_MODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NODE_NAME
public static final String JSON_PROPERTY_NODE_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ROLE
public static final String JSON_PROPERTY_ROLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SECRET_KEY
public static final String JSON_PROPERTY_SECRET_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STOP_ON_ERROR
public static final String JSON_PROPERTY_STOP_ON_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
connectTimeout
public ClusterSettings connectTimeout(Integer connectTimeout)
-
getConnectTimeout
@Nullable public @Nullable Integer getConnectTimeout()
Defines the number of milliseconds that a server node waits when it joins the cluster (e.g. when waiting for a coordinator server node)- Returns:
- connectTimeout
-
setConnectTimeout
public void setConnectTimeout(Integer connectTimeout)
-
mode
public ClusterSettings mode(ClusterMode mode)
-
getMode
@Nullable public @Nullable ClusterMode getMode()
Get mode- Returns:
- mode
-
setMode
public void setMode(ClusterMode mode)
-
name
public ClusterSettings name(String name)
-
getName
@Nullable public @Nullable String getName()
Defines the name of the cluster. If the server node has a coordinator role, the cluster is created under this name. If the server node has the role of a member, the node attempts to join the cluster with this name.- Returns:
- name
-
setName
public void setName(String name)
-
nodeName
public ClusterSettings nodeName(String nodeName)
-
getNodeName
@Nullable public @Nullable String getNodeName()
Defines the name for the node. If it is empty, the host name of the machine is used.- Returns:
- nodeName
-
setNodeName
public void setNodeName(String nodeName)
-
role
public ClusterSettings role(ClusterRole role)
-
getRole
@Nullable public @Nullable ClusterRole getRole()
Get role- Returns:
- role
-
setRole
public void setRole(ClusterRole role)
-
secretKey
public ClusterSettings secretKey(String secretKey)
-
getSecretKey
@Nullable public @Nullable String getSecretKey()
The encryption key used for communication in the cluster between the nodes. All nodes must use the same 64-digit hexadecimal encryption key. The encryption key is created when the cluster is initialized.- Returns:
- secretKey
-
setSecretKey
public void setSecretKey(String secretKey)
-
stopOnError
public ClusterSettings stopOnError(Boolean stopOnError)
-
getStopOnError
@Nullable public @Nullable Boolean getStopOnError()
If 'true', the server node is also started if an error has occurred (e.g. when joining the cluster).- Returns:
- stopOnError
-
setStopOnError
public void setStopOnError(Boolean stopOnError)
-
-