Package javax.management

Examples of javax.management.MBeanException


            for (Bundle bundle : bundles) {
                bundle.stop();
            }
        } catch (Exception e) {
            throw new MBeanException(null, e.getMessage());
        }
    }
View Full Code Here


            for (Bundle bundle : bundles) {
                bundle.uninstall();
            }
        } catch (Exception e) {
            throw new MBeanException(null, e.getMessage());
        }
    }
View Full Code Here

    public List<String> getKars() throws MBeanException {
        try {
            return karService.list();
        } catch (Exception e) {
            throw new MBeanException(null, e.getMessage());
        }
    }
View Full Code Here

    public void install(String url) throws MBeanException {
        try {
            karService.install(new URI(url));
        } catch (Exception e) {
            throw new MBeanException(null, e.getMessage());
        }
    }
View Full Code Here

    public void uninstall(String name) throws MBeanException {
        try {
            karService.uninstall(name);
        } catch (Exception e) {
            throw new MBeanException(null, e.getMessage());
        }
    }
View Full Code Here

        }
       
        LOGGER.warn("Unexpected exception.", e);
        if (e.getClass().getPackage().getName().matches("javax?\\..+")) {
            if (e instanceof Exception) {
                throw new MBeanException((Exception) e, e.getMessage());
            }

            throw new MBeanException(
                        new RuntimeException(e), e.getMessage());
        }
       
        throw new MBeanException(new RuntimeException(
                e.getClass().getName() + ": " + e.getMessage()),
                e.getMessage());
    }
View Full Code Here

                                            LifetimePolicy.PERMANENT, 0l, type, Collections.EMPTY_MAP);
        }
        catch (IllegalArgumentException iae)
        {
            JMException jme = new JMException(iae.toString());
            throw new MBeanException(jme, "Error in creating exchange " + name);
        }

    }
View Full Code Here

            theExchange.delete();
        }
        catch (IllegalStateException ex)
        {
            final JMException jme = new JMException(ex.toString());
            throw new MBeanException(jme, "Error in unregistering exchange " + exchangeName);
        }
    }
View Full Code Here

        String mname = createManagedName(environment);
        ManagedBean managed = registry.findManagedBean(mname);
        if (managed == null) {
            Exception e = new Exception("ManagedBean is not found with "+mname);
            throw new MBeanException(e);
        }
        String domain = managed.getDomain();
        if (domain == null)
            domain = mserver.getDefaultDomain();
        DynamicMBean mbean = managed.createMBean(environment);
View Full Code Here

        String mname = createManagedName(resource);
        ManagedBean managed = registry.findManagedBean(mname);
        if (managed == null) {
            Exception e = new Exception("ManagedBean is not found with "+mname);
            throw new MBeanException(e);
        }
        String domain = managed.getDomain();
        if (domain == null)
            domain = mserver.getDefaultDomain();
        DynamicMBean mbean = managed.createMBean(resource);
View Full Code Here

TOP

Related Classes of javax.management.MBeanException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.