org.terracotta.ipceventbus.proc
Class JavaProcess

java.lang.Object
  extended by java.lang.Process
      extended by org.terracotta.ipceventbus.proc.AnyProcess
          extended by org.terracotta.ipceventbus.proc.JavaProcess
Direct Known Subclasses:
EventJavaProcess

public class JavaProcess
extends AnyProcess

Author:
Mathieu Carbou

Constructor Summary
JavaProcess(Process process, OutputStream pipeStdout, OutputStream pipeStderr, InputStream pipeStdin, boolean collectStdout, boolean collectStderr, List<String> command, File workingDir, File javaHome, File javaExecutable, List<String> jvmArgs, List<File> classpath, String mainClass, List<String> arguments, Map<String,String> jvmProperties)
           
 
Method Summary
 List<String> getArguments()
           
 List<File> getClasspath()
           
 File getJavaExecutable()
           
 File getJavaHome()
           
 List<String> getJvmArgs()
           
 Map<String,String> getJvmProperties()
           
 String getMainClass()
           
static JavaProcessBuilder<? extends JavaProcess> newBuilder()
           
 
Methods inherited from class org.terracotta.ipceventbus.proc.AnyProcess
destroy, exitValue, getCommand, getCommandLine, getCurrentPid, getErrorStream, getFuture, getInputStream, getOutputStream, getPid, getRecordedStderr, getRecordedStderrText, getRecordedStdout, getRecordedStdoutText, getWorkingDirectory, isDestroyed, isRunning, isWindows, onDestroyed, onTerminated, toString, waitFor, waitForTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaProcess

public JavaProcess(Process process,
                   OutputStream pipeStdout,
                   OutputStream pipeStderr,
                   InputStream pipeStdin,
                   boolean collectStdout,
                   boolean collectStderr,
                   List<String> command,
                   File workingDir,
                   File javaHome,
                   File javaExecutable,
                   List<String> jvmArgs,
                   List<File> classpath,
                   String mainClass,
                   List<String> arguments,
                   Map<String,String> jvmProperties)
Method Detail

getJvmProperties

public final Map<String,String> getJvmProperties()

getJavaHome

public final File getJavaHome()

getJavaExecutable

public final File getJavaExecutable()

getJvmArgs

public final List<String> getJvmArgs()

getClasspath

public final List<File> getClasspath()

getMainClass

public final String getMainClass()

getArguments

public final List<String> getArguments()

newBuilder

public static JavaProcessBuilder<? extends JavaProcess> newBuilder()


Copyright © 2015. All rights reserved.