Package hec.model
Class SchedulableJob
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.model.SchedulableJob
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable,Comparable,Observer,Modifiable
- Direct Known Subclasses:
ScriptJob
base class for jobs that can be scheduled with the Scheduler
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(SchedulableJob thatJob) booleangetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.longintintintgetUser()booleanvoidbooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetPassword(String password) voidsetRecurring(boolean b) voidsetRecurringAmount(int amount) set the recurring amount.voidsetRecurringInterval(String interval) set the recurring interval.voidsetStartDate(String startDate) voidsetTimezoneOffset(int offset) voidMethods inherited from class hec.lang.NamedType
addModifiableListener, clone, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, toString, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
MINUTE_INTERVAL
- See Also:
-
HOUR_INTERVAL
- See Also:
-
DAY_INTERVAL
- See Also:
-
SINGLE
- See Also:
-
-
Constructor Details
-
SchedulableJob
public SchedulableJob() -
SchedulableJob
-
-
Method Details
-
setRecurring
public void setRecurring(boolean b) -
setStartDate
-
isRecurring
public boolean isRecurring() -
getStartDateString
-
getStartDate
-
getRecurringAmount
public int getRecurringAmount() -
getRecurringInterval
public int getRecurringInterval() -
getIntervalString
-
setUser
-
getUser
-
setPassword
-
getPassword
-
setRecurringAmount
set the recurring amount. amount must be greater than 0 throws IllegalArgumentException if amount < 1- Throws:
IllegalArgumentException
-
setRecurringInterval
set the recurring interval. Currently supports Hour or Day throws IllegalArgumentException if interval isn't Hour or Day.- Throws:
IllegalArgumentException
-
getPeriod
public long getPeriod() -
setTimezoneOffset
public void setTimezoneOffset(int offset) -
getTimezoneOffset
public int getTimezoneOffset() -
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classNamedType- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Overrides:
setFieldObjectin classNamedType- Parameters:
fld- The java field object representing the member field to be setfobj- The data to set in that field- Returns:
- returns true if successful
-
printInfo
public void printInfo() -
equals
-
equals
-