Package org.exist.management

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


    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

    }

    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

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.