00001
00002
00003
00004
00005
00006
00007 package org.objectweb.cjdbc.controller.monitoring;
00008
00009 import org.objectweb.cjdbc.common.xml.DatabasesXmlTags;
00010 import org.objectweb.cjdbc.common.xml.XmlComponent;
00011
00012
00013
00014
00015
00016
00017
00018 public abstract class Monitoring implements XmlComponent
00019 {
00020 boolean active;
00021
00022
00023
00024
00025
00026
00027 public abstract String[][] getAllStatsInformation();
00028
00029
00030
00031 public abstract void dumpAllStatsInformation();
00032
00033
00034
00035
00036 public abstract void cleanStats();
00037
00038
00039
00040
00041 public String getXml()
00042 {
00043 StringBuffer info = new StringBuffer();
00044 info.append("<"+DatabasesXmlTags.ELT_Monitoring+">");
00045 info.append(getXmlImpl());
00046 info.append("</"+DatabasesXmlTags.ELT_Monitoring+">");
00047 return info.toString();
00048 }
00049
00050
00051 protected abstract String getXmlImpl();
00052
00053
00054
00055
00056
00057
00058 public boolean isActive()
00059 {
00060 return active;
00061 }
00062
00063
00064
00065
00066
00067 public void setActive(boolean active)
00068 {
00069 this.active = active;
00070 }
00071 }