Class FrontResourceAccess
- java.lang.Object
-
- org.ametys.plugins.site.cache.monitoring.process.access.impl.FrontResourceAccess
-
- All Implemented Interfaces:
ResourceAccess
public class FrontResourceAccess extends Object implements ResourceAccess
Front resource access. Represent an access to a resource from the Front-office.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
_cacheable
private boolean
_cacheHit1
private boolean
_cacheHit2
private String
_internalUuid
private String
_path
private String
_pathHash
private String
_site
private String
_uniqueID
-
Constructor Summary
Constructors Constructor Description FrontResourceAccess(String uniqueID, String internalUuid, String site, String path)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getInsertStatementId()
Retrieves the name of the SQL statement to call.Map<String,Object>
getInsertStatementParameters()
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
-
-
-
Field Detail
-
_internalUuid
private final String _internalUuid
-
_cacheable
private boolean _cacheable
-
_cacheHit1
private boolean _cacheHit1
-
_cacheHit2
private boolean _cacheHit2
-
-
Constructor Detail
-
FrontResourceAccess
public FrontResourceAccess(String uniqueID, String internalUuid, String site, String path)
Constructor- Parameters:
uniqueID
- the id of the front resource accessinternalUuid
- the internal uuid the resourcesite
- the involved sitepath
- the path of the resource
-
-
Method Detail
-
getInsertStatementId
public String 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
public Map<String,Object> 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
public void setCacheable(boolean cacheable)
Set the resource as cacheable or not.- Parameters:
cacheable
- is the front esource access cacheable ?
-
setCacheHit1
public void setCacheHit1(boolean hit)
Set the first cache hit to true/false- Parameters:
hit
- the value to set to the first cache hit
-
setCacheHit2
public void setCacheHit2(boolean hit)
Set the second cache hit to true/false- Parameters:
hit
- the value to set to the second cache hit
-
-