@Test public void testNoCachesExists() throws Exception { String adapterName = this.getClass().getSimpleName() + "." + getName(); Adapter adapter = createAdapter(adapterName); List<BaseComponentMBean> mBeans = createJmxManagers(adapter); try { start(adapter); register(mBeans); ObjectName adapterObj = createAdapterObjectName(adapterName); ObjectName metricsObj = createMetricsObjectName(adapterName); MessageMetricsStatisticsMBean metrics = JMX.newMBeanProxy(mBeanServer, metricsObj, MessageMetricsStatisticsMBean.class); assertEquals(0, metrics.getNumberOfTimeSlices()); } finally { stop(adapter); } }
@Override public int getNumberOfTimeSlices() { return wrappedComponent.getStats().size(); }
MessageMetricsStatistics extends ChildRuntimeInfoComponentImpl implements MessageMetricsStatisticsMBean { @Override public int getNumberOfTimeSlices() { return wrappedComponent.getStats().size(); } }
MessageMetricsStatistics extends ChildRuntimeInfoComponentImpl implements MessageMetricsStatisticsMBean { @Override public int getNumberOfTimeSlices() { return wrappedComponent.getStats().size(); } private  MessageMetricsStatistics(); protected  MessageMetricsStatistics(WorkflowManager owner, MessageMetricsInterceptorImpl interceptor); }
MessageMetricsStatistics extends ChildRuntimeInfoComponentImpl implements MessageMetricsStatisticsMBean { @Override public int getNumberOfTimeSlices() { return wrappedComponent.getStats().size(); } private  MessageMetricsStatistics(); protected  MessageMetricsStatistics(WorkflowManager owner, MessageMetricsInterceptorImpl interceptor); @Override int getNumberOfTimeSlices(); @Override int getTimeSliceDurationSeconds(); @Override String getTotalStringStats(); @Override ParentRuntimeInfoComponent getParentRuntimeInfoComponent(); @Override List<MessageStatistic> getStatistics(); @Override List<MessageStatistic> getStatistics(int fromIndex, int toIndex); @Override void clearStatistics(); }
MessageMetricsStatistics extends ChildRuntimeInfoComponentImpl implements MessageMetricsStatisticsMBean { @Override public int getNumberOfTimeSlices() { return wrappedComponent.getStats().size(); } private  MessageMetricsStatistics(); protected  MessageMetricsStatistics(WorkflowManager owner, MessageMetricsInterceptorImpl interceptor); @Override int getNumberOfTimeSlices(); @Override int getTimeSliceDurationSeconds(); @Override String getTotalStringStats(); @Override ParentRuntimeInfoComponent getParentRuntimeInfoComponent(); @Override List<MessageStatistic> getStatistics(); @Override List<MessageStatistic> getStatistics(int fromIndex, int toIndex); @Override void clearStatistics();  }