net.spy.util
Class SpyRunner

java.lang.Object
  extended by java.lang.Thread
      extended by net.spy.SpyThread
          extended by net.spy.util.SpyRunner
All Implemented Interfaces:
java.lang.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
 


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SpyRunner(java.lang.ThreadGroup tg, java.lang.String object, java.lang.String[] args)
           
 
Method Summary
static void main(java.lang.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, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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(java.lang.ThreadGroup tg,
                 java.lang.String object,
                 java.lang.String[] args)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

main

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

Throws:
java.lang.Exception


Copyright © 1995-2005 SPY Internetworking. All Rights Reserved.