/** * This constructor is useful for tests which need to have "stub" or "mock" * implementations of the underlying MySQL resource. This constructor is not * included int the MBeanInfo. */ protected SimpleMysqldDynamicMBean(MysqldFactory mysqldFactory) { this.mysqldFactory = mysqldFactory; this.str = new Str(); this.notesInfos = new MBeanNotificationInfo[0]; this.mBeanOperationInfoList = new ArrayList(); this.startMysqldOp = newVoidMBeanOperation(START_METHOD, "Start MySQL"); this.stopOp = newVoidMBeanOperation(STOP_METHOD, "Stop MySQL"); getMBeanOperationInfoList().add(startMysqldOp); initAttributes(); initConstructors(); }
/** * This constructor is useful for tests which need to have "stub" or "mock" * implementations of the underlying MySQL resource. This constructor is not * included int the MBeanInfo. */ protected SimpleMysqldDynamicMBean(MysqldResourceI mysqldResource) { this.mysqldResource = mysqldResource; this.classUtil = new ClassUtil(); this.notesInfos = new MBeanNotificationInfo[0]; this.mBeanOperationInfoList = new ArrayList(); this.startMysqldOp = newVoidMBeanOperation(START_METHOD, "Start MySQL"); this.stopOp = newVoidMBeanOperation(STOP_METHOD, "Stop MySQL"); getMBeanOperationInfoList().add(startMysqldOp); initAttributes(); initConstructors(); }