@Test public void testAdapterInitialised_StartChannel() throws Exception { String adapterName = this.getClass().getSimpleName() + "." + getName(); Adapter adapter = createAdapter(adapterName); AdapterManager adapterManager = new AdapterManager(adapter); Channel c1 = createChannel(getName() + "_1"); Channel c2 = createChannel(getName() + "_2"); ChannelManager child1 = new ChannelManager(c1, adapterManager); ChannelManager child2 = new ChannelManager(c2, adapterManager); ObjectName adapterObj = adapterManager.createObjectName(); ObjectName channelObj = child1.createObjectName(); List<BaseComponentMBean> mBeans = new ArrayList<BaseComponentMBean>(Arrays.asList(new BaseComponentMBean[] { adapterManager, child1, child2 })); try { register(mBeans); ChannelManagerMBean channelManagerProxy = JMX.newMBeanProxy(mBeanServer, channelObj, ChannelManagerMBean.class); adapterManager.requestInit(); try { channelManagerProxy.requestStart(); fail(); } catch (CoreException e) { assertEquals(createErrorMessageString(adapterManager.getComponentState(), StartedState.getInstance()), e.getMessage()); } } finally { adapter.requestClose(); } }
@Override public ObjectName createObjectName() throws MalformedObjectNameException { return myObjectName; }
ChannelManager extends ComponentManagerImpl<Channel> implements ChannelManagerMBean, ChannelRuntimeManager { @Override public ObjectName createObjectName() throws MalformedObjectNameException { return myObjectName; } }
ChannelManager extends ComponentManagerImpl<Channel> implements ChannelManagerMBean, ChannelRuntimeManager { @Override public ObjectName createObjectName() throws MalformedObjectNameException { return myObjectName; } private  ChannelManager();  ChannelManager(Channel c, AdapterManager owner);   ChannelManager(Channel c, AdapterManager owner, boolean skipBackRef); }
ChannelManager extends ComponentManagerImpl<Channel> implements ChannelManagerMBean, ChannelRuntimeManager { @Override public ObjectName createObjectName() throws MalformedObjectNameException { return myObjectName; } private  ChannelManager();  ChannelManager(Channel c, AdapterManager owner);   ChannelManager(Channel c, AdapterManager owner, boolean skipBackRef); @Override ObjectName createObjectName(); @Override long requestStartTime(); @Override long requestStopTime(); @Override Collection<ObjectName> getChildren(); @Override boolean addChild(WorkflowRuntimeManager cmb); @Override boolean removeChild(WorkflowRuntimeManager cmb); @Override boolean addChildren(Collection<WorkflowRuntimeManager> coll); @Override boolean removeChildren(Collection<WorkflowRuntimeManager> coll); @Override Channel getWrappedComponent(); @Override AdapterManager getParent(); @Override boolean equals(Object o); @Override String toString(); @Override int hashCode(); @Override Collection<BaseComponentMBean> getAllDescendants(); @Override String getParentId(); @Override ObjectName getParentObjectName(); @Override String createObjectHierarchyString(); @Override Collection<ObjectName> getChildRuntimeInfoComponents(); @Override boolean addChildJmxComponent(ChildRuntimeInfoComponent comp); @Override boolean removeChildJmxComponent(ChildRuntimeInfoComponent comp); @Override void registerMBean(); @Override void unregisterMBean(); @Override ObjectName addWorkflow(String xml); @Override boolean removeWorkflow(String id); @Override void childUpdated(); @Override MBeanNotificationInfo[] getNotificationInfo(); }
ChannelManager extends ComponentManagerImpl<Channel> implements ChannelManagerMBean, ChannelRuntimeManager { @Override public ObjectName createObjectName() throws MalformedObjectNameException { return myObjectName; } private  ChannelManager();  ChannelManager(Channel c, AdapterManager owner);   ChannelManager(Channel c, AdapterManager owner, boolean skipBackRef); @Override ObjectName createObjectName(); @Override long requestStartTime(); @Override long requestStopTime(); @Override Collection<ObjectName> getChildren(); @Override boolean addChild(WorkflowRuntimeManager cmb); @Override boolean removeChild(WorkflowRuntimeManager cmb); @Override boolean addChildren(Collection<WorkflowRuntimeManager> coll); @Override boolean removeChildren(Collection<WorkflowRuntimeManager> coll); @Override Channel getWrappedComponent(); @Override AdapterManager getParent(); @Override boolean equals(Object o); @Override String toString(); @Override int hashCode(); @Override Collection<BaseComponentMBean> getAllDescendants(); @Override String getParentId(); @Override ObjectName getParentObjectName(); @Override String createObjectHierarchyString(); @Override Collection<ObjectName> getChildRuntimeInfoComponents(); @Override boolean addChildJmxComponent(ChildRuntimeInfoComponent comp); @Override boolean removeChildJmxComponent(ChildRuntimeInfoComponent comp); @Override void registerMBean(); @Override void unregisterMBean(); @Override ObjectName addWorkflow(String xml); @Override boolean removeWorkflow(String id); @Override void childUpdated(); @Override MBeanNotificationInfo[] getNotificationInfo();  }