|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.slamd.report.PDFReportGenerator
This class provides an implementation of a SLAMD report generator that will write the report information to a PDF document.
| Field Summary | |
static java.lang.String |
PARAM_INCLUDE_GRAPHS
The name of the configuration parameter that indicates whether to include graphs in the report. |
static java.lang.String |
PARAM_INCLUDE_JOB_CONFIG
The name of the configuration parameter that indicates whether to include the job-specific configuration in the report. |
static java.lang.String |
PARAM_INCLUDE_MONITOR_STATS
The name of the configuration parameter that indicates whether to include resource monitor statistics in the report. |
static java.lang.String |
PARAM_INCLUDE_OPTIMIZING_ITERATIONS
The name of the configuration parameter that indicates whether to include the individual iterations of an optimizing job. |
static java.lang.String |
PARAM_INCLUDE_SCHEDULE_CONFIG
The name of the configuration parameter that indicates whether to include the schedule configuration in the report. |
static java.lang.String |
PARAM_INCLUDE_STATS
The name of the configuration parameter that indicates whether to include job statistics in the report. |
static java.lang.String |
PARAM_REQUIRE_STATS
The name of the configuration parameter that indicates whether to only include jobs that contain statistics in the generated report. |
static java.lang.String |
PARAM_VIEW_IN_BROWSER
The name of the configuration parameter that indicates whether to view the resulting PDF document in the browser (if supported) or save to disk. |
| Constructor Summary | |
PDFReportGenerator()
Creates a new text report generator. |
|
| Method Summary | |
void |
addJobReport(Job job)
Indicates that information about the provided job should be included in the report. |
void |
addOptimizingJobReport(OptimizingJob optimizingJob)
Indicates that information about the provided optimizing job should be included in the report. |
void |
generateReport(RequestInfo requestInfo)
Generates the report and sends it to the user over the provided servlet response. |
java.lang.String |
getReportGeneratorName()
Retrieves a user-friendly name that can be used to indicate the type of report that will be generated. |
ParameterList |
getReportParameterStubs()
Retrieves a set of parameters that can be used to allow the user to configure the way that the report is generated. |
static int |
inchesToPoints(double numInches)
Converts the specified number of inches into points (there are 72 points per inch). |
void |
initializeReporter(ParameterList reportParameters)
Initializes this reporter based on the parameters customized by the end user. |
ReportGenerator |
newInstance()
Retrieves a new instance of this report generator initialized with the default configuration. |
void |
onChapter(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document,
float chapterPos,
com.lowagie.text.Paragraph title)
Performs the appropriate action necessary when starting a new chapter. |
void |
onChapterEnd(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document,
float chapterEndPos)
Performs the appropriate action necessary when ending a chapter. |
void |
onCloseDocument(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document)
Performs the appropriate action necessary when opening a document. |
void |
onEndPage(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document)
Performs the appropriate action necessary when ending a page. |
void |
onGenericTag(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document,
com.lowagie.text.Rectangle rectangle,
java.lang.String text)
Performs the appropriate action necessary when writing a generic tag. |
void |
onOpenDocument(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document)
Performs the appropriate action necessary when opening a document. |
void |
onParagraph(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document,
float paragraphPos)
Performs the appropriate action necessary when starting a new paragraph. |
void |
onParagraphEnd(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document,
float paragraphEndPos)
Performs the appropriate action necessary when ending a paragraph. |
void |
onSection(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document,
float sectionPos,
int depth,
com.lowagie.text.Paragraph sectionTitle)
Performs the appropriate action necessary when beginning a new section. |
void |
onSectionEnd(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document,
float sectionEndPos)
Performs the appropriate action necessary when ending a section. |
void |
onStartPage(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document)
Performs the appropriate action necessary when starting a new page. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String PARAM_INCLUDE_GRAPHS
public static final java.lang.String PARAM_INCLUDE_MONITOR_STATS
public static final java.lang.String PARAM_INCLUDE_JOB_CONFIG
public static final java.lang.String PARAM_INCLUDE_SCHEDULE_CONFIG
public static final java.lang.String PARAM_INCLUDE_STATS
public static final java.lang.String PARAM_REQUIRE_STATS
public static final java.lang.String PARAM_INCLUDE_OPTIMIZING_ITERATIONS
public static final java.lang.String PARAM_VIEW_IN_BROWSER
| Constructor Detail |
public PDFReportGenerator()
| Method Detail |
public java.lang.String getReportGeneratorName()
getReportGeneratorName in interface ReportGeneratorpublic ReportGenerator newInstance()
newInstance in interface ReportGeneratorpublic ParameterList getReportParameterStubs()
getReportParameterStubs in interface ReportGeneratorpublic void initializeReporter(ParameterList reportParameters)
initializeReporter in interface ReportGeneratorreportParameters - The set of parameters provided by the end user
that should be used to customize the report.public void addJobReport(Job job)
addJobReport in interface ReportGeneratorjob - The job about which to include information in the report.public void addOptimizingJobReport(OptimizingJob optimizingJob)
addOptimizingJobReport in interface ReportGeneratoroptimizingJob - The optimizing job about which to include
information in the report.public void generateReport(RequestInfo requestInfo)
generateReport in interface ReportGeneratorrequestInfo - State information about the request being processed.public static final int inchesToPoints(double numInches)
numInches - The number of inches to be converted to points.
public void onStartPage(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document)
onStartPage in interface com.lowagie.text.pdf.PdfPageEventwriter - The writer used to write the PDF document.document - The PDF document being written.
public void onEndPage(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document)
onEndPage in interface com.lowagie.text.pdf.PdfPageEventwriter - The writer used to write the PDF document.document - The PDF document being written.
public void onOpenDocument(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document)
onOpenDocument in interface com.lowagie.text.pdf.PdfPageEventwriter - The writer used to write the PDF document.document - The PDF document being written.
public void onCloseDocument(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document)
onCloseDocument in interface com.lowagie.text.pdf.PdfPageEventwriter - The writer used to write the PDF document.document - The PDF document being written.
public void onParagraph(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document,
float paragraphPos)
onParagraph in interface com.lowagie.text.pdf.PdfPageEventwriter - The writer used to write the PDF document.document - The PDF document being written.paragraphPos - The position of the beginning of the paragraph.
public void onParagraphEnd(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document,
float paragraphEndPos)
onParagraphEnd in interface com.lowagie.text.pdf.PdfPageEventwriter - The writer used to write the PDF document.document - The PDF document being written.paragraphEndPos - The position of the end of the paragraph.
public void onChapter(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document,
float chapterPos,
com.lowagie.text.Paragraph title)
onChapter in interface com.lowagie.text.pdf.PdfPageEventwriter - The writer used to write the PDF document.document - The PDF document being written.chapterPos - The position at which the beginning of the chapter will
be written.title - The title to use for the chapter.
public void onChapterEnd(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document,
float chapterEndPos)
onChapterEnd in interface com.lowagie.text.pdf.PdfPageEventwriter - The writer used to write the PDF document.document - The PDF document being written.chapterEndPos - The position at which the end of the chapter will be
written.
public void onSection(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document,
float sectionPos,
int depth,
com.lowagie.text.Paragraph sectionTitle)
onSection in interface com.lowagie.text.pdf.PdfPageEventwriter - The writer used to write the PDF document.document - The PDF document being written.sectionPos - The position at which the beginning of the section
will be written.depth - The depth for the section.sectionTitle - The title to use for the section.
public void onSectionEnd(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document,
float sectionEndPos)
onSectionEnd in interface com.lowagie.text.pdf.PdfPageEventwriter - The writer used to write the PDF document.document - The PDF document being written.sectionEndPos - The position at which the end of the section will be
written.
public void onGenericTag(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document,
com.lowagie.text.Rectangle rectangle,
java.lang.String text)
onGenericTag in interface com.lowagie.text.pdf.PdfPageEventwriter - The writer used to write the PDF document.document - The PDF document being written.rectangle - The rectangle containing the chunk with the generic tag.text - The text of the tag.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||