org.jboss.dtf.testframework.coordinator2.scheduler.types
Class ScheduleInformation
java.lang.Object
org.jboss.dtf.testframework.coordinator2.scheduler.types.ScheduleInformation
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- DailySchedule, MonthlySchedule, OneTimeOnlySchedule, WeeklySchedule
public abstract class ScheduleInformation
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DAILY
public static final int DAILY
- See Also:
- Constant Field Values
WEEKLY
public static final int WEEKLY
- See Also:
- Constant Field Values
MONTHLY
public static final int MONTHLY
- See Also:
- Constant Field Values
ONE_TIME_ONLY
public static final int ONE_TIME_ONLY
- See Also:
- Constant Field Values
ScheduleInformation
public ScheduleInformation(int type)
getUniqueId
public java.lang.String getUniqueId()
setRunInformation
public void setRunInformation(java.net.URL testDefsURL,
java.net.URL testSelectionsURL,
java.lang.String softwareVersion,
java.lang.String distributionList)
addFailure
public void addFailure(java.util.Date timeOfFailure,
java.lang.String reason)
throws ScheduleException
- Throws:
ScheduleException
getFailures
public java.util.Hashtable getFailures()
getTestDefinitionsURL
public java.net.URL getTestDefinitionsURL()
getTestSelectionsURL
public java.net.URL getTestSelectionsURL()
getSoftwareVersion
public java.lang.String getSoftwareVersion()
getDistributionList
public java.lang.String getDistributionList()
getNextActivationTime
public abstract java.util.Calendar getNextActivationTime()
- Retrieves the a Date object containing the time and date this
schedule next becomes active.
- Returns:
- The next activation time.
isScheduleFinished
public abstract boolean isScheduleFinished()
- Returns true if the schedule has now finished.
- Returns:
- True if the schedule is finished.
getAssociatedFile
public java.io.File getAssociatedFile()
deleteIfNecessary
public boolean deleteIfNecessary()
delete
public boolean delete()
associateFile
public void associateFile(java.io.File file)
serialize
public void serialize()
throws ScheduleException
- Throws:
ScheduleException
serialize
public void serialize(java.io.File outFile)
throws ScheduleException
- Throws:
ScheduleException
deserialize
public static ScheduleInformation deserialize(java.io.File inFile)
throws ScheduleException
- Throws:
ScheduleException