@Test public void testAddChildren() throws Exception { String adapterName = this.getClass().getSimpleName() + "." + getName(); Adapter adapter = createAdapter(adapterName, 0, 0); AdapterManager adapterManager = new AdapterManager(adapter); Channel c1 = createChannel(getName() + "_1"); Channel c2 = createChannel(getName() + "_2"); StubChannelManager child1 = new StubChannelManager(); StubChannelManager child2 = new StubChannelManager(); List<ChannelRuntimeManager> childCollection = new ArrayList<ChannelRuntimeManager>(Arrays.asList(new StubChannelManager[] { child1, child2 })); try { adapterManager.addChildren(childCollection); fail(); } catch (UnsupportedOperationException expected) { } }
@Override public boolean addChildren(Collection<ChannelRuntimeManager> coll) throws CoreException { throw new UnsupportedOperationException(); }
AdapterManager extends ComponentManagerImpl<Adapter> implements AdapterManagerMBean, AdapterRuntimeManager { @Override public boolean addChildren(Collection<ChannelRuntimeManager> coll) throws CoreException { throw new UnsupportedOperationException(); } }
AdapterManager extends ComponentManagerImpl<Adapter> implements AdapterManagerMBean, AdapterRuntimeManager { @Override public boolean addChildren(Collection<ChannelRuntimeManager> coll) throws CoreException { throw new UnsupportedOperationException(); } private  AdapterManager();  AdapterManager(Adapter owner); }
AdapterManager extends ComponentManagerImpl<Adapter> implements AdapterManagerMBean, AdapterRuntimeManager { @Override public boolean addChildren(Collection<ChannelRuntimeManager> coll) throws CoreException { throw new UnsupportedOperationException(); } 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 boolean addChildren(Collection<ChannelRuntimeManager> coll) throws CoreException { throw new UnsupportedOperationException(); } 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();  }