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.
  • Constructor Details

    • FrontResourceAccess

      public FrontResourceAccess(String uniqueID, String internalUuid, String site, String path)
      Constructor
      Parameters:
      uniqueID - the id of the front resource access
      internalUuid - the internal uuid the resource
      site - the involved site
      path - 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 interface ResourceAccess
      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 interface ResourceAccess
      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