Changeset 6d28885e151cac3e613115ed9fbb73978090e88f

Show
Ignore:
Timestamp:
06/30/10 00:43:38 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1277858618 +0000
git-parent:

[aa4df66e877563ecf9367188566252bf929b46f0]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1277858618 +0000
Message:

working JDBC checks, refs #295

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/java/Makefile.in

    r9d8cd38 r6d28885  
    6464        com/omniti/jezebel/JezebelClassLoader.java \ 
    6565        com/omniti/jezebel/JezebelResmon.java \ 
     66        com/omniti/jezebel/JezebelTools.java \ 
    6667        com/omniti/jezebel/Resmon.java \ 
    6768        com/omniti/jezebel/ResmonResult.java \ 
    68         com/omniti/jezebel/SampleCheck.java 
     69        com/omniti/jezebel/SampleCheck.java \ 
     70        com/omniti/jezebel/check/JDBC.java \ 
     71        com/omniti/jezebel/check/postgres.java 
    6972 
    7073J_CLASS = $(J_JAVA:.java=.class) 
  • src/java/com/omniti/jezebel/JezebelCheck.java

    r9d8cd38 r6d28885  
    77  void perform(Map<String,String> check, 
    88               Map<String,String> config, 
    9                Resmon r); 
     9               ResmonResult rr); 
    1010} 
  • src/java/com/omniti/jezebel/JezebelDispatch.java

    r9d8cd38 r6d28885  
    5252 
    5353      String clz = request.getPathInfo().substring(1); 
     54      if(clz.indexOf('.') == -1) clz = "com.omniti.jezebel.check." + clz; 
    5455      Class clazz = null; 
    5556      try { clazz = cl.loadClass(clz); } 
     
    7980      catch (IllegalAccessException e) { robustE(e, response); return; } 
    8081      Resmon r = new Resmon(); 
    81       check.perform(info, config, r); 
     82      ResmonResult rr = r.addResult(info.get("module"), info.get("name")); 
     83      check.perform(info, config, rr); 
    8284      r.write(response); 
    8385    } 
  • src/java/com/omniti/jezebel/SampleCheck.java

    r9d8cd38 r6d28885  
    88  public void perform(Map<String,String> info, 
    99                      Map<String,String> config, 
    10                       Resmon r) { 
    11     ResmonResult rr = r.addResult(info.get("module"), info.get("name")); 
     10                      ResmonResult rr) { 
    1211    rr.set("mood", "happy"); 
    1312    rr.set("x", 1234); 
  • src/java/jezebel.in

    r9d8cd38 r6d28885  
    33JAVA=@JAVA@ 
    44JPARAMS="-Xms32m -Xmx512m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC" 
     5JARS= 
    56if [ "$1" = "-d" ]; then 
    67        JAVA=`echo $JAVA | sed -e 's/java$/jdb/;'` 
     
    89        shift 
    910fi 
    10 JARS="jezebel.jar log4j-1.2.15.jar \ 
     11while [ "$1" = "-jar" ]; do 
     12        JARS="$JARS $2" 
     13        shift 2 
     14done 
     15 
     16JARS="$JARS jezebel.jar log4j-1.2.15.jar \ 
    1117        lib/jetty-6.1.20.jar lib/servlet-api-2.5-20081211.jar \ 
    1218        lib/jetty-util-6.1.20.jar \