/** * * @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 ServiceID[] getServices() throws ManagementException { try { if (logger.isDebugEnabled()) { logger.debug("getServices()"); } return getSleeContainer().getComponentRepository() .getServiceIDs().toArray(new ServiceID[0]); } catch (Throwable ex) { throw new ManagementException(ex.getMessage(), ex); } }
public ResourceAdaptorID[] getResourceAdaptors() throws ManagementException { try { if (logger.isDebugEnabled()) { logger.debug("getResourceAdaptors()"); } return getSleeContainer().getComponentRepository() .getResourceAdaptorIDs().toArray(new ResourceAdaptorID[0]); } catch (Throwable ex) { throw new ManagementException(ex.getMessage(), ex); } }
public LibraryID[] getLibraries() throws ManagementException { try { if (logger.isDebugEnabled()) { logger.debug("getLibraries()"); } return getSleeContainer().getComponentRepository() .getLibraryIDs().toArray(new LibraryID[0]); } catch (Throwable ex) { throw new ManagementException(ex.getMessage(), ex); } }
public SbbID[] getSbbs() throws ManagementException { try { if (logger.isDebugEnabled()) { logger.debug("getSbbs()"); } return getSleeContainer().getComponentRepository() .getSbbIDs().toArray(new SbbID[0]); } catch (Throwable ex) { throw new ManagementException(ex.getMessage(), ex); } }
public EventTypeID[] getEventTypes() throws ManagementException { try { if (logger.isDebugEnabled()) { logger.debug("getEventTypes()"); } return getSleeContainer().getComponentRepository() .getEventComponentIDs().toArray(new EventTypeID[0]); } catch (Throwable ex) { throw new ManagementException(ex.getMessage(), ex); } }
public DeployableUnitDescriptor[] getDescriptors(DeployableUnitID[] duIds) throws NullPointerException, ManagementException { if (duIds == null) throw new NullPointerException("Null arg!"); try { SleeContainer serviceContainer = SleeContainer.lookupFromJndi(); return serviceContainer.getDeployableUnitDescriptors(); } catch (SystemException ex) { throw new ManagementException("Error in tx manager ",ex); } }
public boolean isInstalled(DeployableUnitID deployableUnitID) throws NullPointerException, ManagementException { if (deployableUnitID == null) throw new NullPointerException("null deployableUnitID"); try { return getSleeContainer().getDeployableUnitManagement() .getDeployableUnit(deployableUnitID) != null; } catch (Throwable ex) { throw new ManagementException(ex.getMessage(), ex); } }
public boolean isInstalled(ComponentID componentID) throws NullPointerException, ManagementException { if (componentID == null) throw new NullPointerException("null componentID"); try { return getSleeContainer().getComponentRepository() .isInstalled(componentID); } catch (Throwable ex) { throw new ManagementException(ex.getMessage(), ex); } }
public SbbID[] getSbbs() throws ManagementException { try { if(logger.isDebugEnabled()) { logger.debug("getSbbs()"); } SleeContainer serviceContainer = SleeContainer.lookupFromJndi(); return serviceContainer.getSbbIDs(); } catch (Exception ex) { throw new ManagementException(ex.getMessage(),ex); } }
public DeployableUnitID[] getDeployableUnits() throws ManagementException { try { return getSleeContainer().getDeployableUnitManagement() .getDeployableUnits(); } catch (Throwable e) { throw new ManagementException("failed to get deployable units", e); } }