MCPcopy
hub / github.com/OpenTSDB/opentsdb / run

Method run

src/query/QueryLimitOverride.java:182–191  ·  view source on GitHub ↗

@param timeout The timeout reference.

(final Timeout timeout)

Source from the content-addressed store, hash-verified

180
181 /** @param timeout The timeout reference. */
182 @Override
183 public void run(final Timeout timeout) {
184 try {
185 loadFromFile();
186 } catch (RuntimeException e) {
187 LOG.error("Failed to read cache file on auto reload: " + this, e);
188 } finally {
189 timer.newTimeout(this, reload_interval, TimeUnit.SECONDS);
190 }
191 }
192
193 /**
194 * Attempts to load the file from disk

Callers 6

timerTaskEmptySetMethod · 0.95
timerTaskSameMethod · 0.95
timerTaskDiffLimitMethod · 0.95
timerTaskClearedMethod · 0.95
timerTaskAddOneMethod · 0.95
timerTaskRemoveOneMethod · 0.95

Calls 3

loadFromFileMethod · 0.95
errorMethod · 0.80
newTimeoutMethod · 0.80

Tested by 6

timerTaskEmptySetMethod · 0.76
timerTaskSameMethod · 0.76
timerTaskDiffLimitMethod · 0.76
timerTaskClearedMethod · 0.76
timerTaskAddOneMethod · 0.76
timerTaskRemoveOneMethod · 0.76