Package com.sun.enterprise.ee.admin.lbadmin.reader.api

Examples of com.sun.enterprise.ee.admin.lbadmin.reader.api.HealthCheckerReader


            for(int i=0; i < iRdrs.length; i++) {
                iRdrs[i].accept(new InstanceVisitor(_c, i));
            }
        }

        HealthCheckerReader hcRdr = null;
        try {
             hcRdr = cRdr.getHealthChecker();
        } catch (LbReaderException le) {
            // XXX ignore
        }

        if (hcRdr != null) {
            hcRdr.accept(new HealthCheckerVisitor(_c));   
        }

        WebModuleReader[] wRdrs = null;
        try {
            wRdrs = cRdr.getWebModules();
View Full Code Here


    /**
     * Visit reader class
     */
    public void visit(BaseReader br) {
        // FIXME, make as assert here about no class cast exception
        HealthCheckerReader hRdr = (HealthCheckerReader) br;

        _c.setHealthChecker(true);
        try {
            _c.setHealthCheckerUrl(hRdr.getUrl());
        } catch (LbReaderException le) {
            // XXX ignore
        }
        try {
            _c.setHealthCheckerIntervalInSeconds(hRdr.getIntervalInSeconds());
        } catch (LbReaderException le) {
            // XXX ignore
        }
        try {
            _c.setHealthCheckerTimeoutInSeconds(hRdr.getTimeoutInSeconds());
        } catch (LbReaderException le) {
            // XXX ignore
        }
    }
View Full Code Here

        assertTrue(readers.length == 2);
    }

 
    public void testHealthChecker() throws LbReaderException {                       
        HealthCheckerReader reader = impl.getHealthChecker();
        assertTrue(reader != null);
        if ( reader == null ) {
            System.out.println("no health checker found");
            return;
        }
            System.out.println(" hc url  is "
                + reader.getUrl() + " interval " + reader.getIntervalInSeconds());
    }
View Full Code Here

        HealthChecker bean = _serverRef.getHealthChecker();
        if (bean == null) {
            return null;
        } else {
            HealthCheckerReader reader = new HealthCheckerReaderImpl(bean);
            return reader;
        }
    }
View Full Code Here

        HealthChecker bean = _clusterRef.getHealthChecker();
        if (bean == null) {
            return null;
        } else {
            HealthCheckerReader reader = new HealthCheckerReaderImpl(bean);
            return reader;
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.ee.admin.lbadmin.reader.api.HealthCheckerReader

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.