1 7 package org.jboss.test.remoting.handler.mbean; 8 9 import javax.management.MBeanServer ; 10 import org.jboss.remoting.InvocationRequest; 11 import org.jboss.remoting.ServerInvoker; 12 import org.jboss.remoting.callback.InvokerCallbackHandler; 13 14 17 public class MBeanHandler implements MBeanHandlerMBean 18 { 19 private MBeanServer server = null; 20 private ServerInvoker invoker = null; 21 22 27 public void setMBeanServer(MBeanServer server) 28 { 29 this.server = server; 30 } 31 32 37 public void setInvoker(ServerInvoker invoker) 38 { 39 this.invoker = invoker; 40 } 41 42 49 public Object invoke(InvocationRequest invocation) throws Throwable 50 { 51 System.out.println(invocation.getParameter()); 52 return ServerTest.RESPONSE_VALUE; 53 } 54 55 61 public void addListener(InvokerCallbackHandler callbackHandler) 62 { 63 } 65 66 72 public void removeListener(InvokerCallbackHandler callbackHandler) 73 { 74 } 76 77 80 81 84 void create() throws Exception 85 { 86 } 87 88 91 void start() throws Exception 92 { 93 } 94 95 98 void stop() 99 { 100 } 101 102 105 void destroy() 106 { 107 } 108 109 } | Popular Tags |