public class XmlRunner extends java.lang.Thread implements Listenable<NegotiationEvent>
Constructor and Description |
---|
XmlRunner(java.lang.String inputFile,
java.lang.String outputFile)
Initializes a new instance of the XmlRunner.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(Listener<NegotiationEvent> listener)
Adds a new listener to the list
|
void |
notifyChange(NegotiationEvent e)
Must implement, but we access the private implementation directly.
|
void |
removeListener(Listener<NegotiationEvent> listener)
Remove a listener from the list
|
void |
run()
Run the XmlRunner
|
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
public XmlRunner(java.lang.String inputFile, java.lang.String outputFile)
inputFile
- The file to read configuration fromoutputFile
- The file to write results topublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void addListener(Listener<NegotiationEvent> listener)
addListener
in interface Listenable<NegotiationEvent>
listener
- The listener to addpublic void removeListener(Listener<NegotiationEvent> listener)
removeListener
in interface Listenable<NegotiationEvent>
listener
- listener to removepublic void notifyChange(NegotiationEvent e)
notifyChange
in interface Listenable<NegotiationEvent>
e
- an optional value to pass to our listeners.