@Test public void testMongoMetric() { }
public MongoMetric(MongoDataSource dataSource, int period, int waitLimit) { this.dataSource = dataSource; this.period = period; this.listWaitPeroid = waitLimit; executor = Executors.newSingleThreadExecutor(DaemonThreadFactory.getInstance()); snapshot(); }
MongoMetric implements IMonitorMetric { public MongoMetric(MongoDataSource dataSource, int period, int waitLimit) { this.dataSource = dataSource; this.period = period; this.listWaitPeroid = waitLimit; executor = Executors.newSingleThreadExecutor(DaemonThreadFactory.getInstance()); snapshot(); } }
MongoMetric implements IMonitorMetric { public MongoMetric(MongoDataSource dataSource, int period, int waitLimit) { this.dataSource = dataSource; this.period = period; this.listWaitPeroid = waitLimit; executor = Executors.newSingleThreadExecutor(DaemonThreadFactory.getInstance()); snapshot(); } MongoMetric(MongoDataSource dataSource, int period, int waitLimit); }
MongoMetric implements IMonitorMetric { public MongoMetric(MongoDataSource dataSource, int period, int waitLimit) { this.dataSource = dataSource; this.period = period; this.listWaitPeroid = waitLimit; executor = Executors.newSingleThreadExecutor(DaemonThreadFactory.getInstance()); snapshot(); } MongoMetric(MongoDataSource dataSource, int period, int waitLimit); @Override String getName(); @Override int getPeriod(); @Override void snapshot(long timestamp); @Override Map<String, Object> output(); }
MongoMetric implements IMonitorMetric { public MongoMetric(MongoDataSource dataSource, int period, int waitLimit) { this.dataSource = dataSource; this.period = period; this.listWaitPeroid = waitLimit; executor = Executors.newSingleThreadExecutor(DaemonThreadFactory.getInstance()); snapshot(); } MongoMetric(MongoDataSource dataSource, int period, int waitLimit); @Override String getName(); @Override int getPeriod(); @Override void snapshot(long timestamp); @Override Map<String, Object> output();  }