private SbbID[] getUsedSbbs(SbbID sbbID) throws ManagementConsoleException { SbbDescriptor sbbDescriptor = (SbbDescriptor) deploymentMBeanUtils.getDescriptor(sbbID); return sbbDescriptor.getSbbs(); }
private void enumerateSbbs(SbbID sbbId) throws Exception { this.sbbComponents.add(sbbId); SbbDescriptor sbbDesc = SleeContainer.lookupFromJndi().getSbbComponent( sbbId); if (sbbDesc == null) { throw new Exception("Could not find SBB Component: " + sbbId); } SbbID[] sbbIds = sbbDesc.getSbbs(); if (sbbIds != null) { for (int i = 0; i < sbbIds.length; i++) { SbbID nextSbbID = sbbIds[i]; if (!sbbComponents.contains(nextSbbID)) { enumerateSbbs(sbbIds[i]); } else if (logger.isDebugEnabled()) { logger.debug("Skipping recursive call to avoid infinite recursion SbbID : " + nextSbbID + " in method enumerateSbbs"); } } } }
private void setTraceLevelForSbbTree(SbbID rootSbbID, Level traceLevel, HashSet visited) throws TCKTestErrorException { try { SbbDescriptor sbbDescriptor = (SbbDescriptor) this.deploymentMBeanProxy.getDescriptor(rootSbbID); // set the trace level for the given SBB this.traceMBeanProxy.setTraceLevel(rootSbbID,traceLevel); // recursively set the trace level for all the SBB's descendants SbbID[] sbbIDs = sbbDescriptor.getSbbs(); if(sbbIDs != null) { for (int i = 0; i < sbbIDs.length; i++) { // only visit sbbs if not already visited if (visited.add(sbbIDs[i])) setTraceLevelForSbbTree(sbbIDs[i],traceLevel,visited); } } } catch (Exception e) { if(e instanceof TCKTestErrorException) throw (TCKTestErrorException)e; throw new TCKTestErrorException("Caught Exception while trying to set trace level for SBB. sbbID="+rootSbbID,e); } }
SbbID[] sbbs = sbbComponent.getSbbs();
toString(sbbDescriptor.getAddressProfileSpecification()), toStringArray(sbbDescriptor.getEventTypes()), toStringArray(sbbDescriptor.getProfileSpecifications()), sbbDescriptor.getResourceAdaptorEntityLinks(), toStringArray(sbbDescriptor.getResourceAdaptorTypes()), toStringArray(sbbDescriptor.getSbbs()), toStringArray(sbbDescriptor.getLibraries()));