net.spy
Class SpyRunner

java.lang.Object
  extended byjava.lang.Thread
      extended bynet.spy.SpyThread
          extended bynet.spy.SpyRunner
All Implemented Interfaces:
Runnable

public class SpyRunner
extends SpyThread

SpyRunner - a hack-ass application server.

This is a stanalone application that will run other standalone applications in its process space.

Configuration for what to start is passed in as the first argument upon execution, and comes in the form of a properties file. An example properties file is as follows:

 # List of applications to start.
 apps	app1 app2

 # Configuration for app1
 app1.class	com.example.app1
 app1.args	Arguments for app1

 # Configuration for app2
 app2.class   com.example.app2
 app2.args    Arguments for app2
 


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SpyRunner(ThreadGroup tg, String object, String[] args)
           
 
Method Summary
static void main(String[] args)
          The main portion of SpyRunner.
 void run()
           
 
Methods inherited from class net.spy.SpyThread
getLogger
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpyRunner

public SpyRunner(ThreadGroup tg,
                 String object,
                 String[] args)
Method Detail

run

public void run()

main

public static void main(String[] args)
                 throws Exception
The main portion of SpyRunner.

Throws:
Exception