public interface LocalHtmlInspectForMatsFactory
getStyleSheet(Appendable)
),
JavaScript (getJavaScript(Appendable)
) and HTML
(createFactoryReport(Appendable,..)
) to include.
If the LocalStatsMatsInterceptor
is installed on the MatsFactory
implementing
MatsInterceptable
, it will include pretty nice "local statistics" for all initiators,
endpoints and stages.
Note: You are expected to create
one instance of an implementation of this interface per
MatsFactory, and keep these around for the lifetime of the MatsFactories (i.e. for the JVM) - as in multiple
singletons. Do not create one per HTML request. The reason for this is that at a later point, this class might be
extended with "active" features, like stopping and starting endpoints, change the concurrency etc - at which point it
might itself need active state, e.g. for a feature like "stop this endpoint for 30 minutes".Modifier and Type | Method and Description |
---|---|
static LocalHtmlInspectForMatsFactory |
create(MatsFactory matsFactory)
Creates the
standard implementation of this interface. |
void |
createEndpointReport(java.lang.Appendable out,
MatsEndpoint<?,?> matsEndpoint,
boolean includeStages)
Creates the report of a single endpoint.
|
void |
createFactoryReport(java.lang.Appendable out,
boolean includeInitiators,
boolean includeEndpoints,
boolean includeStages)
Creates the full MatsFactory HTML report.
|
void |
createFactorySummary(java.lang.Appendable out,
boolean includeInitiators,
boolean includeEndpoints)
Creates the "Summary table" which is a part of the factory report - it may be interesting to embed on a different
page without the entire factory report.
|
void |
createInitiatorReport(java.lang.Appendable out,
MatsInitiator matsInitiator)
Creates the report of a single initiator.
|
void |
createStageReport(java.lang.Appendable out,
MatsStage<?,?,?> matsStage)
Creates the report of a single stage.
|
void |
getJavaScript(java.lang.Appendable out)
Note: The return from this method is static, and should only be included once per HTML page, no matter how many
MatsFactories you display.
|
void |
getStyleSheet(java.lang.Appendable out)
Note: The return from this method is static, and should only be included once per HTML page, no matter how many
MatsFactories you display.
|
static LocalHtmlInspectForMatsFactory create(MatsFactory matsFactory)
standard implementation
of this interface.void getStyleSheet(java.lang.Appendable out) throws java.io.IOException
java.io.IOException
void getJavaScript(java.lang.Appendable out) throws java.io.IOException
java.io.IOException
void createFactoryReport(java.lang.Appendable out, boolean includeInitiators, boolean includeEndpoints, boolean includeStages) throws java.io.IOException
out
- where to output the HTMLincludeInitiators
- whether to include the initiators in the reportincludeEndpoints
- whether to include the endpoints in the reportincludeStages
- whether to include the stages of the endpoints in the reportjava.io.IOException
- if the Appendable throws while being output to.void createFactorySummary(java.lang.Appendable out, boolean includeInitiators, boolean includeEndpoints) throws java.io.IOException
out
- where to output the HTMLincludeInitiators
- whether to include the initiators in the reportincludeEndpoints
- whether to include the endpoints in the reportjava.io.IOException
- if the Appendable throws while being output to.void createInitiatorReport(java.lang.Appendable out, MatsInitiator matsInitiator) throws java.io.IOException
java.io.IOException
void createEndpointReport(java.lang.Appendable out, MatsEndpoint<?,?> matsEndpoint, boolean includeStages) throws java.io.IOException
java.io.IOException
void createStageReport(java.lang.Appendable out, MatsStage<?,?,?> matsStage) throws java.io.IOException
java.io.IOException