|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Timer
edu.harvard.mgh.purcell.gCLINE.data.AutoUpdater
public class AutoUpdater
AutoUpadater extends Timer, automatically updating the output files attached in OpView.
Nested Class Summary | |
---|---|
class |
AutoUpdater.MyRenderer
Create a renderer to reflect that status of each operation (completed, failed or running). |
Field Summary | |
---|---|
static java.lang.String |
COMPLETE
Flags a completed operation |
private Record |
data
This classes access to the general data |
static java.lang.String |
ERROR
Flags a failed operation |
private ErrorManager |
errors
Error messages |
private StartFrame |
frame
Window that this updater is attached to. |
private org.apache.log4j.Logger |
logger
A logger for this clas |
private java.lang.String |
op_status_ext
The file extention that this updater looks at to determine the exit status of the log. |
private java.util.HashMap<java.lang.String,java.lang.String> |
opStatis
A hash map that keeps all the operations and their current status completed, running, or failed. |
private java.util.TimerTask |
readLogs
This runs every 5 seconds ideal but can be delayed if there isn't enough processor space. |
static java.lang.String |
RUNNING
Flags a running operation |
Constructor Summary | |
---|---|
AutoUpdater(StartFrame f,
Record d,
java.lang.String givenExt,
ErrorManager e,
int sec)
Create and start our unique timer. |
Method Summary | |
---|---|
void |
addOp(java.lang.String opName)
|
void |
cancel()
runs the Timer's cancel and set the opStatis to null for garbage collection. |
private java.lang.String |
processOpName(java.lang.String s)
Pull the operation name from the text in the operation node. |
Methods inherited from class java.util.Timer |
---|
purge, schedule, schedule, schedule, schedule, scheduleAtFixedRate, scheduleAtFixedRate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private org.apache.log4j.Logger logger
private StartFrame frame
private java.lang.String op_status_ext
public static java.lang.String COMPLETE
public static java.lang.String RUNNING
public static java.lang.String ERROR
private java.util.HashMap<java.lang.String,java.lang.String> opStatis
private Record data
private ErrorManager errors
private java.util.TimerTask readLogs
Constructor Detail |
---|
public AutoUpdater(StartFrame f, Record d, java.lang.String givenExt, ErrorManager e, int sec)
d
- the current projectMethod Detail |
---|
public void cancel()
cancel
in class java.util.Timer
public void addOp(java.lang.String opName)
private java.lang.String processOpName(java.lang.String s)
s
- a string from the operaiton node in the form "name: discription"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |