Package net.gridshield.nexsm.entityclasses

Examples of net.gridshield.nexsm.entityclasses.ConfPusher


        }
       
        if (tag.equals("name")) { name = true; }
        if (tag.equals("coords")) { coords = true; }
        if (tag.equals("puller")) { puller = true; putmp = new ConfPuller(); }
        if (tag.equals("pusher")) { pusher = true; pushtmp = new ConfPusher(); }
        if (tag.equals("class")) { sclass = true; }
        if (tag.equals("plugin")) { plugin = true; pltmp = new ConfPlugin(); }
        if (tag.equals("param")) { param = true; patmp = new ConfParam(); }
        if (tag.equals("value")) { value = true; }
        if (tag.equals("type")) { type = true; }
View Full Code Here


        return _graphManager.getVertex_Services(hostname);
    }
   
   
    public boolean commitCGICommand(String command) {
        ConfPusher push = null;
        boolean outval = false;
        for (int i = 0; i < _pushers.size(); i++) {
            push = _pushers.get(i);
            if (push.getName().equals("NagiosCGICmd")) {
                break;
            }
            push = null;
        }
        if (push != null) {
            Class klass = null;
            Pusher pus = null;
            try {
               klass  = Class.forName(push.getPusherClass());
               pus = (Pusher)klass.newInstance();
              
               String cgidir = push.getParam("cgidir").getValue();
               if (cgidir.startsWith("/")) {
                   cgidir = getStringParam("nagiosbase") + cgidir;
               }
               String cgifile = push.getParam("cgifile").getValue();
               cgidir += "/" + cgifile;
              
               // the params for the command
              
               pus.initialize(cgidir);
View Full Code Here

    public void saveMapAs(String name, String key) {
        String salida = _graphManager.getGraphXML(name, key);
        StringBuffer[] sb = new StringBuffer[1];
        sb[0] = new StringBuffer(salida);

        ConfPusher push = null;
        for (int i = 0; i < _pushers.size(); i++) {
            push = _pushers.get(i);
            if (push.getName().equals("URLPusher")) {
                break;
            }
            push = null;
        }
      
        if (push != null) {
            Class klass = null;
            try {
               klass  = Class.forName(push.getPusherClass());
            } catch (ClassNotFoundException ex) {
                ex.printStackTrace();
            }
            ConfParam param = push.getParam("uploadURL");
           
            if (param != null) {
                String uploadURL = param.getValue();
                if (uploadURL.startsWith("/")) {
                    uploadURL = getStringParam("nagiosbase") + uploadURL;
View Full Code Here

TOP

Related Classes of net.gridshield.nexsm.entityclasses.ConfPusher

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.