public MBeanServerConnection[] getAdaptors() throws Exception { return clusterServices.getAdaptors(); }
public MBeanServerConnection[] getAdaptors() throws Exception { return clusterServices.getAdaptors(); }
/** * Override to invoke the operation on all servers * * @param name * @param method * @param args * @param sig * @return * @throws Exception */ protected Object invoke(ObjectName name, String method, Object[] args, String[] sig) throws Exception { MBeanServerConnection[] adaptors = getAdaptors(); Object result = null; for (int i = 0; i < adaptors.length; i++) { MBeanServerConnection adaptor = adaptors[i]; log.debug("Using MBeanServerConnection: "+adaptor); result = invoke(adaptor, name, method, args, sig); } return result; }
/** * Override to invoke the operation on all servers * * @param name * @param method * @param args * @param sig * @return * @throws Exception */ protected Object invoke(ObjectName name, String method, Object[] args, String[] sig) throws Exception { MBeanServerConnection[] adaptors = getAdaptors(); Object result = null; for (int i = 0; i < adaptors.length; i++) { MBeanServerConnection adaptor = adaptors[i]; log.debug("Using MBeanServerConnection: "+adaptor); result = invoke(adaptor, name, method, args, sig); } return result; }