| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
edu.sdsc.inca.agent.ReporterManagerControllerTest.MockAgent
public static class ReporterManagerControllerTest.MockAgent
Emulates the agent's tasks
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class java.lang.Thread | 
|---|
| java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler | 
| Field Summary | |
|---|---|
|  int | numConnections | 
|  int | numConnectionsReceived | 
|  int | port | 
|  edu.sdsc.inca.protocol.ProtocolReader | reader | 
|  edu.sdsc.inca.protocol.ProtocolWriter | writer | 
| Fields inherited from class java.lang.Thread | 
|---|
| MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY | 
| Constructor Summary | |
|---|---|
| ReporterManagerControllerTest.MockAgent(boolean auth,
                                        ReporterManagerController rmc) | |
| Method Summary | |
|---|---|
|  void | cleanup()Ensure's correct cleanup. | 
|  java.lang.String | mockAgentRegister()Mimics the agent's register task | 
|  void | run()Allows this mock agent to be run as a thread | 
| 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 | 
| Field Detail | 
|---|
public edu.sdsc.inca.protocol.ProtocolWriter writer
public edu.sdsc.inca.protocol.ProtocolReader reader
public int port
public int numConnections
public int numConnectionsReceived
| Constructor Detail | 
|---|
public ReporterManagerControllerTest.MockAgent(boolean auth,
                                               ReporterManagerController rmc)
                                        throws java.lang.Exception
java.lang.Exception| Method Detail | 
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
public java.lang.String mockAgentRegister()
                                   throws java.lang.Exception
java.lang.Exception - if test fails
public void cleanup()
             throws java.io.IOException
java.io.IOException - if problem cleaning up| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||