public ProfileSpecificationID getProfileSpecification( String profileTableName) throws NullPointerException, UnrecognizedProfileTableNameException, ManagementException { logger.debug("trying to get the profile specification for " + profileTableName + " ..."); if(profileTableName==null) throw new NullPointerException(); SleeProfileManager profileManager = SleeProfileManager .getInstance(); ProfileSpecificationID profileSpecificationID; try { profileSpecificationID = profileManager .findProfileSpecId(profileTableName); } catch (SystemException e) { throw new ManagementException("System-level failure",e); } if(profileSpecificationID==null) throw new UnrecognizedProfileTableNameException(); logger.debug("profile specification for " + profileTableName + " found :" + profileSpecificationID); return profileSpecificationID; }
throw new UnrecognizedProfileTableNameException(profileTableName); throw new UnrecognizedProfileTableNameException(); throw new UnrecognizedProfileTableNameException(); else return profileTable;
.findProfileSpecId(profileTableName); if (profileSpecification == null) throw new UnrecognizedProfileTableNameException(); } catch (SystemException e) { throw new FacilityException("System-level failure");
throw new UnrecognizedProfileTableNameException( "Could not find profile table " + profileTableName);
.findProfileSpecId(profileTableName); if (profileSpecification == null) throw new UnrecognizedProfileTableNameException(); } catch (SystemException e) { throw new FacilityException("System-level failure");
.findProfileSpecId(profileTableName); if(profileSpecification==null) throw new UnrecognizedProfileTableNameException(); } catch (SystemException e) { throw new ManagementException("System-level failure");
throw new UnrecognizedProfileTableNameException("Failed removing Profile " + profileName + " from Profile Table " + profileTableName); Object profileMBeanName;
throw new UnrecognizedProfileTableNameException(); profiles = profileManager .findAllProfilesByTableName(profileTableName);
throw new UnrecognizedProfileTableNameException("Failed removing Profile Table " + profileTableName);
.getComponentDescriptor(profileSpecificationID); if(profileSpecificationDescriptor==null) throw new UnrecognizedProfileTableNameException();
Object profile = profileManager.findDefaultProfile(profileTableName); if( profile == null) throw new UnrecognizedProfileTableNameException(); rb = false; ObjectName on = getDefaultProfileObjectName(profileTableName);
throw new UnrecognizedProfileTableNameException(errorStr); Object profile; try {
/** * Get an instance of a profile specified by the profileID given in parameter * @param method * @param profileID * @return * @throws SystemException */ private Object callGetProfileMethod(ProfileCMPMethod method, ProfileID profileID) throws UnrecognizedProfileTableNameException, UnrecognizedProfileNameException, SystemException{ SleeProfileManager sleeProfileManager=SleeProfileManager.getInstance(); try { if(sleeProfileManager.findProfileSpecId(profileID.getProfileTableName())==null) throw new UnrecognizedProfileTableNameException(); } catch (SystemException e) { throw new SLEEException("low-level failure"); } if(sleeProfileManager.findProfileMBean(profileID.getProfileTableName(),profileID.getProfileName())==null) throw new UnrecognizedProfileNameException(); //TODO call this method under a valid transaction context as defined in the spec return sleeProfileManager.getSbbCMPProfile(profileID); }