/** * Get the service context * * @return the service context */ public ServiceContext getServiceContext() { try { serviceContext.proxy = getServiceProxy(); } catch (Exception ignored) { } if (getError() != null) serviceContext.setProblem(getError()); if (getState() == ControllerState.ERROR) serviceContext.state = ServiceContext.FAILED; return serviceContext; }
ControllerState state = context.getState(); if (flag.installPhase)
/** * Get the service context * * @return the service context */ public ServiceContext getServiceContext() { try { serviceContext.proxy = getServiceProxy(); } catch (Exception ignored) { } if (getError() != null) serviceContext.setProblem(getError()); if (getState() == ControllerState.ERROR) serviceContext.state = ServiceContext.FAILED; return serviceContext; }
/** * Change a context * * @param controller the controller * @param context the context * @param requiredState the require state * @param logWait log the waiting dependencies * @throws Throwable for any error */ private void doChange(KernelController controller, ServiceControllerContext context, ControllerState requiredState, String logWait) throws Throwable { if (ControllerMode.ON_DEMAND.equals(context.getMode()) == false) { controller.change(context, requiredState); ControllerState state = context.getState(); if (logWait != null && requiredState.equals(state) == false && state != ControllerState.ERROR) log.debug("Waiting in " + logWait + " of " + context.getObjectName() + " on " + getUnresolvedDependencies(context, requiredState)); } }
/** * Change a context * * @param controller the controller * @param context the context * @param requiredState the require state * @param logWait log the waiting dependencies * @throws Throwable for any error */ private void doChange(KernelController controller, ServiceControllerContext context, ControllerState requiredState, String logWait) throws Throwable { if (ControllerMode.ON_DEMAND.equals(context.getMode()) == false) { controller.change(context, requiredState); ControllerState state = context.getState(); if (logWait != null && requiredState.equals(state) == false && state != ControllerState.ERROR) log.debugf("Waiting in %1s of %2s on %3s", logWait, context.getObjectName(), getUnresolvedDependencies(context, requiredState)); } }