org.xwiki.job.event
Class JobStartedEvent
java.lang.Object
org.xwiki.job.event.JobStartedEvent
- All Implemented Interfaces:
- Serializable, JobEvent, org.xwiki.observation.event.BeginEvent, org.xwiki.observation.event.Event
public class JobStartedEvent
- extends Object
- implements org.xwiki.observation.event.BeginEvent
Job started event launched when a new job start.
- Since:
- 4.0M1
- Version:
- $Id: 3b61791168ca900b662fb8cdaf4c78c578d56e8c $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xwiki.observation.event.Event |
matches |
JobStartedEvent
public JobStartedEvent()
- Default constructor.
JobStartedEvent
public JobStartedEvent(String jobType)
- Parameters:
jobType
- the event related job type
JobStartedEvent
public JobStartedEvent(String jobId,
String jobType,
Request request)
- Parameters:
jobId
- the event related job unique idjobType
- the event related job typerequest
- the event related job request
JobStartedEvent
public JobStartedEvent(List<String> jobId,
String jobType,
Request request)
- Parameters:
jobId
- the event related job unique idjobType
- the event related job typerequest
- the event related job request
JobStartedEvent
public JobStartedEvent(JobStartedEvent jobEvent)
- Parameters:
jobEvent
- the event to copy
getJobId
public List<String> getJobId()
- Specified by:
getJobId
in interface JobEvent
- Returns:
- the job id of the source job of this event
getJobType
public String getJobType()
- Specified by:
getJobType
in interface JobEvent
- Returns:
- the job type of the source job of this event
getRequest
public Request getRequest()
- Specified by:
getRequest
in interface JobEvent
- Returns:
- the request related to the source job of this event
matches
public boolean matches(Object event)
- Specified by:
matches
in interface org.xwiki.observation.event.Event
Copyright © 2004-2012 XWiki. All Rights Reserved.