/** * * @throws ManagementException */ protected void ensureMBeanIsNotClosed() throws ManagementException { if (closed) { throw new ManagementException("closed"); } }
public void createResourceAdaptorEntityLink(String link, String entityName) throws ManagementException { if (this.resourceAdaptorEntityLinks.containsKey(link)) throw new ManagementException("Entity Link already exist!"); this.resourceAdaptorEntityLinks.put(link, entityName); }
public String[] getAlarms() throws ManagementException { try { Set<String> ids = new HashSet<String>(); ids.addAll(alarmIdToAlarm.keySet()); return ids.toArray(new String[ids.size()]); } catch (Exception e) { throw new ManagementException("Failed to get list of active alarms due to.", e); } }
public ObjectName getSbbUsageMBean(SbbID sbbId) throws NullPointerException, UnrecognizedSbbException, InvalidArgumentException, ManagementException { try { return _getSbbUsageMBean(sbbId, null); } catch (UnrecognizedUsageParameterSetNameException e) { throw new ManagementException( "default usage parameter name not found", e); } }
private SbbEntity getSbbEntityById(String sbbeId) throws ManagementException { try { return SbbEntityFactory.getSbbEntityWithoutLock(sbbeId); } catch (Exception e) { throw new ManagementException("", e); } }
public boolean isTracerDefined(NotificationSource src, String tracerName) throws ManagementException { TracerStorage ts = this.tracerStorage.get(src); if (ts == null) { throw new ManagementException("NotificationSource has been uninstalled from SLEE. Can not create tracer."); } return ts.isTracerDefined(tracerName); }
private org.mobicents.slee.container.eventrouter.stats.EventRouterStatistics getEventRouterStatistics() throws ManagementException { if (eventRouter == null) { throw new ManagementException("router not set"); } if (eventRouter.getEventRouterStatistics() == null) { throw new ManagementException("router stats not available"); } return eventRouter.getEventRouterStatistics(); }
public String[] getResourceAdaptorEntities(ResourceAdaptorEntityState state) throws NullPointerException, ManagementException { try { return resourceManagement.getResourceAdaptorEntities(state); } catch (NullPointerException e) { throw e; } catch (Throwable e) { String s = "failed to get RA entities with state " + state; logger.error(s, e); throw new ManagementException(s, e); } }
private static void _registerSafelyMBean(final SleeContainer sleeContainer, final ObjectName on, final Object bean) throws ManagementException { try { sleeContainer.getMBeanServer().registerMBean(bean, on); } catch (Throwable e) { throw new ManagementException(e.getMessage(), e); } } public static void unregisterSafelyMBean(final SleeContainer sleeContainer, final ObjectName on) throws ManagementException {
private static void _unregisterSafelyMBeanfinal( SleeContainer sleeContainer, final ObjectName on) throws ManagementException { try { sleeContainer.getMBeanServer().unregisterMBean(on); } catch (Throwable e) { throw new ManagementException(e.getMessage(), e); } }
public String[] getLinkNames() throws ManagementException { try { return resourceManagement .getLinkNames(); } catch (Throwable e) { String s = "failed to get link names"; logger.error(s, e); throw new ManagementException(s, e); } }
public String[] getResourceAdaptorEntities() throws ManagementException { try { return resourceManagement.getResourceAdaptorEntities(); } catch (Throwable e) { String s = "failed to get RA entities"; logger.error(s, e); throw new ManagementException(s, e); } }
public String[] getResourceAdaptorEntities(String[] linkNames) throws NullPointerException, ManagementException { try { return resourceManagement.getResourceAdaptorEntities(linkNames); } catch (NullPointerException e) { throw e; } catch (Throwable e) { String s = "failed to get RA entities for link names " + Arrays.asList(linkNames); logger.error(s, e); throw new ManagementException(s, e); } }
/** * Retrieves the object name for the default usage param mbean * * @return * @throws ManagementException */ public ObjectName getUsageMBean() throws ManagementException { try { return _getUsageMBean(null); } catch (UnrecognizedUsageParameterSetNameException e) { throw new ManagementException( "default usage parameter name not found", e); } }
public SbbID[] getBoundSbbs(String linkName) throws NullPointerException, UnrecognizedLinkNameException, ManagementException { try { return resourceManagement.getBoundSbbs(linkName); } catch (NullPointerException e) { throw e; } catch (UnrecognizedLinkNameException e) { throw e; } catch (Throwable e) { String s = "failed to get bound sbbs to link name " + linkName; logger.error(s, e); throw new ManagementException(s, e); } }
public String[] getResourceAdaptorEntities(ResourceAdaptorID id) throws NullPointerException, UnrecognizedResourceAdaptorException, ManagementException { try { return resourceManagement.getResourceAdaptorEntities(id); } catch (NullPointerException e) { throw e; } catch (UnrecognizedResourceAdaptorException e) { throw e; } catch (Throwable e) { String s = "failed to get RA entities for RA with id " + id; logger.error(s, e); throw new ManagementException(s, e); } }
public String getResourceAdaptorEntity(String linkName) throws NullPointerException, UnrecognizedLinkNameException, ManagementException { try { return resourceManagement.getResourceAdaptorEntityName(linkName); } catch (NullPointerException e) { throw e; } catch (UnrecognizedLinkNameException e) { throw e; } catch (Throwable e) { String s = "failed to get RA entities for link name " + linkName; logger.error(s, e); throw new ManagementException(s, e); } }
public ComponentDescriptor[] getDescriptors(ComponentID[] componentIds) throws NullPointerException, ManagementException { if (componentIds == null) throw new NullPointerException("null component ids"); try { ComponentDescriptor[] descriptors = new ComponentDescriptor[componentIds.length]; for (int i = 0; i < descriptors.length; i++) { descriptors[i] = getDescriptor(componentIds[i]); } return descriptors; } catch (ManagementException ex) { throw ex; } catch (Throwable ex) { throw new ManagementException(ex.getMessage(), ex); } }
public String[] getLinkNames(String entityName) throws NullPointerException, UnrecognizedResourceAdaptorEntityException, ManagementException { try { return resourceManagement.getLinkNames(entityName); } catch (NullPointerException e) { throw e; } catch (UnrecognizedResourceAdaptorEntityException e) { throw e; } catch (Throwable e) { String s = "failed to get link names for RA entity with name " + entityName; logger.error(s, e); throw new ManagementException(s, e); } }
public ConfigProperties getConfigurationProperties(String entityName) throws NullPointerException, UnrecognizedResourceAdaptorEntityException, ManagementException { try { return resourceManagement.getConfigurationProperties(entityName); } catch (NullPointerException e) { throw e; } catch (UnrecognizedResourceAdaptorEntityException e) { throw e; } catch (Throwable e) { String s = "failed to get configuration properties for RA entity with name " + entityName; logger.error(s, e); throw new ManagementException(s, e); } }