rice.proxy
Class Proxy
java.lang.Object
rice.proxy.Proxy
-
public class Proxy
- extends java.lang.Object
This class represents a generic Java process launching program which reads in
preferences from a preferences file and then invokes another JVM using those
prefs. If the launched JVM dies, this process can be configured to restart
the JVM any number of times before giving up. This process can also be configured
to launch the second JVM with a specified memory allocation, etc...
- Author:
- Alan Mislove
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PARAM_FILES
public static java.lang.String[] DEFAULT_PARAM_FILES
PROXY_PARAMETERS_NAME
public static java.lang.String PROXY_PARAMETERS_NAME
process
protected java.lang.Process process
lm
protected rice.proxy.Proxy.LivenessMonitor lm
environment
protected Environment environment
logger
protected Logger logger
Proxy
public Proxy(Environment env)
run
public void run()
throws java.io.IOException,
java.lang.InterruptedException
-
-
Throws:
-
java.io.IOException
java.lang.InterruptedException
buildJavaEnvironment
protected java.lang.String[] buildJavaEnvironment(Parameters parameters)
-
buildJavaCommand
protected java.lang.String buildJavaCommand(Parameters parameters)
-
restart
public void restart()
-
verifyJar
public boolean verifyJar(java.lang.String filename,
byte[] hash,
java.lang.String md5)
-
main
public static void main(java.lang.String[] args)
throws java.io.IOException,
java.lang.InterruptedException
-
-
Throws:
-
java.io.IOException
java.lang.InterruptedException
Copyright © 2001-2005 - Rice Pastry.