MCPcopy Create free account
hub / github.com/OpenTSDB/opentsdb / initialize

Method initialize

test/tsd/DummySEHPlugin.java:24–34  ·  view source on GitHub ↗
(TSDB tsdb)

Source from the content-addressed store, hash-verified

22public class DummySEHPlugin extends StorageExceptionHandler {
23
24 @Override
25 public void initialize(TSDB tsdb) {
26 if (tsdb == null) {
27 throw new IllegalArgumentException("The TSDB object was null");
28 }
29 // a dummy config to check for throwing exceptions
30 if (!tsdb.getConfig().hasProperty(
31 "tsd.core.storage_exception_handler.DummySEHPlugin.hosts")) {
32 throw new IllegalArgumentException("Missing hosts config");
33 }
34 }
35
36 @Override
37 public Deferred<Object> shutdown() {

Callers

nothing calls this directly

Calls 2

hasPropertyMethod · 0.45
getConfigMethod · 0.45

Tested by

no test coverage detected