com.endeca.infront.cartridge
Class StatsPageCartridgeHandler
java.lang.Object
com.endeca.infront.assembler.AbstractCartridgeHandler
com.endeca.infront.cartridge.StatsPageCartridgeHandler
- All Implemented Interfaces:
- CartridgeHandler<ContentItem>
public class StatsPageCartridgeHandler
- extends AbstractCartridgeHandler
An implementation of CartridgeHandler
that provides content for the
performance stats page.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatsPageCartridgeHandler
public StatsPageCartridgeHandler()
setStatsPageSerializer
public void setStatsPageSerializer(StatsPageTimeEventSerializer serializer)
- Sets the serializer used to store performance information.
process
public ContentItem process(ContentItem pContentItem)
throws CartridgeHandlerException
- If a
StatsPageTimeEventSerializer
has been set, stores performance
information in the supplied ContentItem
.
- Parameters:
pContentItem
- the cartridge configuration returned by
CartridgeHandler.initialize(ContentItem)
. Note that this instance may have been modified by
the CartridgeHandler.preprocess(ContentItem)
method.
- Returns:
- the output value for this cartridge. If null is returned, then
the corresponding node in the output tree will be deleted.
- Throws:
CartridgeHandlerException
- if an error occurs that is scoped to
an individual cartridge instance. This exception will not halt
the entire assembly process, which occurs across multiple cartridges;
instead, this exception will be packaged in the overall response model.
If an unchecked exception is thrown, then the entire assembly process
will be halted.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.