com.atlassian.confluence.schedule
Class ScheduledJobStatus

java.lang.Object
  extended by com.atlassian.confluence.schedule.ScheduledJobStatus
All Implemented Interfaces:
java.io.Serializable

public class ScheduledJobStatus
extends java.lang.Object
implements java.io.Serializable

This class contains the transient runtime state of a single job.

This class is thread-safe (and needs to be).

See Also:
Serialized Form

Constructor Summary
ScheduledJobStatus(ScheduledJobKey scheduledJobKey, java.util.List<ScheduledJobHistory> existingHistory)
           
 
Method Summary
 void addHistory(ScheduledJobHistory newHistory)
           
 long getAverageRunningTime()
           
 java.lang.String getGroup()
           
 java.util.List<ScheduledJobHistory> getHistory()
           
 java.lang.String getJobId()
           
 ScheduledJobKey getKey()
           
 java.util.Date getLastExecution()
           
 java.util.Date getNextExecution()
           
 ExecutionStatus getStatus()
           
 boolean isDisabled()
           
 boolean isEnabled()
           
 boolean isManuallyRunnable()
           
 void setNextExecution(java.util.Date nextExecution)
           
 void setStatus(ExecutionStatus status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScheduledJobStatus

public ScheduledJobStatus(ScheduledJobKey scheduledJobKey,
                          java.util.List<ScheduledJobHistory> existingHistory)
Method Detail

getKey

public ScheduledJobKey getKey()

getGroup

public java.lang.String getGroup()

getJobId

public java.lang.String getJobId()

getHistory

public java.util.List<ScheduledJobHistory> getHistory()

addHistory

public void addHistory(ScheduledJobHistory newHistory)

getStatus

public ExecutionStatus getStatus()

setStatus

public void setStatus(ExecutionStatus status)

getLastExecution

public java.util.Date getLastExecution()

getNextExecution

public java.util.Date getNextExecution()

setNextExecution

public void setNextExecution(java.util.Date nextExecution)

getAverageRunningTime

public long getAverageRunningTime()

isEnabled

public boolean isEnabled()

isDisabled

public boolean isDisabled()

isManuallyRunnable

public boolean isManuallyRunnable()


Copyright © 2003-2013 Atlassian. All Rights Reserved.