net.floodlightcontroller.jython
Class JythonServer

java.lang.Object
  extended by java.lang.Thread
      extended by net.floodlightcontroller.jython.JythonServer
All Implemented Interfaces:
java.lang.Runnable

public class JythonServer
extends java.lang.Thread

This class starts a thread that runs a jython interpreter that can be used for debug (or even development).

Author:
mandeepdhami

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected static org.slf4j.Logger log
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JythonServer(java.lang.String host_, int port_, java.util.Map<java.lang.String,java.lang.Object> locals_)
           
 
Method Summary
 void run()
          The main thread for this class invoked by Thread.run()
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static org.slf4j.Logger log
Constructor Detail

JythonServer

public JythonServer(java.lang.String host_,
                    int port_,
                    java.util.Map<java.lang.String,java.lang.Object> locals_)
Parameters:
host_ - Host to use for jython server
port_ - Port to use for jython server
locals_ - Locals to add to the interpreters top level name space
Method Detail

run

public void run()
The main thread for this class invoked by Thread.run()

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread
See Also:
Thread.run()