Examples of addMBean()


Examples of org.exist.management.Agent.addMBean()

    private void registerMBean()
    {
        final Agent agent = AgentFactory.getInstance();

        try {
            agent.addMBean( instanceName, "org.exist.management." + instanceName + ":type=CacheManager", new org.exist.management.CacheManager( this ) );
        }
        catch( final DatabaseConfigurationException e ) {
            LOG.warn( "Exception while registering cache mbean.", e );
        }
    }
View Full Code Here

Examples of org.exist.management.Agent.addMBean()

    private void registerMBean( Cache cache )
    {
        final Agent agent = AgentFactory.getInstance();

        try {
            agent.addMBean( instanceName, "org.exist.management." + instanceName + ":type=CacheManager.Cache,name=" + cache.getFileName() + ",cache-type=" + cache.getType(), new org.exist.management.Cache( cache ) );
        }
        catch( final DatabaseConfigurationException e ) {
            LOG.warn( "Exception while registering cache mbean.", e );
        }
    }
View Full Code Here

Examples of org.exist.management.Agent.addMBean()

    }

    private void registerMBean(String instanceName) {
        final Agent agent = AgentFactory.getInstance();
        try {
            agent.addMBean(instanceName, "org.exist.management." + instanceName +
                ":type=CollectionCacheManager", new org.exist.management.CacheManager(this));
        } catch (final DatabaseConfigurationException e) {
            LOG.warn("Exception while registering cache mbean.", e);
        }
        }
View Full Code Here

Examples of org.jmanage.core.config.ApplicationConfig.addMBean()

            for(int mbeanCtr=0; mbeanCtr < objectNames.length; mbeanCtr++ ){
                final String configName = request.getParameter(objectNames[mbeanCtr]);
                if(GenericValidator.isBlankOrNull(configName) ||
                        applicationConfig.containsMBean(objectNames[mbeanCtr]))
                    continue;
                applicationConfig.addMBean(new MBeanConfig(configName,
                        objectNames[mbeanCtr]));
                ApplicationConfigManager.updateApplication(applicationConfig);

                if(mbeanConfigForm.isApplicationCluster()){
                    logMsg = "Added "+objectNames[mbeanCtr]+" to " +
View Full Code Here

Examples of org.jmanage.core.config.ApplicationConfig.addMBean()

                }
                logMsg += "\n";
            }
        }else{
            final String configName = mbeanConfigForm.getName()[0];
            applicationConfig.addMBean(new MBeanConfig(configName,
                    mbeanConfigForm.getObjectName()));
            ApplicationConfigManager.updateApplication(applicationConfig);

            if(mbeanConfigForm.isApplicationCluster()){
                logMsg = "Added "+mbeanConfigForm.getObjectName()+" to " +
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.