public class CpuUsageReport extends BaseReportGenerator
allitems, format, log, name
Constructor and Description |
---|
CpuUsageReport() |
Modifier and Type | Method and Description |
---|---|
void |
generateReport(OutputStreamWriter data,
List<String> urls,
String path,
List<String> files,
TimeRange range,
String currentuser,
SecurityWrapper classification,
WebServiceContext ctx)
Generates the content of the report
Implementors must check access control urls using
UserIdentityUtil
prior to report generation. |
List<PolicyType> |
GetAppliesTo()
Returns a list of service policy types that this plugin can be applied to
use Utility.getAllPolicyTypes() if it applies to everything.
|
String |
GetDisplayName()
end user facing display name
|
String |
GetHtmlFormattedHelp()
returns html formatted help to guide users towards proper usage.
|
GetOptionalParameters, getPolicyDisplayName, GetRequiredParameters, isPolicyTypeOf
public String GetDisplayName()
PluginCommon
public String GetHtmlFormattedHelp()
PluginCommon
public List<PolicyType> GetAppliesTo()
PluginCommon
public void generateReport(OutputStreamWriter data, List<String> urls, String path, List<String> files, TimeRange range, String currentuser, SecurityWrapper classification, WebServiceContext ctx) throws IOException
ReportGeneratorPlugin
UserIdentityUtil
prior to report generation. The expected behavior is to skip the url if
the appropriate access is not granted to the requestor
Use Utility#getPerformanceDBConnection() for database connections
be sure to close all database records when done. See aksi {@link DBUtils}data
- write your html content hereurls
- this the policy uris from which to generate reports frompath
- this is the temporary output path, if creating charts, produce them
here then add the filename to the files listfiles
- the list of files, these files are added to the report at completionrange
- time range from which to generate the reportcurrentuser
- the current userclassification
- classification levelIOException
Copyright © 2008–2017 MIL-OSS. All rights reserved.