Annotation Interface Zone
Describes a distribution zone.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionStorage profiles.The name of the zone. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionConsistency mode.intDeprecated.intTimeout in seconds between node left topology event itself and data nodes switch.intTimeout in seconds between node added topology event itself and data nodes switch.Distribution algorithm.Nodes filter.intNumber of partitions.intQuorum size.intNumber of replicas.
-
Element Details
-
value
String valueThe name of the zone. If it's empty, the name of the class annotated with this annotation will be used.The name is an SQL identifier expression, read the same way
CREATE ZONEreads it: an unquoted name is folded to upper case, a double-quoted name is taken literally. A name that is not a valid SQL identifier is rejected.- Returns:
- The name of the zone.
-
storageProfiles
String storageProfilesStorage profiles.- Returns:
- Storage profiles.
-
-
-
partitions
int partitionsNumber of partitions.- Returns:
- Number of partitions.
- Default:
- -1
-
replicas
int replicasNumber of replicas.- Returns:
- Number of replicas.
- Default:
- -1
-
quorumSize
int quorumSizeQuorum size.- Returns:
- Quorum size.
- Default:
- -1
-
distributionAlgorithm
String distributionAlgorithmDistribution algorithm.- Returns:
- Distribution algorithm.
- Default:
- ""
-
dataNodesAutoAdjust
Deprecated.Deprecated, should not be used anymore. Timeout in seconds between node added or node left topology event itself and data nodes switch.- Returns:
- Timeout.
- Default:
- -1
-
dataNodesAutoAdjustScaleUp
int dataNodesAutoAdjustScaleUpTimeout in seconds between node added topology event itself and data nodes switch.- Returns:
- Timeout.
- Default:
- -1
-
dataNodesAutoAdjustScaleDown
int dataNodesAutoAdjustScaleDownTimeout in seconds between node left topology event itself and data nodes switch.- Returns:
- Timeout.
- Default:
- -1
-
filter
String filterNodes filter.- Returns:
- Nodes filter.
- Default:
- ""
-
consistencyMode
String consistencyModeConsistency mode.- Returns:
- Consistency mode.
- Default:
- ""
-