1 24 25 package org.objectweb.cjdbc.common.monitor.client; 26 27 import org.objectweb.cjdbc.common.exceptions.DataCollectorException; 28 import org.objectweb.cjdbc.common.i18n.Translate; 29 import org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabaseWorkerThread; 30 31 36 public class ClientActiveTimeCollector extends AbstractClientDataCollector 37 { 38 private static final long serialVersionUID = -8518220945483984065L; 39 40 47 public ClientActiveTimeCollector(String clientId, String virtualDatabaseName) 48 throws DataCollectorException 49 { 50 super(clientId, virtualDatabaseName); 51 } 52 53 56 public long getValue(Object client) 57 { 58 return ((VirtualDatabaseWorkerThread) client).getTimeActive(); 59 } 60 61 64 public String getDescription() 65 { 66 return Translate.get("monitoring.client.active.time"); 67 } 68 } 69 | Popular Tags |