Visual Basic Scheduled Agent Demo
Download ScheduledAgent.zip and uncompress it inside the demos\VB Projects\ folder.
Open ScheduleDemo.sln using Visual Studio and press F6 to build the demo.
Double click on the file start_nk.bat to start Neokernel.
This demonstration shows the scheduling services included
with the Neokernel.
Agents that extend com.neokernel.nk.ScheduledAgent can be
woken up according to a schedule defined in the agent's props.
The schedule syntax is:
date = mm/dd/yyyy
time = hh:mm:ss
[every n[y|m|w|d]] | [on [[SU][MO][TU][WE][TH][FI][SA]] | [startDay-endDay]]]
[between startTime-endTime every n[h|m|s]] |
[at time1, time2, time3, ...]
[[every n[y|m|w|d]] | [on [[SU][MO][TU][WE][TH][FR][SA] | [startDay-endDay]]]]
[[between startTime-endTime every n[h|m|s]] | [at time1,time2,time3]]
This scheduled agent demonstrates writing an agent that uses
the Scheduler by subclassing the ScheduledAgent. When taking
this approach, the schedule property is required, and a wakeup()
method must be defined. On startup, the agent will automatically
schedule itself. Upon receiving a stop request, the agent will
automatically unschedule itself.
Updated: 7/12/10 7:47 PM