EventSerializer
that logs time taken, per request, into the assembler performance log.@Deprecated public class PerfLogTimeEventSerializer extends Object
Constructor and Description |
---|
PerfLogTimeEventSerializer(String outputPath,
RecordedEventsConfiguration loggableEvents)
Deprecated.
As of release 11.0.
Constructs a PerfLogTimeEventSerializer with a log file count of 5 and a log file limit of 1000 (that is, 1000 megabytes). |
PerfLogTimeEventSerializer(String outputPath,
RecordedEventsConfiguration loggableEvents,
int logFileCount,
int logFileLimit)
Deprecated.
As of release 11.0.
Constructs a PerfLogTimeEventSerializer. |
Modifier and Type | Method and Description |
---|---|
protected void |
createHeaderForEventSummary(StringBuilder builder,
String eventID)
Deprecated.
As of release 11.0.
Appends header text describing the event formatting and time units. |
protected List<String> |
createLoggables(RecordedEventsConfiguration loggableEvents)
Deprecated.
As of release 11.0.
Iterates through the recorded events in the input RecordedEventsConfiguration to create a list of Strings describing the events. |
protected Logger |
createLogger(String outputPath,
int logFileCount,
int logFileLimit)
Deprecated.
As of release 11.0.
Creates a Logger and sets up appropriate formatting. |
protected void |
emptySummary(StringBuilder builder)
Deprecated.
|
EventFactory |
getEventFactory()
Deprecated.
|
protected void |
outputHeaderLine()
Deprecated.
As of release 11.0.
Creates the header line, which involves calling createHeaderForEventSummary(StringBuilder, String)
for each loggable entry. |
void |
serialize(Map<String,EventSummary> events,
javax.servlet.http.HttpServletRequest request)
Deprecated.
|
@Deprecated public PerfLogTimeEventSerializer(String outputPath, RecordedEventsConfiguration loggableEvents) throws IOException
outputPath
- The path to the log file to output. The log file
name can contain all the wildcards supported by FileHandler
.
The parameter "%g" must be included in the file name to reflect the
number of the log file, or this value will be appended to the name.loggableEvents
- The performance events for CartridgeHandler
that this listener should outputIOException
@Deprecated public PerfLogTimeEventSerializer(String outputPath, RecordedEventsConfiguration loggableEvents, int logFileCount, int logFileLimit) throws IOException
outputPath
- The path to the log file to output. The log file
name can contain all the wildcards supported by FileHandler
.
The parameter "%g" must be included in the file name to reflect the
number of the log file, or this value will be appended to the name.loggableEvents
- The performance events for CartridgeHandler
that this listener should outputlogFileCount
- The number of log files to cycle through.logFileLimit
- The maximum size of a log file, in Megabytes. Once
this limit is reached, the log file will rotate.IOException
@Deprecated protected void createHeaderForEventSummary(StringBuilder builder, String eventID)
builder
- the StringBuilder to append toeventID
- the event ID@Deprecated protected void emptySummary(StringBuilder builder)
builder
- the StringBuilder to append to@Deprecated public EventFactory getEventFactory()
getEventFactory
in interface EventSerializer
@Deprecated protected void outputHeaderLine()
createHeaderForEventSummary(StringBuilder, String)
for each loggable entry.@Deprecated protected Logger createLogger(String outputPath, int logFileCount, int logFileLimit) throws IOException
outputPath
- The path to the log file to output. The log file
name can contain all the wildcards supported by FileHandler
.
The parameter "%g" must be included in the file name to reflect the
number of the log file, or this value will be appended to the name.logFileCount
- The number of log files to cycle through.logFileLimit
- The maximum size of a log file, in Megabytes. Once
this limit is reached, the log file will rotate.IOException
- if a File
cannot be created corresponding
to the outputPath.@Deprecated protected List<String> createLoggables(RecordedEventsConfiguration loggableEvents)
@Deprecated public void serialize(Map<String,EventSummary> events, javax.servlet.http.HttpServletRequest request)
serialize
in interface EventSerializer
events
- the events to serializerequest
- the request that generated the given events.Copyright © 2013, Oracle and/or its affiliates. All rights reserved.