MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / loadStaticVariables

Method loadStaticVariables

src/utils/Config.java:718–744  ·  view source on GitHub ↗

Loads the static class variables for values that are called often. This should be called any time the configuration changes.

()

Source from the content-addressed store, hash-verified

716 * should be called any time the configuration changes.
717 */
718 public void loadStaticVariables() {
719 auto_metric = this.getBoolean("tsd.core.auto_create_metrics");
720 auto_tagk = this.getBoolean("tsd.core.auto_create_tagks");
721 auto_tagv = this.getBoolean("tsd.core.auto_create_tagvs");
722 enable_compactions = this.getBoolean("tsd.storage.enable_compaction");
723 enable_appends = this.getBoolean("tsd.storage.enable_appends");
724 repair_appends = this.getBoolean("tsd.storage.repair_appends");
725 enable_chunked_requests = this.getBoolean("tsd.http.request.enable_chunked");
726 enable_realtime_ts = this.getBoolean("tsd.core.meta.enable_realtime_ts");
727 enable_realtime_uid = this.getBoolean("tsd.core.meta.enable_realtime_uid");
728 enable_tsuid_incrementing =
729 this.getBoolean("tsd.core.meta.enable_tsuid_incrementing");
730 enable_tsuid_tracking =
731 this.getBoolean("tsd.core.meta.enable_tsuid_tracking");
732 if (this.hasProperty("tsd.http.request.max_chunk")) {
733 max_chunked_requests = this.getInt("tsd.http.request.max_chunk");
734 }
735 if (this.hasProperty("tsd.http.header_tag")) {
736 http_header_tag = this.getString("tsd.http.header_tag");
737 }
738 enable_tree_processing = this.getBoolean("tsd.core.tree.enable_processing");
739 fix_duplicates = this.getBoolean("tsd.storage.fix_duplicates");
740 scanner_max_num_rows = this.getInt("tsd.storage.hbase.scanner.maxNumRows");
741 use_otsdb_timestamp = this.getBoolean("tsd.storage.use_otsdb_timestamp");
742 get_date_tiered_compaction_start = this.getLong("tsd.storage.get_date_tiered_compaction_start");
743 use_max_value = this.getBoolean("tsd.storage.use_max_value");
744 }
745
746 /**
747 * Called from {@link #loadConfig} to copy the properties into the hash map

Callers 3

launchTSDMethod · 0.95
overrideConfigMethod · 0.95
setDefaultsMethod · 0.95

Calls 5

getBooleanMethod · 0.95
hasPropertyMethod · 0.95
getIntMethod · 0.95
getStringMethod · 0.95
getLongMethod · 0.95

Tested by

no test coverage detected