Support
Help Save Reptile!
Navigation

Essentials

Installation

Developers

P2P (content distribution)

Search Infrastructure

Services

Proposals

Resources

Tasks

In order to run background updates, Reptile has a 'tasks' system which is basically a controlled threading environment.

The Reptile backend can intialize tasks and forget about them. Tasks are then asked to run at regular intervals (default is 5 minutes) without any additional code. Basically a 'fire and forget' system.


Design

All tasks must implement the Task interface.

All task requests (startup, shutdown, disable) are handled by the TaskManager.

The TaskManager runs each Task under a TaskThread. This is analogous to the standard Java Thread -> Runnable mechanism. The main difference is that we keep everything within one threadgroup and we can also shutdown a task if necessary.



Copyright © 2001-2003, OpenPrivacy.org