1 7 package org.objectweb.cjdbc.controller.monitoring; 8 9 import org.objectweb.cjdbc.common.xml.DatabasesXmlTags; 10 import org.objectweb.cjdbc.common.xml.XmlComponent; 11 12 18 public abstract class Monitoring implements XmlComponent 19 { 20 boolean active; 21 22 27 public abstract String [][] getAllStatsInformation(); 28 31 public abstract void dumpAllStatsInformation(); 32 33 36 public abstract void cleanStats(); 37 38 41 public String getXml() 42 { 43 StringBuffer info = new StringBuffer (); 44 info.append("<"+DatabasesXmlTags.ELT_Monitoring+">"); 45 info.append(getXmlImpl()); 46 info.append("</"+DatabasesXmlTags.ELT_Monitoring+">"); 47 return info.toString(); 48 } 49 50 51 protected abstract String getXmlImpl(); 52 53 58 public boolean isActive() 59 { 60 return active; 61 } 62 67 public void setActive(boolean active) 68 { 69 this.active = active; 70 } 71 } | Popular Tags |