Class FrontResourceAccess
java.lang.Object
org.ametys.plugins.site.cache.monitoring.process.access.impl.FrontResourceAccess
- All Implemented Interfaces:
ResourceAccess
Front resource access. Represent an access to a resource from the Front-office.
-
Constructor Summary
ConstructorDescriptionFrontResourceAccess
(String uniqueID, String internalUuid, String site, String path) Constructor -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the name of the SQL statement to call.Retrieves the map of parameters to use when executing the insert statement.void
setCacheable
(boolean cacheable) Set the resource as cacheable or not.void
setCacheHit1
(boolean hit) Set the first cache hit to true/falsevoid
setCacheHit2
(boolean hit) Set the second cache hit to true/false
-
Constructor Details
-
FrontResourceAccess
Constructor- Parameters:
uniqueID
- the id of the front resource accessinternalUuid
- the internal uuid the resourcesite
- the involved sitepath
- the path of the resource
-
-
Method Details
-
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
-
setCacheable
Set the resource as cacheable or not.- Parameters:
cacheable
- is the front esource access cacheable ?
-
setCacheHit1
Set the first cache hit to true/false- Parameters:
hit
- the value to set to the first cache hit
-
setCacheHit2
Set the second cache hit to true/false- Parameters:
hit
- the value to set to the second cache hit
-