com.supermap.server.config
Class ClusterSetting
- java.lang.Object
-
- com.supermap.server.config.ClusterSetting
-
public class ClusterSetting extends java.lang.ObjectThe cluster setting information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classClusterSetting.StatusThe cluster status enumeration.
-
Field Summary
Fields Modifier and Type Field and Description java.lang.StringaddressCluster service address.AsyncClientSettingasyncClientSettingThe asynchronous client configuration when the cluster forwardsClusterSendRequestModeclusterRequestClientModeThe client type when the cluster forwards the requestintconnectTimeoutThe child node connection timeout when using cluster service.java.lang.IntegerdataSyncIntervalThe time interval of updating the data file.static intDEFAULT_CONNECT_TIMEOUTstatic intDEFAULT_READ_TIMEOUTbooleanenabledWhether the cluster is enabled.java.lang.StringexcludeFormatsCan not deploy/sync data formats to the controlled child node, separated by commas, such as "md5,txt,rmvb".java.lang.StringincludeFormatsDeploy/Sync data formats to the controlled child node, separated by commas, such as "smwu,udd,png".java.lang.StringlocalAddressUse the cluster iServer address.intreadTimeoutThe timeout of reading the request contents from the child node while clustering.java.util.List<ReporterSetting>reportersReporter information list, that is, the configuration information list that the application to cluster service.ClusterSetting.StatusstatusCluster status.java.lang.StringtokenThe credentials when using cluster.java.lang.BooleanuseLocalClusterWhether to use local cluster service.
-
Constructor Summary
Constructors Constructor and Description ClusterSetting()
-
Method Summary
Methods Modifier and Type Method and Description ClusterSettingcopy()booleanequals(java.lang.Object obj)To determine whether the two objects are equal.inthashCode()Offer the hashCode method.
-
-
-
Field Detail
-
DEFAULT_CONNECT_TIMEOUT
public static final int DEFAULT_CONNECT_TIMEOUT
-
DEFAULT_READ_TIMEOUT
public static final int DEFAULT_READ_TIMEOUT
-
address
public java.lang.String address
Cluster service address.
-
enabled
public boolean enabled
Whether the cluster is enabled.
-
useLocalCluster
public java.lang.Boolean useLocalCluster
Whether to use local cluster service.
-
token
public java.lang.String token
The credentials when using cluster.
-
connectTimeout
public int connectTimeout
The child node connection timeout when using cluster service. The unit is millisecond.
- Since:
- 6.1.3
-
readTimeout
public int readTimeout
The timeout of reading the request contents from the child node while clustering. The timeout unit is millisecond.
-
dataSyncInterval
public java.lang.Integer dataSyncInterval
The time interval of updating the data file. The unit is minutes, the default is 30 minutes, hiding property.
- Since:
- 6.1.3
-
includeFormats
public java.lang.String includeFormats
Deploy/Sync data formats to the controlled child node, separated by commas, such as "smwu,udd,png". This field is no insignificance in this request.
- Since:
- 6.1.3
-
excludeFormats
public java.lang.String excludeFormats
Can not deploy/sync data formats to the controlled child node, separated by commas, such as "md5,txt,rmvb".
- Since:
- 6.1.3
-
reporters
public java.util.List<ReporterSetting> reporters
Reporter information list, that is, the configuration information list that the application to cluster service.
-
localAddress
public java.lang.String localAddress
Use the cluster iServer address. It can be accessed by the cluster service.
- Since:
- 7.0.1
-
status
public ClusterSetting.Status status
Cluster status. It is valid only whenenabledis true.
-
clusterRequestClientMode
public ClusterSendRequestMode clusterRequestClientMode
The client type when the cluster forwards the request
- Since:
- 8.0.0
-
asyncClientSetting
public AsyncClientSetting asyncClientSetting
The asynchronous client configuration when the cluster forwards
- Since:
- 8.0.0
-
-
Method Detail
-
copy
public ClusterSetting copy()
-
equals
public final boolean equals(java.lang.Object obj)
To determine whether the two objects are equal.
- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the object to be compared.- Returns:
- a value indicating whether the two objects are equal, true that the two objects are equal.
-
hashCode
public int hashCode()
Offer the hashCode method.- Overrides:
hashCodein classjava.lang.Object
-
-