@Service public class JobConsoleImpl extends Object implements JobConsole
| Constructor and Description |
|---|
JobConsoleImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.framework.BundleContext ctx,
Map<String,Object> props) |
protected void |
deactivate() |
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)
JobConsolegetJobStatus in interface JobConsolesession - not used if activeOnly = trueactiveOnly - if true, only jobs that are currently
active in the ExecutionEngine are returned.@Activate
protected void activate(org.osgi.framework.BundleContext ctx,
Map<String,Object> props)
@Deactivate protected void deactivate()
public JobStatus getJobStatus(javax.jcr.Session session, String path)
JobConsolegetJobStatus in interface JobConsolesession - Session to use if reading from persistent storagepath - the job pathpublic String getJobStatusPagePath(javax.servlet.http.HttpServletRequest request, JobStatus jobStatus, String extension)
JobConsolegetJobStatusPagePath in interface JobConsolepublic String getJobStreamPath(javax.servlet.http.HttpServletRequest request, JobStatus jobStatus)
JobConsolegetJobStreamPath in interface JobConsoleCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.