@Test public void testLastStopTime() throws Exception { String adapterName = this.getClass().getSimpleName() + "." + getName(); Adapter adapter = createAdapter(adapterName, 2, 2); List<BaseComponentMBean> mBeans = createJmxManagers(adapter); try { register(mBeans); ObjectName adapterObj = createAdapterObjectName(adapterName); AdapterManagerMBean manager = JMX.newMBeanProxy(mBeanServer, adapterObj, AdapterManagerMBean.class); long t1 = manager.requestStopTime(); assertTrue(t1 > 0); manager.requestStart(); manager.requestStop(); assertTrue(t1 <= manager.requestStopTime()); } finally { adapter.requestClose(); } }
@Override public long requestStopTime() { return getWrappedComponent().lastStopTime().getTime(); }
AdapterManager extends ComponentManagerImpl<Adapter> implements AdapterManagerMBean, AdapterRuntimeManager { @Override public long requestStopTime() { return getWrappedComponent().lastStopTime().getTime(); } }
AdapterManager extends ComponentManagerImpl<Adapter> implements AdapterManagerMBean, AdapterRuntimeManager { @Override public long requestStopTime() { return getWrappedComponent().lastStopTime().getTime(); } private  AdapterManager();  AdapterManager(Adapter owner); }
AdapterManager extends ComponentManagerImpl<Adapter> implements AdapterManagerMBean, AdapterRuntimeManager { @Override public long requestStopTime() { return getWrappedComponent().lastStopTime().getTime(); } private  AdapterManager();  AdapterManager(Adapter owner); @Override ObjectName createObjectName(); @Override long requestStartTime(); @Override long requestStopTime(); @Override Collection<ObjectName> getChildren(); @Override boolean addChild(ChannelRuntimeManager cmb); @Override boolean removeChild(ChannelRuntimeManager cmb); @Override boolean addChildren(Collection<ChannelRuntimeManager> coll); @Override boolean removeChildren(Collection<ChannelRuntimeManager> coll); @Override Adapter getWrappedComponent(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @Override Collection<BaseComponentMBean> getAllDescendants(); @Override Collection<ObjectName> getChildRuntimeInfoComponents(); @Override boolean addChildJmxComponent(ChildRuntimeInfoComponent comp); @Override boolean removeChildJmxComponent(ChildRuntimeInfoComponent comp); @Override String createObjectHierarchyString(); @Override boolean addSharedConnection(String xmlString); @Override boolean addAndBindSharedConnection(String xmlString); @Override boolean removeSharedConnection(String connectionId); @Override boolean containsSharedConnection(String connectionId); @Override Collection<String> getSharedConnectionIds(); @Override boolean addSharedService(String xmlString); @Override boolean addAndBindSharedService(String xmlString); @Override boolean removeSharedService(String serviceId); @Override boolean containsSharedService(String serviceId); @Override Collection<String> getSharedServiceIds(); @Override boolean removeSharedComponent(String id); @Override ObjectName addChannel(String xml); @Override boolean removeChannel(String id); @Override void setMessageErrorHandler(String xml); @Override void setFailedMessageRetrier(String xml); @Override void registerMBean(); @Override void unregisterMBean(); @Override void childUpdated(); @Override String getAdapterBuildVersion(); @Override List<String> getModuleVersions(); @Override List<String> getArtifactIdentifiers(); @Override void sendLifecycleEvent(AdapterLifecycleEvent event); @Override MBeanNotificationInfo[] getNotificationInfo(); @Override void forceClose(); }
AdapterManager extends ComponentManagerImpl<Adapter> implements AdapterManagerMBean, AdapterRuntimeManager { @Override public long requestStopTime() { return getWrappedComponent().lastStopTime().getTime(); } private  AdapterManager();  AdapterManager(Adapter owner); @Override ObjectName createObjectName(); @Override long requestStartTime(); @Override long requestStopTime(); @Override Collection<ObjectName> getChildren(); @Override boolean addChild(ChannelRuntimeManager cmb); @Override boolean removeChild(ChannelRuntimeManager cmb); @Override boolean addChildren(Collection<ChannelRuntimeManager> coll); @Override boolean removeChildren(Collection<ChannelRuntimeManager> coll); @Override Adapter getWrappedComponent(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @Override Collection<BaseComponentMBean> getAllDescendants(); @Override Collection<ObjectName> getChildRuntimeInfoComponents(); @Override boolean addChildJmxComponent(ChildRuntimeInfoComponent comp); @Override boolean removeChildJmxComponent(ChildRuntimeInfoComponent comp); @Override String createObjectHierarchyString(); @Override boolean addSharedConnection(String xmlString); @Override boolean addAndBindSharedConnection(String xmlString); @Override boolean removeSharedConnection(String connectionId); @Override boolean containsSharedConnection(String connectionId); @Override Collection<String> getSharedConnectionIds(); @Override boolean addSharedService(String xmlString); @Override boolean addAndBindSharedService(String xmlString); @Override boolean removeSharedService(String serviceId); @Override boolean containsSharedService(String serviceId); @Override Collection<String> getSharedServiceIds(); @Override boolean removeSharedComponent(String id); @Override ObjectName addChannel(String xml); @Override boolean removeChannel(String id); @Override void setMessageErrorHandler(String xml); @Override void setFailedMessageRetrier(String xml); @Override void registerMBean(); @Override void unregisterMBean(); @Override void childUpdated(); @Override String getAdapterBuildVersion(); @Override List<String> getModuleVersions(); @Override List<String> getArtifactIdentifiers(); @Override void sendLifecycleEvent(AdapterLifecycleEvent event); @Override MBeanNotificationInfo[] getNotificationInfo(); @Override void forceClose();  }