pub struct SystemParams {Show 18 fields
pub barrier_interval_ms: Option<u32>,
pub checkpoint_frequency: Option<u64>,
pub sstable_size_mb: Option<u32>,
pub block_size_kb: Option<u32>,
pub bloom_false_positive: Option<f64>,
pub state_store: Option<String>,
pub data_directory: Option<String>,
pub backup_storage_url: Option<String>,
pub backup_storage_directory: Option<String>,
pub telemetry_enabled: Option<bool>,
pub parallel_compact_size_mb: Option<u32>,
pub max_concurrent_creating_streaming_jobs: Option<u32>,
pub pause_on_next_bootstrap: Option<bool>,
pub wasm_storage_url: Option<String>,
pub enable_tracing: Option<bool>,
pub use_new_object_prefix_strategy: Option<bool>,
pub license_key: Option<String>,
pub time_travel_retention_ms: Option<u64>,
}
Expand description
The schema for persisted system parameters. Note on backward compatibility:
- Do not remove deprecated fields. Mark them as deprecated instead.
- Do not rename existing fields, since each field is stored separately in the meta store with the field name as the key.
- To modify (rename, change the type or semantic of) a field, introduce a new field suffixed by the version.
Fields§
§barrier_interval_ms: Option<u32>
§checkpoint_frequency: Option<u64>
§sstable_size_mb: Option<u32>
§block_size_kb: Option<u32>
§bloom_false_positive: Option<f64>
§state_store: Option<String>
§data_directory: Option<String>
§backup_storage_url: Option<String>
§backup_storage_directory: Option<String>
§telemetry_enabled: Option<bool>
Deprecated. Use config file instead.
parallel_compact_size_mb: Option<u32>
§max_concurrent_creating_streaming_jobs: Option<u32>
§pause_on_next_bootstrap: Option<bool>
§wasm_storage_url: Option<String>
enable_tracing: Option<bool>
§use_new_object_prefix_strategy: Option<bool>
§license_key: Option<String>
§time_travel_retention_ms: Option<u64>
Implementations§
source§impl SystemParams
impl SystemParams
sourcepub fn barrier_interval_ms(&self) -> u32
pub fn barrier_interval_ms(&self) -> u32
Returns the value of barrier_interval_ms
, or the default value if barrier_interval_ms
is unset.
sourcepub fn checkpoint_frequency(&self) -> u64
pub fn checkpoint_frequency(&self) -> u64
Returns the value of checkpoint_frequency
, or the default value if checkpoint_frequency
is unset.
sourcepub fn sstable_size_mb(&self) -> u32
pub fn sstable_size_mb(&self) -> u32
Returns the value of sstable_size_mb
, or the default value if sstable_size_mb
is unset.
sourcepub fn block_size_kb(&self) -> u32
pub fn block_size_kb(&self) -> u32
Returns the value of block_size_kb
, or the default value if block_size_kb
is unset.
sourcepub fn bloom_false_positive(&self) -> f64
pub fn bloom_false_positive(&self) -> f64
Returns the value of bloom_false_positive
, or the default value if bloom_false_positive
is unset.
sourcepub fn state_store(&self) -> &str
pub fn state_store(&self) -> &str
Returns the value of state_store
, or the default value if state_store
is unset.
sourcepub fn data_directory(&self) -> &str
pub fn data_directory(&self) -> &str
Returns the value of data_directory
, or the default value if data_directory
is unset.
sourcepub fn backup_storage_url(&self) -> &str
pub fn backup_storage_url(&self) -> &str
Returns the value of backup_storage_url
, or the default value if backup_storage_url
is unset.
sourcepub fn backup_storage_directory(&self) -> &str
pub fn backup_storage_directory(&self) -> &str
Returns the value of backup_storage_directory
, or the default value if backup_storage_directory
is unset.
sourcepub fn telemetry_enabled(&self) -> bool
pub fn telemetry_enabled(&self) -> bool
Returns the value of telemetry_enabled
, or the default value if telemetry_enabled
is unset.
sourcepub fn parallel_compact_size_mb(&self) -> u32
pub fn parallel_compact_size_mb(&self) -> u32
Returns the value of parallel_compact_size_mb
, or the default value if parallel_compact_size_mb
is unset.
sourcepub fn max_concurrent_creating_streaming_jobs(&self) -> u32
pub fn max_concurrent_creating_streaming_jobs(&self) -> u32
Returns the value of max_concurrent_creating_streaming_jobs
, or the default value if max_concurrent_creating_streaming_jobs
is unset.
sourcepub fn pause_on_next_bootstrap(&self) -> bool
pub fn pause_on_next_bootstrap(&self) -> bool
Returns the value of pause_on_next_bootstrap
, or the default value if pause_on_next_bootstrap
is unset.
sourcepub fn wasm_storage_url(&self) -> &str
pub fn wasm_storage_url(&self) -> &str
Returns the value of wasm_storage_url
, or the default value if wasm_storage_url
is unset.
sourcepub fn enable_tracing(&self) -> bool
pub fn enable_tracing(&self) -> bool
Returns the value of enable_tracing
, or the default value if enable_tracing
is unset.
sourcepub fn use_new_object_prefix_strategy(&self) -> bool
pub fn use_new_object_prefix_strategy(&self) -> bool
Returns the value of use_new_object_prefix_strategy
, or the default value if use_new_object_prefix_strategy
is unset.
sourcepub fn license_key(&self) -> &str
pub fn license_key(&self) -> &str
Returns the value of license_key
, or the default value if license_key
is unset.
sourcepub fn time_travel_retention_ms(&self) -> u64
pub fn time_travel_retention_ms(&self) -> u64
Returns the value of time_travel_retention_ms
, or the default value if time_travel_retention_ms
is unset.
source§impl SystemParams
impl SystemParams
pub fn get_barrier_interval_ms(&self) -> Result<&u32, PbFieldNotFound>
pub fn get_checkpoint_frequency(&self) -> Result<&u64, PbFieldNotFound>
pub fn get_sstable_size_mb(&self) -> Result<&u32, PbFieldNotFound>
pub fn get_block_size_kb(&self) -> Result<&u32, PbFieldNotFound>
pub fn get_bloom_false_positive(&self) -> Result<&f64, PbFieldNotFound>
pub fn get_state_store(&self) -> Result<&String, PbFieldNotFound>
pub fn get_data_directory(&self) -> Result<&String, PbFieldNotFound>
pub fn get_backup_storage_url(&self) -> Result<&String, PbFieldNotFound>
pub fn get_backup_storage_directory(&self) -> Result<&String, PbFieldNotFound>
pub fn get_telemetry_enabled(&self) -> Result<&bool, PbFieldNotFound>
pub fn get_parallel_compact_size_mb(&self) -> Result<&u32, PbFieldNotFound>
pub fn get_max_concurrent_creating_streaming_jobs( &self, ) -> Result<&u32, PbFieldNotFound>
pub fn get_pause_on_next_bootstrap(&self) -> Result<&bool, PbFieldNotFound>
pub fn get_wasm_storage_url(&self) -> Result<&String, PbFieldNotFound>
pub fn get_enable_tracing(&self) -> Result<&bool, PbFieldNotFound>
pub fn get_use_new_object_prefix_strategy( &self, ) -> Result<&bool, PbFieldNotFound>
pub fn get_license_key(&self) -> Result<&String, PbFieldNotFound>
pub fn get_time_travel_retention_ms(&self) -> Result<&u64, PbFieldNotFound>
Trait Implementations§
source§impl Clone for SystemParams
impl Clone for SystemParams
source§fn clone(&self) -> SystemParams
fn clone(&self) -> SystemParams
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SystemParams
impl Debug for SystemParams
source§impl Default for SystemParams
impl Default for SystemParams
source§impl<'de> Deserialize<'de> for SystemParams
impl<'de> Deserialize<'de> for SystemParams
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
source§impl Message for SystemParams
impl Message for SystemParams
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for SystemParams
impl PartialEq for SystemParams
source§impl Serialize for SystemParams
impl Serialize for SystemParams
impl StructuralPartialEq for SystemParams
Auto Trait Implementations§
impl Freeze for SystemParams
impl RefUnwindSafe for SystemParams
impl Send for SystemParams
impl Sync for SystemParams
impl Unpin for SystemParams
impl UnwindSafe for SystemParams
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request