org.apache.cassandra.config

## Class Config

- java.lang.Object
- - org.apache.cassandra.config.Config

    public class Config
    extends java.lang.Object

A class that contains configuration properties for the cassandra node it runs within. Properties declared as volatile can be mutated via JMX.

### Nested Class Summary

Nested Classes
`static class` `Config.CommitFailurePolicy`
`static class` `Config.CommitLogSync`
`static class` `Config.DiskAccessMode`
`static class` `Config.DiskFailurePolicy`
`static class` `Config.InternodeCompression`
`static class` `Config.RequestSchedulerId`

### Field Summary

Fields
`java.lang.String` `authenticator`
`java.lang.String` `authorizer`
`java.lang.Boolean` `auto_bootstrap`
`java.lang.Boolean` `auto_snapshot`
`int` `batchlog_replay_throttle_in_kb`
`java.lang.String` `broadcast_address`
`java.lang.Long` `cas_contention_timeout_in_ms`
`EncryptionOptions.ClientEncryptionOptions` `client_encryption_options`
`java.lang.String` `cluster_name`
`java.lang.Integer` `column_index_size_in_kb`
`Config.CommitFailurePolicy` `commit_failure_policy`
`java.lang.String` `commitlog_directory`
`int` `commitlog_periodic_queue_size`
`int` `commitlog_segment_size_in_mb`
`Config.CommitLogSync` `commitlog_sync`
`java.lang.Double` `commitlog_sync_batch_window_in_ms`
`java.lang.Integer` `commitlog_sync_period_in_ms`
`java.lang.Integer` `commitlog_total_space_in_mb`
`boolean` `compaction_preheat_key_cache`
`java.lang.Integer` `compaction_throughput_mb_per_sec`
`java.lang.Integer` `concurrent_compactors`
`java.lang.Integer` `concurrent_reads`
`java.lang.Integer` `concurrent_replicates`
`java.lang.Integer` `concurrent_writes`
`boolean` `cross_node_timeout`
`java.lang.String[]` `data_file_directories`
`Config.DiskAccessMode` `disk_access_mode`
`Config.DiskFailurePolicy` `disk_failure_policy`
`java.lang.Boolean` `dynamic_snitch`
`java.lang.Double` `dynamic_snitch_badness_threshold`
`java.lang.Integer` `dynamic_snitch_reset_interval_in_ms`
`java.lang.Integer` `dynamic_snitch_update_interval_in_ms`
`EncryptionOptions.ServerEncryptionOptions` `encryption_options`
`java.lang.String` `endpoint_snitch`
`java.lang.Integer` `file_cache_size_in_mb`
`java.lang.String` `hinted_handoff_enabled`
`java.util.Set<java.lang.String>` `hinted_handoff_enabled_by_dc`
`boolean` `hinted_handoff_enabled_global`
`int` `hinted_handoff_throttle_in_kb`
`java.lang.Integer` `in_memory_compaction_limit_in_mb`
`boolean` `incremental_backups`
`java.lang.Integer` `index_interval` Deprecated.
`java.lang.String` `initial_token`
`boolean` `inter_dc_tcp_nodelay`
`java.lang.String` `internode_authenticator`
`Config.InternodeCompression` `internode_compression`
`java.lang.Integer` `internode_recv_buff_size_in_bytes`
`java.lang.Integer` `internode_send_buff_size_in_bytes`
`int` `key_cache_keys_to_save`
`int` `key_cache_save_period`
`java.lang.Long` `key_cache_size_in_mb`
`java.lang.String` `listen_address`
`java.lang.Integer` `max_hint_window_in_ms`
`int` `max_hints_delivery_threads`
`java.lang.Integer` `max_streaming_retries`
`java.lang.String` `memory_allocator`
`java.lang.String` `memtable_allocator`
`int` `memtable_flush_queue_size`
`java.lang.Integer` `memtable_flush_writers`
`java.lang.Integer` `memtable_total_space_in_mb`
`java.lang.Boolean` `multithreaded_compaction`
`java.lang.Integer` `native_transport_max_frame_size_in_mb`
`java.lang.Integer` `native_transport_max_threads`
`java.lang.Integer` `native_transport_port`
`java.lang.Integer` `num_tokens`
`java.lang.String` `partitioner`
`int` `permissions_validity_in_ms`
`java.lang.Double` `phi_convict_threshold`
`boolean` `populate_io_cache_on_flush`
`boolean` `preheat_kernel_page_cache`
`java.lang.Long` `range_request_timeout_in_ms`
`java.lang.Long` `read_request_timeout_in_ms`
`java.lang.String` `request_scheduler`
`Config.RequestSchedulerId` `request_scheduler_id`
`RequestSchedulerOptions` `request_scheduler_options`
`java.lang.Long` `request_timeout_in_ms`
`int` `row_cache_keys_to_save`
`int` `row_cache_save_period`
`long` `row_cache_size_in_mb`
`java.lang.String` `rpc_address`
`java.lang.Boolean` `rpc_keepalive`
`java.lang.Integer` `rpc_max_threads`
`java.lang.Integer` `rpc_min_threads`
`java.lang.Integer` `rpc_port`
`java.lang.Integer` `rpc_recv_buff_size_in_bytes`
`java.lang.Integer` `rpc_send_buff_size_in_bytes`
`java.lang.String` `rpc_server_type`
`java.lang.String` `saved_caches_directory`
`SeedProviderDef` `seed_provider`
`EncryptionOptions.ServerEncryptionOptions` `server_encryption_options`
`java.lang.Boolean` `snapshot_before_compaction`
`java.lang.Integer` `ssl_storage_port`
`java.lang.Boolean` `start_native_transport`
`java.lang.Boolean` `start_rpc`
`java.lang.Integer` `storage_port`
`java.lang.Integer` `stream_throughput_outbound_megabits_per_sec`
`java.lang.Integer` `streaming_socket_timeout_in_ms`
`java.lang.Integer` `thrift_framed_transport_size_in_mb`
`java.lang.Integer` `thrift_max_message_length_in_mb` Deprecated.
`int` `tombstone_failure_threshold`
`int` `tombstone_warn_threshold`
`boolean` `trickle_fsync`
`int` `trickle_fsync_interval_in_kb`
`java.lang.Long` `truncate_request_timeout_in_ms`
`java.lang.Long` `write_request_timeout_in_ms`

