Log Samples

In this section:

The Log directory contains sample Java applications that show how to use the ReportCaster logging features in 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.


Top of page

x
G10_Get_OwnerList.java

Writes a list of log owners to standard out.

Usage: java G10_Get_OwnerList


Top of page

x
G11_Get_LogByJobId.java

This application does a number of things in an attempt to give examples of functionality. It accepts two arguments: a schedule owner and the Job Description of the schedule. Given the owner and the schedule description, it first runs the specified job. It then waits for the job to be complete and displays the log information.

Usage: java G11_Get_LogByJobId <owner> <scheduleDescription>


Top of page

x
G12_Get_LastLog.java

This application gets the last log for a specified owner and job description and displays the information to standard out. It accepts two arguments: the schedule owner and the job description.

Usage: java G12_Get_LastLog <owner> <scheduleDescription>


Top of page

x
G13_Get_LogListBySchedule.java

This application writes log information to standard out for all logs generated by the specified schedule. It accepts two arguments: the schedule owner and the job description.

Usage: java G13_Get_LogListBySchedule <owner> <scheduleDescription>


Top of page

x
G14_Get_LogListByOwner.java

This application writes log information to standard out for all of the logs belonging to a particular owner. It accepts one argument: the owner of the schedule(s).

Usage: java G14_Get_LogListByOwner <owner>


Top of page

x
G15_Get_LogListByOwnerByCalendar.java

This application writes log information to standard out for all of the logs belonging to a particular owner that ran on or after a specified date. It accepts two arguments: the owner of the schedule(s) and the start date.

Usage: java G15_Get_LogListByOwnerByCalendar <owner><startDate>


Top of page

x
G30_Delete_LogListBySchedule.java

This application deleted all logs for a specific schedule. It accepts two arguments: the owner and Job Description.

Usage: java G30_Delete_LogListBySchedule <owner> <scheduleDescription>


WebFOCUS