|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.mds.usefulrp.GLUEResourceProperty.PeriodicExecutor
This class will periodically execute a specified script. TODO: Periodic execution will be started automatically by the constructor.
| Field Summary | |
(package private) GLUEResourceProperty.Listener |
callback
callback to be made to deliver |
(package private) java.lang.Class |
cl
the output of the producer will be deserialised to an instance of this class. |
(package private) int |
period
number of seconds to wait after one execution has finished before starting the subsequent execution. |
private int |
refresherThreadNumber
counter to use for numbering in the names of the refresher threads |
(package private) java.lang.String |
scriptName
Defines the type and name of the script to run. |
(package private) java.lang.Thread |
thread
|
| Constructor Summary | |
(package private) |
GLUEResourceProperty.PeriodicExecutor(java.lang.String s,
java.lang.Class c,
GLUEResourceProperty.Listener l,
int p)
|
| Method Summary | |
void |
run()
|
private void |
runScript()
Executes the configured provider. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.lang.String scriptName
java - the remainder of the
paramater will be taken as a java class name to
instantiate and execute (TODO cache object?)shell - the remainder of the
parameter will be taken as a system commandline
to execute.
java.lang.Class cl
GLUEResourceProperty.Listener callback
int period
java.lang.Thread thread
private int refresherThreadNumber
| Constructor Detail |
GLUEResourceProperty.PeriodicExecutor(java.lang.String s,
java.lang.Class c,
GLUEResourceProperty.Listener l,
int p)
| Method Detail |
public void run()
run in interface java.lang.Runnableprivate void runScript()
cl
will be passed to the listener callback.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||