Console Samples

In this section:

The Console directory contains sample Java applications that show how to use the ReportCaster administrator console for the API. As with all of the samples, it uses the ReportCaster authentication and context information contained in samples.properties. These sample Java applications are presented as examples for learning purposes and are not represented as production quality applications. Note that with the console, jobs need to be either running or in the queue to get valid results. These applications attempt to simulate running and queued jobs. However, the speed of your hardware and the configuration of your environment might require these applications to be altered in order for jobs to be placed in waiting or captured while they are running.


Top of page

x
C00_Suspend_Server.java

This sample suspends the Distribution Server. The server remains running, but it stops polling the WebFOCUS repository for scheduled jobs and will not run new jobs. If a job is submitted while the Distribution Server is suspended, a message is returned stating that the server has been suspended.

Usage: java C00_Suspend_Server


Top of page

x
C01_Resume_Server.java

This sample resumes a suspended Distribution Server.

Usage: java C00_Resume_Server


Top of page

x
C10_Get_InQ.java

This sample creates three schedules in an attempt to get them to run simultaneously, so that at least one is placed in the queue. It then queries the queue and shows a list of waiting jobs.

Usage: java C10_Get_InQ


Top of page

x
C11_Get_Running.java

This sample creates three schedules in an attempt to get them to run simultaneously, so that at least one is running. It then queries the queue and shows a list of running jobs.

Usage: java C11_Get_Running


Top of page

x
C31_Update_Priority.java

This sample runs two schedules in an attempt to place the second one on the queue. This application, if it can access the second job, will change its priority from the default (3) to whatever is designated in the command line. This accepts one argument: the new priority.

Usage: javaC31_Update_Priority <priority>


Top of page

x
C32_Delete_FromQ.java

This sample runs two schedules in an attempt to place the second one on the queue. This application, if it can access the second job, will delete this job from the queue and then print the remaining jobs in the queue to standard out.

Usage: java C32_Delete_FromQ


WebFOCUS