Class BaseConfigGenerator
- java.lang.Object
-
- org.wildfly.galleon.plugin.config.generator.BaseConfigGenerator
-
- Direct Known Subclasses:
ForkedConfigGenerator,WfConfigGenerator
public abstract class BaseConfigGenerator extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]argsprotected static java.lang.StringBATCHprotected java.lang.LongbootTimeoutprotected org.jboss.dmr.ModelNodecompositeprotected static byteEMBEDDED_STARTEDprotected org.wildfly.core.embedded.EmbeddedManagedProcessembeddedProcessprotected booleanforkEmbeddedprotected booleanhcprotected static byteINITIALprotected java.lang.StringjbossHomeprotected static byteLOOKING_FOR_ARGSprotected org.jboss.as.controller.client.ModelControllerClientmccprotected java.lang.StringresetSysPropsprotected static java.lang.StringRUN_BATCHprotected java.nio.file.Pathscriptprotected java.lang.StringBuilderscriptBufprotected java.io.PrintWriterscriptWriterprotected static byteSTART_HCprotected static byteSTART_STANDALONEprotected static java.lang.StringSTOP
-
Constructor Summary
Constructors Constructor Description BaseConfigGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoHandle(org.jboss.dmr.ModelNode op)protected voiddoStartHc(java.lang.String... args)protected voiddoStartServer(java.lang.String... args)protected voiddoStopEmbedded()protected voidhandle(org.jboss.dmr.ModelNode op)protected voidwaitForHc(org.wildfly.core.embedded.EmbeddedManagedProcess embeddedProcess)protected voidwaitForServer()protected voidwriteScript(java.lang.String line)
-
-
-
Field Detail
-
INITIAL
protected static final byte INITIAL
- See Also:
- Constant Field Values
-
START_STANDALONE
protected static final byte START_STANDALONE
- See Also:
- Constant Field Values
-
START_HC
protected static final byte START_HC
- See Also:
- Constant Field Values
-
LOOKING_FOR_ARGS
protected static final byte LOOKING_FOR_ARGS
- See Also:
- Constant Field Values
-
EMBEDDED_STARTED
protected static final byte EMBEDDED_STARTED
- See Also:
- Constant Field Values
-
BATCH
protected static final java.lang.String BATCH
- See Also:
- Constant Field Values
-
STOP
protected static final java.lang.String STOP
- See Also:
- Constant Field Values
-
RUN_BATCH
protected static final java.lang.String RUN_BATCH
- See Also:
- Constant Field Values
-
hc
protected boolean hc
-
args
protected java.lang.String[] args
-
bootTimeout
protected java.lang.Long bootTimeout
-
embeddedProcess
protected org.wildfly.core.embedded.EmbeddedManagedProcess embeddedProcess
-
mcc
protected org.jboss.as.controller.client.ModelControllerClient mcc
-
composite
protected org.jboss.dmr.ModelNode composite
-
jbossHome
protected java.lang.String jbossHome
-
forkEmbedded
protected boolean forkEmbedded
-
resetSysProps
protected java.lang.String resetSysProps
-
script
protected java.nio.file.Path script
-
scriptWriter
protected java.io.PrintWriter scriptWriter
-
scriptBuf
protected java.lang.StringBuilder scriptBuf
-
-
Method Detail
-
handle
protected void handle(org.jboss.dmr.ModelNode op) throws org.wildfly.galleon.plugin.server.ConfigGeneratorException- Throws:
org.wildfly.galleon.plugin.server.ConfigGeneratorException
-
doHandle
protected void doHandle(org.jboss.dmr.ModelNode op) throws org.wildfly.galleon.plugin.server.ConfigGeneratorException- Throws:
org.wildfly.galleon.plugin.server.ConfigGeneratorException
-
doStartHc
protected void doStartHc(java.lang.String... args) throws org.wildfly.galleon.plugin.server.ConfigGeneratorException- Throws:
org.wildfly.galleon.plugin.server.ConfigGeneratorException
-
waitForHc
protected void waitForHc(org.wildfly.core.embedded.EmbeddedManagedProcess embeddedProcess) throws org.wildfly.galleon.plugin.server.ConfigGeneratorException- Throws:
org.wildfly.galleon.plugin.server.ConfigGeneratorException
-
doStartServer
protected void doStartServer(java.lang.String... args) throws org.wildfly.galleon.plugin.server.ConfigGeneratorException- Throws:
org.wildfly.galleon.plugin.server.ConfigGeneratorException
-
doStopEmbedded
protected void doStopEmbedded() throws org.wildfly.galleon.plugin.server.ConfigGeneratorException- Throws:
org.wildfly.galleon.plugin.server.ConfigGeneratorException
-
waitForServer
protected void waitForServer() throws org.wildfly.galleon.plugin.server.ConfigGeneratorException- Throws:
org.wildfly.galleon.plugin.server.ConfigGeneratorException
-
writeScript
protected void writeScript(java.lang.String line)
-
-