@Test public void testGetCounterMerticValue() throws Exception{ ComponentTypeEntity cte = daoService.createComponentType(); HealthCheckEntity hce = daoService.createHealthCheckEntity(0,cte,0,"Mesos"); CounterDetailVO counterDetails = new CounterDetailVO(); counterDetails.setEnvironmentCounterId(6); counterDetails.setEnvironmentId(hce.getEnvironment().getEnvironmentId()); NumberOfServiceHandler nunService = new NumberOfServiceHandler(); float num = nunService.getCounterMerticValue(counterDetails, null); }
@Override public float getCounterMerticValue(CounterDetailVO counterDetails, List<CounterDetailVO> listCounterDetails) throws Exception { int numberofService = DBQueryUtil.getNumberOfServices(counterDetails); return numberofService; }
NumberOfServiceHandler extends CounterMetricHandler { @Override public float getCounterMerticValue(CounterDetailVO counterDetails, List<CounterDetailVO> listCounterDetails) throws Exception { int numberofService = DBQueryUtil.getNumberOfServices(counterDetails); return numberofService; } }
NumberOfServiceHandler extends CounterMetricHandler { @Override public float getCounterMerticValue(CounterDetailVO counterDetails, List<CounterDetailVO> listCounterDetails) throws Exception { int numberofService = DBQueryUtil.getNumberOfServices(counterDetails); return numberofService; }  }
NumberOfServiceHandler extends CounterMetricHandler { @Override public float getCounterMerticValue(CounterDetailVO counterDetails, List<CounterDetailVO> listCounterDetails) throws Exception { int numberofService = DBQueryUtil.getNumberOfServices(counterDetails); return numberofService; }  @Override float getCounterMerticValue(CounterDetailVO counterDetails, List<CounterDetailVO> listCounterDetails); @Override Logger getLogger(); }
NumberOfServiceHandler extends CounterMetricHandler { @Override public float getCounterMerticValue(CounterDetailVO counterDetails, List<CounterDetailVO> listCounterDetails) throws Exception { int numberofService = DBQueryUtil.getNumberOfServices(counterDetails); return numberofService; }  @Override float getCounterMerticValue(CounterDetailVO counterDetails, List<CounterDetailVO> listCounterDetails); @Override Logger getLogger();  }