/** * Get the Service interface through which the mbean given by objectName will be managed. * * @param objectName the object name * @param server the mbean server * @return The Service value * @throws Exception for any error */ public static Service getServiceProxy(ObjectName objectName, MBeanServer server) throws Exception { return getServiceProxy(objectName, server, true); }
/** * Get the Service interface through which the mbean given by objectName will be managed. * * @param objectName the object name * @param server the mbean server * @return The Service value * @throws Exception for any error */ public static Service getServiceProxy(ObjectName objectName, MBeanServer server) throws Exception { return getServiceProxy(objectName, server, true); }
/** * Get the service proxy * * @return the service proxy * @throws Exception for any error */ public Service getServiceProxy() throws Exception { if (serviceContext.proxy != null) return serviceContext.proxy; MBeanServer server = serviceController.getMBeanServer(); if (server != null) serviceContext.proxy = ServiceProxy.getServiceProxy(objectName, server, includeLifecycle); return serviceContext.proxy; }
/** * Get the service proxy * * @return the service proxy * @throws Exception for any error */ public Service getServiceProxy() throws Exception { if (serviceContext.proxy != null) return serviceContext.proxy; MBeanServer server = serviceController.getMBeanServer(); if (server != null) serviceContext.proxy = ServiceProxy.getServiceProxy(objectName, server, includeLifecycle); return serviceContext.proxy; }