org.mbari.siam.core
Class ScheduleTaskImpl

java.lang.Object
  extended by org.mbari.siam.core.ScheduleTask
      extended by org.mbari.siam.core.ScheduleTaskImpl
All Implemented Interfaces:
Schedulable

public class ScheduleTaskImpl
extends ScheduleTask

An implementation of the abstract ScheduleTask. Implements execute method, which calls getData();

Author:
Kent Headley

Field Summary
 
Fields inherited from class org.mbari.siam.core.ScheduleTask
CHECK_TIME, COUNTER_EXPIRED, EXECUTING, READY, RUN, SUSPENDED, WAITING
 
Constructor Summary
ScheduleTaskImpl()
           
ScheduleTaskImpl(java.lang.String name, long interval, ScheduleOwner owner)
          Constructor
ScheduleTaskImpl(java.lang.String name, ScheduleSpecifier schedule, ScheduleOwner owner)
          Constructor
ScheduleTaskImpl(java.lang.String name, java.lang.String schedule, ScheduleOwner owner)
          Constructor
 
Method Summary
 void execute()
          Subclasses must implement.
 
Methods inherited from class org.mbari.siam.core.ScheduleTask
cancelTimer, equals, fakeJob, get, getEntryTime, getEntryTime, getKey, getLongCycles, getName, getOwner, getOwnerID, getOwnerName, getPeriod, getScheduleSpecifier, getState, getStateName, getTimer, getTimerTask, getTZ, isAbsolute, isMasked, isReady, isReady, isRelative, isSelectedTime, parse, rescheduleTimer, rescheduleTimer, resetAbsoluteTimer, resetTimer, resume, setKey, setKey, setLongCycles, setName, setOwnerID, setOwnerName, setSpecifier, setState, setTimer, setTimerTask, sleepingUntil, suspend, sync, sync, timeRemaining, timeRemaining, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScheduleTaskImpl

public ScheduleTaskImpl()

ScheduleTaskImpl

public ScheduleTaskImpl(java.lang.String name,
                        java.lang.String schedule,
                        ScheduleOwner owner)
                 throws ScheduleParseException
Constructor

Parameters:
schedule - cron-like schedule
name - schedule name
owner - owner of this ScheduleTask
Throws:
ScheduleParseException

ScheduleTaskImpl

public ScheduleTaskImpl(java.lang.String name,
                        ScheduleSpecifier schedule,
                        ScheduleOwner owner)
                 throws ScheduleParseException
Constructor

Parameters:
schedule - ScheduleSpecifier
name - schedule name
owner - owner of this ScheduleTask
Throws:
ScheduleParseException

ScheduleTaskImpl

public ScheduleTaskImpl(java.lang.String name,
                        long interval,
                        ScheduleOwner owner)
                 throws ScheduleParseException
Constructor

Parameters:
interval - sample interval
name - schedule name
owner - owner of this ScheduleTask
Throws:
ScheduleParseException
Method Detail

execute

public void execute()
Description copied from class: ScheduleTask
Subclasses must implement. Fulfills Schedulable interface

Specified by:
execute in interface Schedulable
Specified by:
execute in class ScheduleTask


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.