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 ActiveDatabaseThreadCollector 36 extends AbstractVirtualDatabaseDataCollector 37 { 38 private static final long serialVersionUID = -5197418723162228403L; 39 40 45 public ActiveDatabaseThreadCollector(String virtualDatabaseName) 46 { 47 super(virtualDatabaseName); 48 } 49 50 53 public long getValue(Object database) 54 { 55 return ((VirtualDatabase) database).getActiveThreads().size(); 56 } 57 58 61 public String getDescription() 62 { 63 return Translate.get("monitoring.virtualdatabase.active.threads"); 64 } 65 } 66 | Popular Tags |