com.endeca.infront.assembler.perf.serializers
Class StatsPageTimeEventSerializer

java.lang.Object
  extended by com.endeca.infront.assembler.perf.serializers.StatsPageTimeEventSerializer
All Implemented Interfaces:
EventSerializer

public class StatsPageTimeEventSerializer
extends Object
implements EventSerializer

An implementation of EventSerializer that stores information for the performance stats page.


Field Summary
static String IGNORE_STATS_EVENT_ID
          Signals that the following events should not be included in the performance statistics.
static String RESET_STATS_EVENT_ID
          Resets the collection of performance statistics.
 
Constructor Summary
StatsPageTimeEventSerializer(RecordedEventsConfiguration recordedEvents)
          Creates a StatsPageTimeEventSerializer.
 
Method Summary
 EventFactory getEventFactory()
          Get the factory which is responsible for creating events for this serializer.
 void putStatsIntoContentItem(ContentItem pContentItem)
          Adds performance statistics to the supplied content item.
 void serialize(Map<String,EventSummary> events, javax.servlet.http.HttpServletRequest request)
          Record performance events with this serializer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IGNORE_STATS_EVENT_ID

public static final String IGNORE_STATS_EVENT_ID
Signals that the following events should not be included in the performance statistics.

See Also:
Constant Field Values

RESET_STATS_EVENT_ID

public static final String RESET_STATS_EVENT_ID
Resets the collection of performance statistics.

See Also:
Constant Field Values
Constructor Detail

StatsPageTimeEventSerializer

public StatsPageTimeEventSerializer(RecordedEventsConfiguration recordedEvents)
Creates a StatsPageTimeEventSerializer.

Parameters:
recordedEvents - The performance events that this serializer cares about
Method Detail

getEventFactory

public EventFactory getEventFactory()
Description copied from interface: EventSerializer
Get the factory which is responsible for creating events for this serializer.

Specified by:
getEventFactory in interface EventSerializer
Returns:
EventFactory

putStatsIntoContentItem

public void putStatsIntoContentItem(ContentItem pContentItem)
Adds performance statistics to the supplied content item. The following keys will be used:

Parameters:
pContentItem - the ContentItem for storing the performance statistics

serialize

public void serialize(Map<String,EventSummary> events,
                      javax.servlet.http.HttpServletRequest request)
Description copied from interface: EventSerializer
Record performance events with this serializer.

Specified by:
serialize in interface EventSerializer
Parameters:
events - the events to serialize
request - the request that generated the given events.


Copyright © 2012, Oracle and/or its affiliates. All rights reserved.