Class HTTPServerResourceAccess
java.lang.Object
org.ametys.plugins.site.cache.monitoring.process.access.impl.HTTPServerResourceAccess
- All Implemented Interfaces:
ResourceAccess
Apache resource access. Represent an access to a resource from Apache.
These objects are created will parsing the Apache access logs.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
HTTPServerResourceAccess
(Map<org.ametys.plugins.site.cache.monitoring.process.access.impl.HTTPServerResourceAccess.Field, Object> params) Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic HTTPServerResourceAccess
createRecord
(String entry, DateFormat df) Create a new record instanceRetrieves the name of the SQL statement to call.Retrieves the map of parameters to use when executing the insert statement.boolean
isOfInterest
(Date date) Indicates if this record should be persisted in the database.toString()
-
Field Details
-
_LOGGER
logger
-
-
Constructor Details
-
HTTPServerResourceAccess
protected HTTPServerResourceAccess(Map<org.ametys.plugins.site.cache.monitoring.process.access.impl.HTTPServerResourceAccess.Field, Object> params) Constructor- Parameters:
params
- the parameters used
-
-
Method Details
-
createRecord
Create a new record instance- Parameters:
entry
- the server access log entrydf
- the date format to use for the record- Returns:
- the created record
-
getInsertStatementId
Description copied from interface:ResourceAccess
Retrieves the name of the SQL statement to call.- Specified by:
getInsertStatementId
in interfaceResourceAccess
- Returns:
- The name of the SQL statement to call.
-
getInsertStatementParameters
Description copied from interface:ResourceAccess
Retrieves the map of parameters to use when executing the insert statement.- Specified by:
getInsertStatementParameters
in interfaceResourceAccess
- Returns:
- The map of parameters
-
isOfInterest
Indicates if this record should be persisted in the database. If it returns false, it means that this record must be filtered out and must not be inserted into the database.- Parameters:
date
- The date at which the httpserver log importer has been started.- Returns:
- True is this record is newer than the date passed as an argument.
-
toString
-