public class ProcessInstanceRuntime extends Object
| Constructor and Description |
|---|
ProcessInstanceRuntime(SpongeEngine engine,
ProcessConfiguration configuration,
DefaultProcessInstance instance) |
public ProcessInstanceRuntime(SpongeEngine engine, ProcessConfiguration configuration, DefaultProcessInstance instance)
public ProcessConfiguration getConfiguration()
protected void initState()
protected void initLoggers()
protected ProcessBuilder createAndConfigureProcessBuilder()
protected Charset getCharset()
protected BiConsumer<org.slf4j.Logger,String> getOutputLoggingConsumer()
protected BiConsumer<org.slf4j.Logger,String> getErrorLoggingConsumer()
protected InputStreamLineConsumerRunnable createInputStreamLineConsumerRunnable(InputStream inputStream, Consumer<String> consumer, org.slf4j.Logger lineLogger, BiConsumer<org.slf4j.Logger,String> loggingConsumer)
protected int getRequiredFullSemaphorePermits()
protected void optionallySetOutputConsumers()
protected void optionallyWaitForOutputLine()
throws InterruptedException
InterruptedExceptionprotected String readErrorStream() throws IOException
IOExceptionprotected void optionallySetOutputData()
protected String getName()
protected void optionallySetInputData()
protected void optionallyWaitForTheProcessToEnd()
throws InterruptedException
InterruptedExceptionprotected String getArgsString()
protected void startProcess(ProcessBuilder builder)
public void start()
throws InterruptedException
InterruptedExceptionprotected void optionallyValidateExitCode()
public void waitForReady()
throws InterruptedException
InterruptedExceptionpublic int waitFor()
throws InterruptedException
InterruptedExceptionpublic boolean waitFor(long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic void destroy()
throws InterruptedException
InterruptedExceptionpublic boolean destroy(long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionprotected void cleanupDestroyed()
Copyright © 2016–2020 Softelnet. All rights reserved.