public class ManagedServerBootCmdFactory extends Object implements ManagedServerBootConfiguration
| Constructor and Description |
|---|
ManagedServerBootCmdFactory(String serverName,
org.jboss.dmr.ModelNode domainModel,
org.jboss.dmr.ModelNode hostModel,
HostControllerEnvironment environment,
ExpressionResolver expressionResolver,
boolean suspend) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compareServerLaunchCommand(ManagedServerBootConfiguration other)
Compares the launch command that would be produced by this object to the one
that would be produced by
other. |
ManagedServerBootConfiguration |
createConfiguration()
Create and verify the configuration before trying to start the process.
|
HostControllerEnvironment |
getHostControllerEnvironment()
Get the host controller environment.
|
List<String> |
getServerLaunchCommand()
Get server launch command, in a form suitable for constructing a
ProcessBuilder. |
Map<String,String> |
getServerLaunchEnvironment()
Gets the environment variables that should be provided to the launched server process.
|
Map<String,String> |
getServerLaunchProperties()
Gets the system properties that will be set on the launched server process as part
of the
launch command. |
int |
getServerProcessId()
Gets a semi-unique id for the server process.
|
Supplier<SSLContext> |
getSSLContextSupplier()
Get a
Serializable Supplier that the server will use to create an SSLContext for connecting
back to the HostController. |
org.jboss.dmr.ModelNode |
getSubsystemEndpointConfiguration()
Get the subsystem endpoint configuration, in case we use the subsystem.
|
boolean |
isManagementSubsystemEndpoint()
Get whether the native management remoting connector should use the endpoint set up by
|
boolean |
isSuspended() |
public ManagedServerBootCmdFactory(String serverName, org.jboss.dmr.ModelNode domainModel, org.jboss.dmr.ModelNode hostModel, HostControllerEnvironment environment, ExpressionResolver expressionResolver, boolean suspend)
public ManagedServerBootConfiguration createConfiguration()
public HostControllerEnvironment getHostControllerEnvironment()
getHostControllerEnvironment in interface ManagedServerBootConfigurationpublic List<String> getServerLaunchCommand()
ProcessBuilder.getServerLaunchCommand in interface ManagedServerBootConfigurationnullpublic boolean compareServerLaunchCommand(ManagedServerBootConfiguration other)
other. Useful as a means of comparing configurations.compareServerLaunchCommand in interface ManagedServerBootConfigurationother - the other ManagedServerBootConfiguration. Cannot be nulltrue if both objects would produce the same launch commandpublic Map<String,String> getServerLaunchProperties()
launch command.getServerLaunchProperties in interface ManagedServerBootConfigurationnullpublic boolean isManagementSubsystemEndpoint()
ManagedServerBootConfigurationisManagementSubsystemEndpoint in interface ManagedServerBootConfigurationpublic org.jboss.dmr.ModelNode getSubsystemEndpointConfiguration()
ManagedServerBootConfigurationgetSubsystemEndpointConfiguration in interface ManagedServerBootConfigurationpublic Supplier<SSLContext> getSSLContextSupplier()
ManagedServerBootConfigurationSerializable Supplier that the server will use to create an SSLContext for connecting
back to the HostController.getSSLContextSupplier in interface ManagedServerBootConfigurationSupplier or null if no SSL configuration specified.public boolean isSuspended()
isSuspended in interface ManagedServerBootConfigurationpublic int getServerProcessId()
ManagedServerBootConfigurationgetServerProcessId in interface ManagedServerBootConfigurationpublic Map<String,String> getServerLaunchEnvironment()
getServerLaunchEnvironment in interface ManagedServerBootConfigurationnullCopyright © 2019 JBoss by Red Hat. All rights reserved.