1 23 24 29 30 package com.sun.enterprise.admin.jmx.remote.server.callers; 31 32 import javax.management.MBeanServerConnection ; 33 import javax.management.remote.message.MBeanServerRequestMessage; 34 import javax.management.remote.message.MBeanServerResponseMessage; 35 36 40 public abstract class AbstractMethodCaller implements MBeanServerConnectionMethodCaller { 41 42 protected int METHOD_ID; 43 protected final MBeanServerConnection mbsc; 44 45 protected AbstractMethodCaller(MBeanServerConnection mbsc) { 46 this.mbsc = mbsc; 47 } 48 49 public abstract MBeanServerResponseMessage call(MBeanServerRequestMessage request); 50 51 public boolean canCall(MBeanServerRequestMessage request) { 52 return ( METHOD_ID == request.getMethodId() ); 53 } 54 } | Popular Tags |