1 24 25 package org.objectweb.cjdbc.common.monitor.virtualdatabase; 26 27 import org.objectweb.cjdbc.common.i18n.Translate; 28 import org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase; 29 30 35 public class DatabaseThreadsCollector 36 extends AbstractVirtualDatabaseDataCollector 37 { 38 39 private static final long serialVersionUID = 4493564478281769842L; 40 41 46 public DatabaseThreadsCollector(String virtualDatabaseName) 47 { 48 super(virtualDatabaseName); 49 } 50 51 54 public long getValue(Object database) 55 { 56 return ((VirtualDatabase) database).getCurrentNbOfThreads(); 57 } 58 59 62 public String getDescription() 63 { 64 return Translate.get("monitoring.virtualdatabase.threads.count"); 65 } 66 } 67 | Popular Tags |