ePOST API

rice.proxy
Class Proxy

java.lang.Object
  extended by 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

Nested Class Summary
protected  class Proxy.AutomaticUpdater
           
protected  class Proxy.DynamicClasspath
           
protected  class Proxy.LivenessMonitorTest
           
 
Field Summary
static java.lang.String[] DEFAULT_PARAM_FILES
           
protected  Environment environment
           
protected  rice.proxy.Proxy.LivenessMonitor lm
           
protected  Logger logger
           
protected  java.lang.Process process
           
static java.lang.String PROXY_PARAMETERS_NAME
           
 
Constructor Summary
Proxy(Environment env)
           
 
Method Summary
protected  java.lang.String buildJavaCommand(Parameters parameters)
           
protected  java.lang.String[] buildJavaEnvironment(Parameters parameters)
           
static void main(java.lang.String[] args)
           
 void restart()
           
 void run()
           
 boolean verifyJar(java.lang.String filename, byte[] hash, java.lang.String md5)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Proxy

public Proxy(Environment env)
Method Detail

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

ePOST API

Copyright © 2001-2005 - Rice Pastry.