public static void incrementUsage()

in src/main/java/org/apache/sling/jcr/resource/internal/helper/AccessLogger.java [72:89]


    public static void incrementUsage(ResourceResolver resolver, String operation, String path, long count) {

        if (STATISTICS_LOG.isDebugEnabled()) {
            AccessLogger am = (AccessLogger) resolver.getPropertyMap().get(SELF_NAME);
            if (am == null) {
                am = new AccessLogger(resolver);
            }
            am.incrementUsage(operation,count);
        }
        if (OPERATION_LOG.isTraceEnabled()) {
            try {
                String msg = String.format("invoked %s on [%s]", operation, path);
                throw new Exception(msg);
            } catch (Exception e) {
                OPERATION_LOG.trace ("AccessLogger recording", e);
            }
        }
    }