ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/DBReporter/CpuUserReport.java
Revision: 1.2
Committed: Mon Dec 11 17:02:47 2000 UTC (25 years ago) by pjm2
Branch: MAIN
Changes since 1.1: +8 -7 lines
Log Message:
Altered the way in which classes extend the Report class.

File Contents

# Content
1 //---PACKAGE DECLARATION---
2
3 //---IMPORTS---
4 import java.sql.*;
5
6 /**
7 * Produces a report of the available memory in a host.
8 *
9 * @author $Author: pjm2 $
10 * @version $Id: CpuUserReport.java,v 1.1 2000/12/11 16:28:13 pjm2 Exp $
11 */
12 public class CpuUserReport extends Report {
13
14 //---FINAL ATTRIBUTES---
15
16 //---STATIC METHODS---
17
18 //---CONSTRUCTORS---
19
20 public CpuUserReport(String directory, Statement stmt, String machine_name, long startDate, long endDate){
21 super (directory, stmt, machine_name, startDate, endDate);
22 _reportField = "packet.cpu.user";
23 _sql = "SELECT * 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+"';";
24 }
25
26 //---PUBLIC METHODS---
27
28 // Override the superclass here to obtain special functionality.
29 //public void createReport(){
30
31 // Activate special funtionality.
32
33
34 // Now carry on with the normal method for creating reports.
35 // super.createReport();
36 //}
37
38 //---PRIVATE METHODS---
39
40 //---ACCESSOR/MUTATOR METHODS---
41
42 //---ATTRIBUTES---
43
44 //---STATIC ATTRIBUTES---
45
46 }