183184185186187188189190191192193
/* @see org.mule.api.context.Agent#getDescription() */ @Override public String getDescription() { WrapperManagerMBean wm = (WrapperManagerMBean) wrapperManagerRef.get(); if (wm == null) { return "Wrapper Manager"; } else
238239240241242243244245246247248
return WrapperSystemPropertyUtil.getIntProperty("wrapper.pid", 0); } protected void lazyInitWrapperManager() { WrapperManagerMBean wm = (WrapperManagerMBean) wrapperManagerRef.get(); if (wm != null) { return; }
181182183184185186187188189190191
// ///////////////////////////////////////////////////////////////////////// @Override public String getDescription() { WrapperManagerMBean wm = wrapperManagerRef.get(); if (wm == null) { return "Wrapper Manager"; } else
236237238239240241242243244245246
return WrapperSystemPropertyUtil.getIntProperty("wrapper.pid", 0); } protected void lazyInitWrapperManager() { WrapperManagerMBean wm = wrapperManagerRef.get(); if (wm != null) { return; }
28293031323334353637383940
protected static JmxSupportFactory jmxSupportFactory; protected static JmxSupport jmxSupport; public static void restart() throws Exception { WrapperManagerMBean proxy = getProxy(); if (proxy != null) { proxy.restart(); } else { throw new RuntimeException("The wrapper is not enabled."); }
555657585960616263
if (!mBeanServer.isRegistered(on)) { mBeanServer.registerMBean(new WrapperManager(), on); } WrapperManagerMBean proxy = MBeanServerInvocationHandler.newProxyInstance( mBeanServer, on, WrapperManagerMBean.class, false); return proxy; }