+ sbbComponent.getID().toString()); sbbComponent.getID(), sbbComponent); SbbID[] sbbs = sbbComponent.getSbbs(); this.addReferringComponent(sbbs[i], sbbComponent.getID()); .getProfileSpecifications(); this.addReferringComponent(profileIDs[i], sbbComponent.getID()); EventTypeID[] eventTypes = sbbComponent.getEventTypes(); for (int i = 0; i < eventTypes.length; i++) { this.addReferringComponent(eventTypes[i], sbbComponent.getID()); .getResourceAdaptorTypes(); if (logger.isDebugEnabled()) { logger.debug("ResourceAdaptorTypeIDs " + raTypeIDs.length); this.addReferringComponent(raTypeIDs[i], sbbComponent.getID()); String[] entityLinks = sbbComponent.getResourceAdaptorEntityLinks(); for(int i = 0; i < entityLinks.length; i++) this.addReferringComponent( raID, sbbComponent.getID() ); .getAddressProfileSpecification(); if (addressProfile != null) this.addReferringComponent(addressProfile, sbbComponent.getID());
/** * */ public SbbVerifier(SbbDescriptor sbbDescriptor) { sbbDeploymentDescriptor=(MobicentsSbbDescriptor)sbbDescriptor; pool=((DeployableUnitIDImpl) (sbbDescriptor .getDeployableUnit())).getDUDeployer().getClassPool(); try { sbbAbstractClass = pool.get(Sbb.class.getName()); } catch (NotFoundException e) { String s = "Cannot find class ! while verifying "; logger.fatal(e); throw new RuntimeException (s,e); } }
SbbDescriptor sbbDescriptor = (SbbDescriptor) componentDescriptor; return new SbbInfo(sbbDescriptor.getName(), sbbDescriptor.getSource(), sbbDescriptor.getVendor(), sbbDescriptor.getVersion(), toString(sbbDescriptor.getID()), DeployableUnitInfoUtils.toString(sbbDescriptor.getDeployableUnit()), toString(sbbDescriptor.getAddressProfileSpecification()), toStringArray(sbbDescriptor.getEventTypes()), toStringArray(sbbDescriptor.getProfileSpecifications()), sbbDescriptor.getResourceAdaptorEntityLinks(), toStringArray(sbbDescriptor.getResourceAdaptorTypes()), toStringArray(sbbDescriptor.getSbbs()), toStringArray(sbbDescriptor.getLibraries()));
String[] sbbRALinks = sbbDesc.getResourceAdaptorEntityLinks(); sbbDesc.getID() + " is referencing this RA link" + " -- cannot remove it!");
private SbbID[] getUsedSbbs(SbbID sbbID) throws ManagementConsoleException { SbbDescriptor sbbDescriptor = (SbbDescriptor) deploymentMBeanUtils.getDescriptor(sbbID); return sbbDescriptor.getSbbs(); }
if (sbbdesc != null) { String[] raLinks = sbbdesc .getResourceAdaptorEntityLinks(); for (int c = 0; raLinks != null && c < raLinks.length; c++) { ResourceAdaptorEntity raEntity = getRAEntity(raLinks[c]);
String[] raLinks = raLinksSet.toArray(new String[raLinksSet.size()]); specsDescriptor = new javax.slee.management.SbbDescriptor(getSbbID(), getDeployableUnit().getDeployableUnitID(), getDeploymentUnitSource(), libraryIDs, sbbIDs, eventTypes, profileSpecs, descriptor.getAddressProfileSpecRef(), raTypeIDs, raLinks);
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"); } } } }
SbbDescriptor sbbdesc = getSbbComponent((SbbID) i.next()); if (sbbdesc != null) { String[] raLinks = sbbdesc.getResourceAdaptorEntityLinks(); for (int c = 0; raLinks != null && c < raLinks.length; c++) { ResourceAdaptorEntity raEntity = getRAEntity(raLinks[c]);
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); } }
SbbDescriptor sbbdesc = getSbbComponent((SbbID) i.next()); if (sbbdesc != null) { String[] raLinks = sbbdesc.getResourceAdaptorEntityLinks(); for (int c = 0; raLinks != null && c < raLinks.length; c++) { ResourceAdaptorEntity raEntity = getRAEntity(raLinks[c]);