### Constructor Summary

Constructors
Constructor and Description
`Config()`

### Method Summary

Methods
`void` `configHintedHandoff()`
`static boolean` `getOutboundBindAny()`
`static boolean` `isClientMode()`
`static java.util.List<java.lang.String>` `parseHintedHandoffEnabledDCs(java.lang.String dcNames)`
`static void` `setClientMode(boolean clientMode)`
`static void` `setOutboundBindAny(boolean value)`

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

### Field Detail

#### cluster_name

    public java.lang.String cluster_name

#### authenticator

    public java.lang.String authenticator

#### authorizer

    public java.lang.String authorizer

#### permissions_validity_in_ms

    public int permissions_validity_in_ms

#### partitioner

    public java.lang.String partitioner

#### auto_bootstrap

    public java.lang.Boolean auto_bootstrap

#### hinted_handoff_enabled_global

    public volatile boolean hinted_handoff_enabled_global

#### hinted_handoff_enabled

    public java.lang.String hinted_handoff_enabled

#### hinted_handoff_enabled_by_dc

    public java.util.Set<java.lang.String> hinted_handoff_enabled_by_dc

#### max_hint_window_in_ms

    public volatile java.lang.Integer max_hint_window_in_ms

#### seed_provider

    public SeedProviderDef seed_provider

#### disk_access_mode

    public Config.DiskAccessMode disk_access_mode

#### disk_failure_policy

    public Config.DiskFailurePolicy disk_failure_policy

#### commit_failure_policy

    public Config.CommitFailurePolicy commit_failure_policy

#### initial_token

    public java.lang.String initial_token

#### num_tokens

    public java.lang.Integer num_tokens

#### request_timeout_in_ms

    public volatile java.lang.Long request_timeout_in_ms

