pageContext.setVariable(getString("admin",action,"returnVariable"),qry);
}
private void doGetMonitor() throws PageException {
if(!(config instanceof ConfigServerImpl))
throw new ApplicationException("invalid context for this action");
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());