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 PendingDatabaseConnectionCollector 36 extends AbstractVirtualDatabaseDataCollector 37 { 38 39 private static final long serialVersionUID = -8131458723086328821L; 40 41 46 public PendingDatabaseConnectionCollector(String virtualDatabaseName) 47 { 48 super(virtualDatabaseName); 49 } 50 51 54 public long getValue(Object database) 55 { 56 return ((VirtualDatabase) database).getPendingConnections().size(); 57 } 58 59 62 public String getDescription() 63 { 64 return Translate.get("monitoring.virtualdatabase.pending.connections"); 65 } 66 } 67 | Popular Tags |