Package railo.runtime.monitor

Examples of railo.runtime.monitor.Monitor


    ConfigServerImpl cs=(ConfigServerImpl) config;

    String type=getString("admin",action,"monitorType");
    String name=getString("admin",action,"name");
    type=type.trim();
    Monitor m;
    if("request".equalsIgnoreCase(type))
      m=cs.getRequestMonitor(name);
    else
      m=cs.getIntervallMonitor(name);
   
    Struct sct=new StructImpl();
    sct.setEL(KeyConstants._name, m.getName());
    sct.setEL(KeyConstants._type, m.getType()==Monitor.TYPE_INTERVALL?"intervall":"request");
    sct.setEL(LOG_ENABLED, m.isLogEnabled());
    sct.setEL(CLASS, m.getClazz().getName());
   
        pageContext.setVariable(getString("admin",action,"returnVariable"),sct);
  }
View Full Code Here


 
 
 
 
  private void doGetMonitors(Query qry, Monitor[] monitors) {
    Monitor m;
    int row;
    for(int i=0;i<monitors.length;i++){
      m=monitors[i];
      row=qry.addRow();
          qry.setAtEL(KeyConstants._name, row, m.getName());
          qry.setAtEL(KeyConstants._type, row, m.getType()==Monitor.TYPE_INTERVALL?"intervall":"request");
          qry.setAtEL(LOG_ENABLED, row, m.isLogEnabled());
          qry.setAtEL(CLASS, row, m.getClazz().getName());
    }
   
  }
View Full Code Here

TOP

Related Classes of railo.runtime.monitor.Monitor

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.