com.googlecode.android_scripting.interpreter
Class InterpreterProcess

java.lang.Object
  extended by com.googlecode.android_scripting.Process
      extended by com.googlecode.android_scripting.interpreter.InterpreterProcess
Direct Known Subclasses:
ScriptProcess

public class InterpreterProcess
extends Process

This is a skeletal implementation of an interpreter process.

Author:
Damon Kohler (damonkohler@gmail.com)

Constructor Summary
InterpreterProcess(Interpreter interpreter, AndroidProxy proxy)
          Creates a new InterpreterProcess.
 
Method Summary
 java.net.InetSocketAddress getAddress()
           
 java.lang.String getHost()
           
 Interpreter getInterpreter()
           
 int getPort()
           
 RpcReceiverManagerFactory getRpcReceiverManagerFactory()
           
 java.lang.String getSecret()
           
 java.lang.String getWorkingDirectory()
           
 void kill()
           
 void start(java.lang.Runnable shutdownHook)
           
 
Methods inherited from class com.googlecode.android_scripting.Process
addAllArguments, addArgument, getErr, getFd, getIn, getLogFile, getName, getOut, getPid, getUptime, isAlive, putAllEnvironmentVariables, putEnvironmentVariable, setBinary, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterpreterProcess

public InterpreterProcess(Interpreter interpreter,
                          AndroidProxy proxy)
Creates a new InterpreterProcess.

Parameters:
launchScript - the absolute path to a script that should be launched with the interpreter
port - the port that the AndroidProxy is listening on
Method Detail

getInterpreter

public Interpreter getInterpreter()

getHost

public java.lang.String getHost()

getPort

public int getPort()

getAddress

public java.net.InetSocketAddress getAddress()

getSecret

public java.lang.String getSecret()

getRpcReceiverManagerFactory

public RpcReceiverManagerFactory getRpcReceiverManagerFactory()

start

public void start(java.lang.Runnable shutdownHook)
Overrides:
start in class Process

kill

public void kill()
Overrides:
kill in class Process

getWorkingDirectory

public java.lang.String getWorkingDirectory()
Overrides:
getWorkingDirectory in class Process