HostControllerService(final HostControllerEnvironment environment, final HostRunningModeControl runningModeControl, final byte[] authCode, final ControlledProcessState processState) { this.environment = environment; this.runningModeControl = runningModeControl; this.authCode = authCode; this.processState = processState; this.startTime = Module.getStartTime(); }
/** @deprecated use {@link #determineEnvironment(String[], Properties, Map, ServerEnvironment.LaunchType, long)} */ @Deprecated public static ServerEnvironmentWrapper determineEnvironment(String[] args, Properties systemProperties, Map<String, String> systemEnvironment, ServerEnvironment.LaunchType launchType) { return determineEnvironment(args, systemProperties, systemEnvironment, launchType, Module.getStartTime()); }
/** @deprecated use {@link #determineEnvironment(String[], Properties, Map, ServerEnvironment.LaunchType, long)} */ @Deprecated public static ServerEnvironmentWrapper determineEnvironment(String[] args, Properties systemProperties, Map<String, String> systemEnvironment, ServerEnvironment.LaunchType launchType) { return determineEnvironment(args, systemProperties, systemEnvironment, launchType, Module.getStartTime()); }
ServerEnvironmentWrapper serverEnvironmentWrapper = determineEnvironment(args, WildFlySecurityManager.getSystemPropertiesPrivileged(), WildFlySecurityManager.getSystemEnvironmentPrivileged(), ServerEnvironment.LaunchType.STANDALONE, Module.getStartTime()); if (serverEnvironmentWrapper.getServerEnvironment() == null) { if (serverEnvironmentWrapper.getServerEnvironmentStatus() == ServerEnvironmentWrapper.ServerEnvironmentStatus.ERROR) {
ServerEnvironmentWrapper serverEnvironmentWrapper = determineEnvironment(args, WildFlySecurityManager.getSystemPropertiesPrivileged(), WildFlySecurityManager.getSystemEnvironmentPrivileged(), ServerEnvironment.LaunchType.STANDALONE, Module.getStartTime()); if (serverEnvironmentWrapper.getServerEnvironment() == null) { if (serverEnvironmentWrapper.getServerEnvironmentStatus() == ServerEnvironmentWrapper.ServerEnvironmentStatus.ERROR) {
RunningMode.NORMAL, productConfig, Module.getStartTime(), suspend, null, null, null); DomainServerCommunicationServices.updateOperationID(initialOperationID);
RunningMode.NORMAL, productConfig, Module.getStartTime(), suspend, null, null, null); DomainServerCommunicationServices.updateOperationID(initialOperationID);
private HostControllerBootstrap boot(String[] args, final String authCode) { try { // TODO make this settable via an embedding process final long startTime = Module.getStartTime(); final HostControllerEnvironmentWrapper hostControllerEnvironmentWrapper = determineEnvironment(args, startTime); if (hostControllerEnvironmentWrapper.getHostControllerEnvironment() == null) { usage(); // In case there was an error determining the environment print the usage if (hostControllerEnvironmentWrapper.getHostControllerEnvironmentStatus() == HostControllerEnvironmentWrapper.HostControllerEnvironmentStatus.ERROR) { abort(); } else { SystemExiter.safeAbort(); } return null; } else { try { final HostControllerBootstrap hc = new HostControllerBootstrap(hostControllerEnvironmentWrapper.getHostControllerEnvironment(), authCode); hc.bootstrap(); return hc; } catch(Throwable t) { abort(t); return null; } } } catch (Throwable t) { abort(t); return null; } }
private HostControllerBootstrap boot(String[] args, final String authCode) { try { // TODO make this settable via an embedding process final long startTime = Module.getStartTime(); final HostControllerEnvironmentWrapper hostControllerEnvironmentWrapper = determineEnvironment(args, startTime); if (hostControllerEnvironmentWrapper.getHostControllerEnvironment() == null) { usage(); // In case there was an error determining the environment print the usage if (hostControllerEnvironmentWrapper.getHostControllerEnvironmentStatus() == HostControllerEnvironmentWrapper.HostControllerEnvironmentStatus.ERROR) { abort(); } else { SystemExiter.safeAbort(); } return null; } else { try { final HostControllerBootstrap hc = new HostControllerBootstrap(hostControllerEnvironmentWrapper.getHostControllerEnvironment(), authCode); hc.bootstrap(); return hc; } catch(Throwable t) { abort(t); return null; } } } catch (Throwable t) { abort(t); return null; } }