private static SuspendController getSuspendController(ServiceContainer sc) { SuspendController result = null; if (sc != null && !sc.isShutdownComplete()) { final ServiceController serviceController = sc.getService(JBOSS_SUSPEND_CONTROLLER); if (serviceController != null && serviceController.getState() == ServiceController.State.UP) { result = (SuspendController) serviceController.getValue(); } } return result; }
private static SuspendController getSuspendController(ServiceContainer sc) { SuspendController result = null; if (sc != null && !sc.isShutdownComplete()) { final ServiceController serviceController = sc.getService(JBOSS_SUSPEND_CONTROLLER); if (serviceController != null && serviceController.getState() == ServiceController.State.UP) { result = (SuspendController) serviceController.getValue(); } } return result; }
if (sc != null && !sc.isShutdownComplete()) { if (!failed) {
if (sc != null && !sc.isShutdownComplete()) { if (!failed) {