Skip to content

Package io.github.qishr.cascara.common.exec

Class IsolatedExecutor

java.lang.Object
        io.github.qishr.cascara.common.exec.IsolatedExecutor


@io.github.qishr.cascara.common.annotation.Beta
public class IsolatedExecutor

Nested Class Summary

Modifier and Type Class Description
public static io.github.qishr.cascara.common.exec.IsolatedExecutor.Response

Method Summary

Modifier and Type Method Description
public static IsolatedExecutor forTask(Class<? extends AbstractExecutionTask> task, Class<?> response)
public static Response run(Class<? extends AbstractExecutionTask> task, Object input, Class<?> response, JvmOptions options)
public Serializer<?> getSerializer()
public IsolatedExecutor setOptions(JvmOptions options)
public IsolatedExecutor setIpcDebugEnabled(boolean enabled)
public IsolatedExecutor setDiagnosticForwardingEnabled(boolean enabled)
public Response run(Object input)
public Response run(Object input, JvmOptions options)

Method Details

forTask

public static IsolatedExecutor forTask(Class<? extends AbstractExecutionTask> task, Class<?> response)


run

public static Response run(Class<? extends AbstractExecutionTask> task, Object input, Class<?> response, JvmOptions options)


getSerializer

public Serializer<?> getSerializer()


setOptions

public IsolatedExecutor setOptions(JvmOptions options)


setIpcDebugEnabled

public IsolatedExecutor setIpcDebugEnabled(boolean enabled)


setDiagnosticForwardingEnabled

public IsolatedExecutor setDiagnosticForwardingEnabled(boolean enabled)


run

public Response run(Object input)

Throws:

IOException , InterruptedException


run

public Response run(Object input, JvmOptions options)