Package org.apache.mina.integration.jmx

Examples of org.apache.mina.integration.jmx.IoServiceMBean


    }

    private static void setupMonitor(IoAcceptor service) {
        final MBeanServer server = ManagementFactory.getPlatformMBeanServer();
        try {
            server.registerMBean(new IoServiceMBean(service), new ObjectName("org.apache.mina:type=service,name="
                    + SRV_NAME));
        } catch (InstanceAlreadyExistsException iaee) {
            throw new IllegalStateException(iaee);
        } catch (MBeanRegistrationException mre) {
            throw new IllegalStateException(mre);
View Full Code Here


        // This socket acceptor will handle incoming connections
        NioSocketAcceptor acceptor = new NioSocketAcceptor();
       
        // create a JMX-aware bean that wraps a MINA IoService object.  In this
        // case, a NioSocketAcceptor. 
        IoServiceMBean acceptorMBean = new IoServiceMBean( acceptor );
       
        // create a JMX ObjectName.  This has to be in a specific format. 
        ObjectName acceptorName = new ObjectName( acceptor.getClass().getPackage().getName() +
            ":type=acceptor,name=" + acceptor.getClass().getSimpleName());
       
View Full Code Here

        // This socket acceptor will handle incoming connections
        NioSocketAcceptor acceptor = new NioSocketAcceptor();
       
        // create a JMX-aware bean that wraps a MINA IoService object.  In this
        // case, a NioSocketAcceptor. 
        IoServiceMBean acceptorMBean = new IoServiceMBean( acceptor );
       
        // create a JMX ObjectName.  This has to be in a specific format. 
        ObjectName acceptorName = new ObjectName( acceptor.getClass().getPackage().getName() +
            ":type=acceptor,name=" + acceptor.getClass().getSimpleName());
       
View Full Code Here

        // This socket acceptor will handle incoming connections
        NioSocketAcceptor acceptor = new NioSocketAcceptor();
       
        // create a JMX-aware bean that wraps a MINA IoService object.  In this
        // case, a NioSocketAcceptor. 
        IoServiceMBean acceptorMBean = new IoServiceMBean( acceptor );
       
        // create a JMX ObjectName.  This has to be in a specific format. 
        ObjectName acceptorName = new ObjectName( acceptor.getClass().getPackage().getName() +
            ":type=acceptor,name=" + acceptor.getClass().getSimpleName());
       
View Full Code Here

TOP

Related Classes of org.apache.mina.integration.jmx.IoServiceMBean

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.