#### read_request_timeout_in_ms

    public java.lang.Long read_request_timeout_in_ms

#### range_request_timeout_in_ms

    public java.lang.Long range_request_timeout_in_ms

#### write_request_timeout_in_ms

    public java.lang.Long write_request_timeout_in_ms

#### cas_contention_timeout_in_ms

    public java.lang.Long cas_contention_timeout_in_ms

#### truncate_request_timeout_in_ms

    public java.lang.Long truncate_request_timeout_in_ms

#### streaming_socket_timeout_in_ms

    public java.lang.Integer streaming_socket_timeout_in_ms

#### cross_node_timeout

    public boolean cross_node_timeout

#### phi_convict_threshold

    public volatile java.lang.Double phi_convict_threshold

#### concurrent_reads

    public java.lang.Integer concurrent_reads

#### concurrent_writes

    public java.lang.Integer concurrent_writes

#### concurrent_replicates

    public java.lang.Integer concurrent_replicates

#### memtable_flush_writers

    public java.lang.Integer memtable_flush_writers

#### memtable_total_space_in_mb

    public java.lang.Integer memtable_total_space_in_mb

#### storage_port

    public java.lang.Integer storage_port

#### ssl_storage_port

    public java.lang.Integer ssl_storage_port

#### listen_address

    public java.lang.String listen_address

#### broadcast_address

    public java.lang.String broadcast_address

#### internode_authenticator

    public java.lang.String internode_authenticator

#### start_rpc

    public java.lang.Boolean start_rpc

#### rpc_address

    public java.lang.String rpc_address

#### rpc_port

    public java.lang.Integer rpc_port

#### rpc_server_type

    public java.lang.String rpc_server_type

#### rpc_keepalive

    public java.lang.Boolean rpc_keepalive

#### rpc_min_threads

    public java.lang.Integer rpc_min_threads

#### rpc_max_threads

    public java.lang.Integer rpc_max_threads

#### rpc_send_buff_size_in_bytes

    public java.lang.Integer rpc_send_buff_size_in_bytes

#### rpc_recv_buff_size_in_bytes

    public java.lang.Integer rpc_recv_buff_size_in_bytes

#### internode_send_buff_size_in_bytes

    public java.lang.Integer internode_send_buff_size_in_bytes

#### internode_recv_buff_size_in_bytes

    public java.lang.Integer internode_recv_buff_size_in_bytes

#### start_native_transport

    public java.lang.Boolean start_native_transport

#### native_transport_port

    public java.lang.Integer native_transport_port

#### native_transport_max_threads

    public java.lang.Integer native_transport_max_threads

#### native_transport_max_frame_size_in_mb

    public java.lang.Integer native_transport_max_frame_size_in_mb

#### thrift_max_message_length_in_mb

    @Deprecated
    public java.lang.Integer thrift_max_message_length_in_mb

Deprecated.

#### thrift_framed_transport_size_in_mb

    public java.lang.Integer thrift_framed_transport_size_in_mb

#### snapshot_before_compaction

    public java.lang.Boolean snapshot_before_compaction

#### auto_snapshot

    public java.lang.Boolean auto_snapshot

#### column_index_size_in_kb

    public java.lang.Integer column_index_size_in_kb

#### in_memory_compaction_limit_in_mb

    public java.lang.Integer in_memory_compaction_limit_in_mb

#### concurrent_compactors

    public java.lang.Integer concurrent_compactors

#### compaction_throughput_mb_per_sec

    public volatile java.lang.Integer compaction_throughput_mb_per_sec

#### multithreaded_compaction

    public java.lang.Boolean multithreaded_compaction

#### max_streaming_retries

    public java.lang.Integer max_streaming_retries

#### stream_throughput_outbound_megabits_per_sec

    public volatile java.lang.Integer stream_throughput_outbound_megabits_per_sec

#### data_file_directories

    public java.lang.String[] data_file_directories

#### saved_caches_directory

    public java.lang.String saved_caches_directory

#### commitlog_directory

    public java.lang.String commitlog_directory

#### commitlog_total_space_in_mb

    public java.lang.Integer commitlog_total_space_in_mb

