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

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


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


        PropertyReader[] pRdrs = null;
        try {
            pRdrs = lbRdr.getProperties();
        } catch (LbReaderException le) {
            // should we throw this exception XXX ???
            // or fill in with default values
        }

        if ((pRdrs != null) && (pRdrs.length > 0 ) ){
            Property[] props = new Property[pRdrs.length];
            for(int i =0; i < pRdrs.length; i++) {
                props[i] = new Property();
                pRdrs[i].accept( new PropertyVisitor(props[i]));
            }
            _lb.setProperty2(props);
        }

        ClusterReader[] cRdrs =  null;
        try {
            cRdrs = lbRdr.getClusters();
        } catch (LbReaderException le) {
            // should we throw this exception XXX ???
            // or fill in with default values
        }
       
View Full Code Here


     */
    public static String getXML(ConfigContext ctx,String lbConfigName) throws IOException, ConfigException,
                Schema2BeansException{
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        // check if the lb exists
        LoadbalancerReader lbr = LbConfigExporter.getLbReader(ctx,lbConfigName);
        LbConfigExporter.exportXml(lbr, out);
        return out.toString();
    }
View Full Code Here

    public void publish() throws IOException, ConfigException,
                Schema2BeansException{


        // check if the lb exists
        LoadbalancerReader lbr = LbConfigExporter.getLbReader(_ctx, _name);

        HttpURLConnection conn =
            _connectionManager.getConnection(LB_UPDATE_CONTEXT_ROOT);
        OutputStream out=null;
        try{
View Full Code Here

    public String write() throws IOException, ConfigException,
                Schema2BeansException{

        // check if the lb exists
        LoadbalancerReader lbr = LbConfigExporter.getLbReader(_ctx, _name);           
        File f = new File(_path);

        if (f.isDirectory() ) {
         f = new File(f, _f);
        }
View Full Code Here

TOP

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

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.