Listing OpenCms's scheduled jobs
From OpenCms Wiki
(Difference between revisions)
m |
m |
||
(One intermediate revision by one user not shown) | |||
Line 2: | Line 2: | ||
<code lang="Java"> | <code lang="Java"> | ||
− | <%@page import="org.opencms.main.*, | + | <%@page import="org.opencms.main.*, org.opencms.scheduler.*, java.util.*"%> |
− | + | ||
− | + | ||
<HTML><BODY> | <HTML><BODY> | ||
<ul> | <ul> | ||
Line 11: | Line 9: | ||
CmsScheduledJobInfo job = (CmsScheduledJobInfo)i.next(); | CmsScheduledJobInfo job = (CmsScheduledJobInfo)i.next(); | ||
%> | %> | ||
− | + | <li><%=job.getId()%>(<%=job.getClassName()%>) - <%=job.getJobName()%> | |
<%}%> | <%}%> | ||
</ul> | </ul> | ||
</BODY></HTML> | </BODY></HTML> | ||
</code> | </code> |
Latest revision as of 14:03, 19 December 2007
The JSP code below lists the OpenCms's scheduled jobs (must have administrator rights):
<%@page import="org.opencms.main.*, org.opencms.scheduler.*, java.util.*"%> <HTML><BODY> <ul> <% Iterator i = OpenCms.getScheduleManager().getJobs().iterator(); while (i.hasNext()) { CmsScheduledJobInfo job = (CmsScheduledJobInfo)i.next(); %> <li><%=job.getId()%>(<%=job.getClassName()%>) - <%=job.getJobName()%> <%}%> </ul> </BODY></HTML>