S
soup_or_power
Hi
I searched this group with the keyword "scheduler" and found several
threads. None of them meet my requirements as follows:
a) open a file of jobs with timestamps
b) construct a java class for each job older than current time; the
side effect of the constructor is to send an email
c) remove the job from the file
d) sleep for 1 sec and go to (a)
I know how to create a java class with the above steps in the main. I
can execute the java class with nohup on linux and make it almost like
a daemon.
However I am not sure about the overhead (the linux machine is
overloaded). Ideally I would like to check job file modification time;
if it is more recent than the saved modification time open the file
and do a bunch of stuff. I don't know how to do this. I think the File
class some stuff.
Also I would like to use the Scheduler class. But I couldn't find any
examples on how to use it.
Can someon please drop me some hints?
Thanks
I searched this group with the keyword "scheduler" and found several
threads. None of them meet my requirements as follows:
a) open a file of jobs with timestamps
b) construct a java class for each job older than current time; the
side effect of the constructor is to send an email
c) remove the job from the file
d) sleep for 1 sec and go to (a)
I know how to create a java class with the above steps in the main. I
can execute the java class with nohup on linux and make it almost like
a daemon.
However I am not sure about the overhead (the linux machine is
overloaded). Ideally I would like to check job file modification time;
if it is more recent than the saved modification time open the file
and do a bunch of stuff. I don't know how to do this. I think the File
class some stuff.
Also I would like to use the Scheduler class. But I couldn't find any
examples on how to use it.
Can someon please drop me some hints?
Thanks