Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

Monitoring.java

00001 /*
00002  * Created on Dec 18, 2003
00003  *
00004  * To change the template for this generated file go to
00005  * Window - Preferences - Java - Code Generation - Code and Comments
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  * @author niko
00014  *
00015  * To change the template for this generated type comment go to
00016  * Window - Preferences - Java - Code Generation - Code and Comments
00017  */
00018 public abstract class Monitoring implements XmlComponent
00019 {
00020   boolean active;
00021   
00022   /**
00023    * Return all stats information in the form of a String
00024    * 
00025    * @return stats information
00026    */
00027   public abstract String[][] getAllStatsInformation();
00028   /**
00029    * Dump all stats using the current logger (INFO level).
00030    */
00031   public abstract void dumpAllStatsInformation();
00032   
00033   /**
00034    * Clean the content of statistics, to avoid memory problems.
00035    */
00036   public abstract void cleanStats();
00037 
00038   /**
00039    * @see org.objectweb.cjdbc.common.xml.XmlComponent#getXml()
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   /** Get implementation information */
00051   protected abstract String getXmlImpl();
00052   
00053   /**
00054    * Returns the active value.
00055    * 
00056    * @return Returns the active.
00057    */
00058   public boolean isActive()
00059   {
00060     return active;
00061   }
00062   /**
00063    * Sets the active value.
00064    * 
00065    * @param active The active to set.
00066    */
00067   public void setActive(boolean active)
00068   {
00069     this.active = active;
00070   }
00071 }

Generated on Mon Apr 11 22:01:32 2005 for C-JDBC by  doxygen 1.3.9.1