#### commitlog_sync

    public Config.CommitLogSync commitlog_sync

#### commitlog_sync_batch_window_in_ms

    public java.lang.Double commitlog_sync_batch_window_in_ms

#### commitlog_sync_period_in_ms

    public java.lang.Integer commitlog_sync_period_in_ms

#### commitlog_segment_size_in_mb

    public int commitlog_segment_size_in_mb

#### commitlog_periodic_queue_size

    public int commitlog_periodic_queue_size

#### endpoint_snitch

    public java.lang.String endpoint_snitch

#### dynamic_snitch

    public java.lang.Boolean dynamic_snitch

#### dynamic_snitch_update_interval_in_ms

    public java.lang.Integer dynamic_snitch_update_interval_in_ms

#### dynamic_snitch_reset_interval_in_ms

    public java.lang.Integer dynamic_snitch_reset_interval_in_ms

#### dynamic_snitch_badness_threshold

    public java.lang.Double dynamic_snitch_badness_threshold

#### request_scheduler

    public java.lang.String request_scheduler

#### request_scheduler_id

    public Config.RequestSchedulerId request_scheduler_id

#### request_scheduler_options

    public RequestSchedulerOptions request_scheduler_options

#### server_encryption_options

    public EncryptionOptions.ServerEncryptionOptions server_encryption_options

#### client_encryption_options

    public EncryptionOptions.ClientEncryptionOptions client_encryption_options

#### encryption_options

    public EncryptionOptions.ServerEncryptionOptions encryption_options

#### internode_compression

    public Config.InternodeCompression internode_compression

#### index_interval

    @Deprecated
    public java.lang.Integer index_interval

Deprecated.

#### hinted_handoff_throttle_in_kb

    public int hinted_handoff_throttle_in_kb

#### batchlog_replay_throttle_in_kb

    public int batchlog_replay_throttle_in_kb

#### max_hints_delivery_threads

    public int max_hints_delivery_threads

#### compaction_preheat_key_cache

    public boolean compaction_preheat_key_cache

#### incremental_backups

    public volatile boolean incremental_backups

#### memtable_flush_queue_size

    public int memtable_flush_queue_size

#### trickle_fsync

    public boolean trickle_fsync

#### trickle_fsync_interval_in_kb

    public int trickle_fsync_interval_in_kb

#### key_cache_size_in_mb

    public java.lang.Long key_cache_size_in_mb

#### key_cache_save_period

    public volatile int key_cache_save_period

#### key_cache_keys_to_save

    public int key_cache_keys_to_save

#### row_cache_size_in_mb

    public long row_cache_size_in_mb

#### row_cache_save_period

    public volatile int row_cache_save_period

#### row_cache_keys_to_save

    public int row_cache_keys_to_save

#### memory_allocator

    public java.lang.String memory_allocator

#### populate_io_cache_on_flush

    public boolean populate_io_cache_on_flush

#### preheat_kernel_page_cache

    public boolean preheat_kernel_page_cache

#### file_cache_size_in_mb

    public java.lang.Integer file_cache_size_in_mb

#### inter_dc_tcp_nodelay

    public boolean inter_dc_tcp_nodelay

#### memtable_allocator

    public java.lang.String memtable_allocator

#### tombstone_warn_threshold

    public volatile int tombstone_warn_threshold

#### tombstone_failure_threshold

    public volatile int tombstone_failure_threshold

### Constructor Detail

#### Config

    public Config()

### Method Detail

#### getOutboundBindAny

    public static boolean getOutboundBindAny()

#### setOutboundBindAny

    public static void setOutboundBindAny(boolean value)

#### isClientMode

    public static boolean isClientMode()

#### setClientMode

    public static void setClientMode(boolean clientMode)

#### configHintedHandoff

    public void configHintedHandoff()
                             throws ConfigurationException

Throws:
  `ConfigurationException`

#### parseHintedHandoffEnabledDCs

    public static java.util.List<java.lang.String> parseHintedHandoffEnabledDCs(java.lang.String dcNames)
                                                                         throws java.io.IOException

Throws:
  `java.io.IOException`