org.xwiki.job.event.status
Interface JobStatus
public interface JobStatus
Describe the current status of a job.
- Since:
- 4.0M1
- Version:
- $Id$
getState
JobStatus.State getState()
- Returns:
- the general state of the job
getRequest
Request getRequest()
- Returns:
- the job request provided when starting it
getLog
LogQueue getLog()
- Returns:
- the log sent during job execution
getLog
List<LogEvent> getLog(LogLevel level)
- Parameters:
level
- the level of the log
- Returns:
- the log sent with the provided level
getProgress
JobProgress getProgress()
- Returns:
- progress information about the job (percent, etc.)
ask
void ask(Object question)
throws InterruptedException
- Parameters:
question
- the question to ask as a Java bean
- Throws:
InterruptedException
- if the current thread is interrupted- Since:
- 4.0M2
getQuestion
Object getQuestion()
- Returns:
- the question
- Since:
- 4.0M2
answered
void answered()
- Indicate that the question has been answered.
- Since:
- 4.0M2
getStartDate
Date getStartDate()
- Returns:
- the date and time when the job has been started
getEndDate
Date getEndDate()
- Returns:
- the date and time when the job finished
Copyright © 2004-2012 XWiki. All Rights Reserved.