ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/DBReporter/ProcessesTotalReport.java
Revision: 1.2
Committed: Sat Jan 6 22:09:32 2001 UTC (24 years, 11 months ago) by pjm2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
State: FILE REMOVED
Error occurred while calculating annotation data.
Log Message:
Remove the first two reports as they no longer comply with the template
standards.  The rest of the program has been altered to handle plugin
reports, which can be defined in a report.lst file.

File Contents

# Content
1 //---PACKAGE DECLARATION---
2
3 //---IMPORTS---
4 import java.sql.*;
5
6 /**
7 * Produces a report of the total number of processes running
8 * on a host.
9 *
10 * @author $Author: pjm2 $
11 * @version $Id: ProcessesTotalReport.java,v 1.1 2000/12/14 17:10:47 pjm2 Exp $
12 */
13 public class ProcessesTotalReport extends Report {
14
15 //---FINAL ATTRIBUTES---
16
17 //---STATIC METHODS---
18
19 //---CONSTRUCTORS---
20
21 public ProcessesTotalReport(String directory, Statement stmt, String machine_name, long startDate, long endDate){
22 super (directory, stmt, machine_name, startDate, endDate);
23
24 // Use this from the parameter table.
25 _reportField = "packet.processes.total";
26
27 // Use this select query.
28 _sql = "SELECT receipt_date, value FROM packet_test pkt, parameter_test param WHERE pkt.id=param.packet_id AND pkt.machine_name='"+ _machine_name+"' AND pkt.receipt_date >= "+_startDate+" AND pkt.receipt_date <= "+_endDate+" AND param.name='"+_reportField+"' ORDER BY pkt.receipt_date;";
29
30 }
31
32 //---PUBLIC METHODS---
33
34 //---PRIVATE METHODS---
35
36 //---ACCESSOR/MUTATOR METHODS---
37
38 //---ATTRIBUTES---
39
40 //---STATIC ATTRIBUTES---
41
42 }