public class StatisticsPlugin extends AbstractPlugin
| Constructor and Description |
|---|
StatisticsPlugin() |
| Modifier and Type | Method and Description |
|---|---|
String |
currentState(Document doc)
Retrieves the completion status of an asynchronous request by inspecting any
response element(s) that would indicate if the search is done yet or not.
|
String |
getClfStatement()
Returns first part of a log statement according to the Common Log Format.
|
String |
getClfStatement(String statement)
Returns first part of a log statement according to the Common Log Format,
except that the request section will not necessarily contain method,URI,querystring,protocol
but rather whatever is specified in 'statement'.
|
org.apache.log4j.Logger |
getDomainLogger() |
com.indexdata.masterkey.pazpar2.client.Pazpar2Client |
getPazpar2Client() |
int |
getSearchNumber()
Retrieves the status of an asynchronous request, by inspecting the
'activeclients' element.
|
String |
getSessionInfo() |
void |
log(String state)
Logs CLF statement with added session info (pazpar2, http, async state)
|
void |
log(String statement,
String state)
Logs CLF statement, but instead of request info (method,query string,protocol etc) the
provided statement string is logged.
|
void |
serve(ServiceRequest request,
ServiceResponse response,
ChainControl chain)
This method gets called during the chain processing by the container.
|
getChainName, getConfig, getName, getNodeList, getXmlString, setChainName, setConfig, setNamepublic void serve(ServiceRequest request, ServiceResponse response, ChainControl chain) throws ServiceException, IOException
Pluginserve in interface Pluginserve in class AbstractPluginrequest - service requestresponse - service responsechain - chain-control utilityIOException - of any kindServiceExceptionpublic void log(String state)
public void log(String statement, String state)
statement - public int getSearchNumber()
response - public String currentState(Document doc)
response - public String getClfStatement()
req - public String getClfStatement(String statement)
req - public String getSessionInfo()
public org.apache.log4j.Logger getDomainLogger()
public com.indexdata.masterkey.pazpar2.client.Pazpar2Client getPazpar2Client()
Copyright © 2008-2015 Index Data. All Rights Reserved.