Listing OpenCms's scheduled jobs

(Difference between revisions)
Jump to: navigation, search
 
m
Line 4: Line 4:
 
<%@page import="org.opencms.main.*,
 
<%@page import="org.opencms.main.*,
 
                         org.opencms.scheduler.*,
 
                         org.opencms.scheduler.*,
                        org.opencms.file.CmsObject,
 
                        org.opencms.jsp.CmsJspBean,
 
 
java.util.*"%>
 
java.util.*"%>
 
<HTML><BODY>
 
<HTML><BODY>

Revision as of 14:45, 18 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();
%>
	&lt;li&gt;<%=job.getId()%>(<%=job.getClassName()%>) - <%=job.getJobName()%>
<%}%>
	</ul>
</BODY></HTML>
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox