@Service public class JobConsoleImpl extends Object implements JobConsole
Constructor and Description |
---|
JobConsoleImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext ctx) |
protected void |
deactivate(org.osgi.service.component.ComponentContext ctx) |
Iterator<JobStatus> |
getJobStatus(javax.jcr.Session session,
boolean activeOnly)
Return Iterator on JobStatus, in descending order of
creation date.
|
JobStatus |
getJobStatus(javax.jcr.Session session,
String path)
Return a single JobStatus, null if not found.
|
String |
getJobStatusPagePath(javax.servlet.http.HttpServletRequest request,
JobStatus jobStatus,
String extension)
Return the full path, including extension, to the job's status page.
|
String |
getJobStreamPath(javax.servlet.http.HttpServletRequest request,
JobStatus jobStatus)
Return the full path, including extension, to the job's stream
|
public static final String JOB_QUERY
public Iterator<JobStatus> getJobStatus(javax.jcr.Session session, boolean activeOnly)
JobConsole
getJobStatus
in interface JobConsole
session
- not used if activeOnly = trueactiveOnly
- if true, only jobs that are currently
active in the ExecutionEngine are returned.@Activate protected void activate(org.osgi.service.component.ComponentContext ctx)
@Deactivate protected void deactivate(org.osgi.service.component.ComponentContext ctx)
public JobStatus getJobStatus(javax.jcr.Session session, String path)
JobConsole
getJobStatus
in interface JobConsole
session
- Session to use if reading from persistent storagepath
- the job pathpublic String getJobStatusPagePath(javax.servlet.http.HttpServletRequest request, JobStatus jobStatus, String extension)
JobConsole
getJobStatusPagePath
in interface JobConsole
public String getJobStreamPath(javax.servlet.http.HttpServletRequest request, JobStatus jobStatus)
JobConsole
getJobStreamPath
in interface JobConsole
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.