jrunx.scheduler
Interface Scheduler

All Superinterfaces:
SchedulerServiceMBean, java.io.Serializable, Service, ServiceMBean, ThreadPoolServiceMBean
All Known Implementing Classes:
SchedulerService

public interface Scheduler
extends SchedulerServiceMBean

a scheduler provides the basic ability to run a given task at a given time. That's it. Of course, all kinds of fancy functionality can be built on top of this -- cron, one-shot events, periodic background tasks, etc.

There are no restrictions on what a Runnable do. For example, they can change their thread priorities and therefore run at a lower or higher priority than other tasks even if they are scheduled for the same exact time.

A scheduler parallels a thread in many ways. A Runnable encapsulates a basic unit of work for either a Thread or a Scheduler. A runnable can certianly reschedule itself, return immediately, or whatever.


Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Methods inherited from interface jrunx.scheduler.SchedulerServiceMBean
cancel, registerForShutDown, schedule, scheduleFromNow, shutdownObjects
 
Methods inherited from interface jrunx.scheduler.ThreadPoolServiceMBean
getActiveHandlerThreads, getMaxHandlerThreads, getMinHandlerThreads, getThreadWaitTimeout, setActiveHandlerThreads, setMaxHandlerThreads, setMinHandlerThreads, setThreadWaitTimeout
 
Methods inherited from interface jrunx.kernel.ServiceMBean
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, init, start, stop, updateStatus
 



Copyright � 2002 Macromedia Corporation. All Rights Reserved.