1 17 18 package org.apache.geronimo.clustering; 19 20 import javax.management.MBeanServer ; 21 import javax.management.ObjectName ; 22 23 import org.apache.commons.logging.Log; 24 import org.apache.commons.logging.LogFactory; 25 26 32 public abstract class 33 MBeanImpl 34 { 36 protected Log _log=LogFactory.getLog(MBeanImpl.class); 37 protected ObjectName _objectName; 38 protected MBeanServer _server; 39 40 46 public Object getReference(){return this;} 47 48 52 public boolean canStart(){return true;} 53 public boolean canStop(){return true;} 54 55 public void doStart(){} 56 public void doStop(){} 57 public void doFail(){} 58 66 public ObjectName getObjectName() {return _objectName;} 67 77 } 78 | Popular Tags |