Class ConsolidatedDataStoreCacheStats

  • All Implemented Interfaces:
    org.apache.jackrabbit.oak.api.jmx.ConsolidatedDataStoreCacheStatsMBean

    public class ConsolidatedDataStoreCacheStats
    extends java.lang.Object
    implements org.apache.jackrabbit.oak.api.jmx.ConsolidatedDataStoreCacheStatsMBean
    Stats for caching data store.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.management.openmbean.TabularData getCacheStats()  
      boolean isFileSynced​(java.lang.String nodePathName)
      Determines whether a file-like entity with the given name has been "synced" (completely copied) to S3.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • nodeStore

        @Reference
        public org.apache.jackrabbit.oak.spi.state.NodeStore nodeStore
    • Constructor Detail

      • ConsolidatedDataStoreCacheStats

        public ConsolidatedDataStoreCacheStats()
    • Method Detail

      • getCacheStats

        public javax.management.openmbean.TabularData getCacheStats()
        Specified by:
        getCacheStats in interface org.apache.jackrabbit.oak.api.jmx.ConsolidatedDataStoreCacheStatsMBean
      • isFileSynced

        public boolean isFileSynced​(java.lang.String nodePathName)
        Determines whether a file-like entity with the given name has been "synced" (completely copied) to S3. Determination of "synced": - A nodeName of null or "" is always "not synced". - A nodeName that does not map to a valid node is always "not synced". - If the node for this nodeName does not have a binary property, this node is always "not synced" since such a node would never be copied to S3. - If the node for this nodeName is not in the nodeStore, this node is always "not synced". - Otherwise, the state is "synced" if the corresponding blob is completely stored in S3.
        Specified by:
        isFileSynced in interface org.apache.jackrabbit.oak.api.jmx.ConsolidatedDataStoreCacheStatsMBean
        Parameters:
        nodePathName - - Path to the entity to check. This is a node path, not an external file path.
        Returns:
        true if the file is synced to S3.