public class RenderInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RenderInfo.FilterEvent
Represents a single filter call event.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addFilterEvent(RenderFilter filter,
int type)
"Record" a filter call event of the specified type
|
static String |
dump()
Performs a dump of the collected data in JSON format and disables the collection of data.
|
String |
getContextConfiguration() |
long |
getEndTime() |
List<RenderInfo.FilterEvent> |
getFilterEvents() |
Map<String,Serializable> |
getModuleParams() |
String |
getResourcePath() |
String |
getResourceTemplate() |
long |
getStartTime() |
List<RenderInfo> |
getSubResources() |
long |
getTime() |
static boolean |
isEnabled()
Checks if the rendering data collection is enabled or not.
|
static void |
popResource()
Called when the rendering of the resource is finished to measure the ellapsed time.
|
static void |
pushResource(Resource resource)
Called on a start resource rendering.
|
static void |
setEnabled(boolean enabled)
Enables or disables rendering data collection.
|
public static void setEnabled(boolean enabled)
enabled - true to enable data collection; false to disable itpublic static boolean isEnabled()
true if data collection is enabled; false if is it disabledpublic static void pushResource(Resource resource)
resource - the resource, the recording is started forpublic static void popResource()
public static void addFilterEvent(RenderFilter filter, int type)
filter - the filter which is being calledtype - the filter call typepublic static String dump()
public String getResourcePath()
public String getResourceTemplate()
public String getContextConfiguration()
public Map<String,Serializable> getModuleParams()
public long getTime()
public long getStartTime()
public long getEndTime()
public List<RenderInfo.FilterEvent> getFilterEvents()
public List<RenderInfo> getSubResources()
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.