(TSDB tsdb)
| 22 | public 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() { |
nothing calls this directly
no test coverage detected