1 24 25 package org.objectweb.cjdbc.common.monitor.controller; 26 27 import org.objectweb.cjdbc.common.monitor.AbstractDataCollector; 28 import org.objectweb.cjdbc.controller.core.Controller; 29 30 35 public abstract class AbstractControllerDataCollector 36 extends 37 AbstractDataCollector 38 { 39 private String controllerName; 40 41 44 public AbstractControllerDataCollector() 45 { 46 } 48 49 53 public AbstractControllerDataCollector(Object controller) 54 { 55 controllerName = ((Controller)controller).getIPAddress(); 56 this.controller = controller; 57 } 58 59 62 public abstract long collectValue(); 63 64 67 public String getTargetName() 68 { 69 return controllerName; 70 } 71 } 72 | Popular Tags |