test_class.file: oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/util/TimingDocumentStoreWrapperTest.java
test_class.identifier: TimingDocumentStoreWrapperTest
test_case.body: @Test
      public void createOrUpdate() {
          DocumentStore store = new TimingDocumentStoreWrapper(new MemoryDocumentStore());
          UpdateOp op = new UpdateOp("foo", true);
          store.createOrUpdate(Collection.NODES, Collections.singletonList(op));
      }
test_case.class_method_signature: TimingDocumentStoreWrapperTest.createOrUpdate()
test_case.full_signature: @Test public void createOrUpdate()
test_case.identifier: createOrUpdate
test_case.invocations: createOrUpdate singletonList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void createOrUpdate()
focal_class.declarator: DEBUG = Boolean.parseBoolean(System.getProperty("base.debug", "true"))
focal_class.modifier: private static final
focal_class.original_string: private static final boolean DEBUG = Boolean.parseBoolean(System.getProperty("base.debug", "true"));
focal_class.type: boolean
focal_class.var_name: DEBUG
focal_class.declarator: NEXT_ID = new AtomicInteger()
focal_class.modifier: private static final
focal_class.original_string: private static final AtomicInteger NEXT_ID = new AtomicInteger();
focal_class.type: AtomicInteger
focal_class.var_name: NEXT_ID
focal_class.declarator: base
focal_class.modifier: private final
focal_class.original_string: private final DocumentStore base;
focal_class.type: DocumentStore
focal_class.var_name: base
focal_class.declarator: id = NEXT_ID.getAndIncrement()
focal_class.modifier: private final
focal_class.original_string: private final int id = NEXT_ID.getAndIncrement();
focal_class.type: int
focal_class.var_name: id
focal_class.declarator: startTime
focal_class.modifier: private
focal_class.original_string: private long startTime;
focal_class.type: long
focal_class.var_name: startTime
focal_class.declarator: counts = new HashMap<String, Count>()
focal_class.modifier: private final
focal_class.original_string: private final Map<String, Count> counts = new HashMap<String, Count>();
focal_class.type: Map<String, Count>
focal_class.var_name: counts
focal_class.declarator: lastLogTime
focal_class.modifier: private
focal_class.original_string: private long lastLogTime;
focal_class.type: long
focal_class.var_name: lastLogTime
focal_class.declarator: totalLogTime
focal_class.modifier: private
focal_class.original_string: private long totalLogTime;
focal_class.type: long
focal_class.var_name: totalLogTime
focal_class.declarator: slowCalls = new ConcurrentHashMap<String, Integer>()
focal_class.modifier: private final
focal_class.original_string: private final Map<String, Integer> slowCalls = new ConcurrentHashMap<String, Integer>();
focal_class.type: Map<String, Integer>
focal_class.var_name: slowCalls
focal_class.declarator: callCount
focal_class.modifier: private
focal_class.original_string: private int callCount;
focal_class.type: int
focal_class.var_name: callCount
focal_class.file: oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/util/TimingDocumentStoreWrapper.java
focal_class.identifier: TimingDocumentStoreWrapper
focal_class.interfaces: implements DocumentStore
focal_class.class_method_signature: TimingDocumentStoreWrapper.TimingDocumentStoreWrapper(DocumentStore base)
focal_class.full_signature: public  TimingDocumentStoreWrapper(DocumentStore base)
focal_class.identifier: TimingDocumentStoreWrapper
focal_class.modifiers: public
focal_class.parameters: (DocumentStore base)
focal_class.signature:  TimingDocumentStoreWrapper(DocumentStore base)
focal_class.class_method_signature: TimingDocumentStoreWrapper.logCommonCall()
focal_class.full_signature: private boolean logCommonCall()
focal_class.identifier: logCommonCall
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean logCommonCall()
focal_class.class_method_signature: TimingDocumentStoreWrapper.find(Collection<T> collection, String key)
focal_class.full_signature: @Override @Nullable public T find(Collection<T> collection, String key)
focal_class.identifier: find
focal_class.modifiers: @Override @Nullable public
focal_class.parameters: (Collection<T> collection, String key)
focal_class.return: T
focal_class.signature: T find(Collection<T> collection, String key)
focal_class.class_method_signature: TimingDocumentStoreWrapper.find(Collection<T> collection, String key, int maxCacheAge)
focal_class.full_signature: @Override @Nullable public T find(Collection<T> collection, String key, int maxCacheAge)
focal_class.identifier: find
focal_class.modifiers: @Override @Nullable public
focal_class.parameters: (Collection<T> collection, String key, int maxCacheAge)
focal_class.return: T
focal_class.signature: T find(Collection<T> collection, String key, int maxCacheAge)
focal_class.class_method_signature: TimingDocumentStoreWrapper.query(Collection<T> collection,
                                                  String fromKey,
                                                  String toKey,
                                                  int limit)
focal_class.full_signature: @Override @NotNull public List<T> query(Collection<T> collection,
                                                  String fromKey,
                                                  String toKey,
                                                  int limit)
focal_class.identifier: query
focal_class.modifiers: @Override @NotNull public
focal_class.parameters: (Collection<T> collection,
                                                  String fromKey,
                                                  String toKey,
                                                  int limit)
focal_class.return: List<T>
focal_class.signature: List<T> query(Collection<T> collection,
                                                  String fromKey,
                                                  String toKey,
                                                  int limit)
focal_class.class_method_signature: TimingDocumentStoreWrapper.query(Collection<T> collection,
                                                String fromKey,
                                                String toKey,
                                                String indexedProperty,
                                                long startValue,
                                                int limit)
focal_class.full_signature: @Override @NotNull public List<T> query(Collection<T> collection,
                                                String fromKey,
                                                String toKey,
                                                String indexedProperty,
                                                long startValue,
                                                int limit)
focal_class.identifier: query
focal_class.modifiers: @Override @NotNull public
focal_class.parameters: (Collection<T> collection,
                                                String fromKey,
                                                String toKey,
                                                String indexedProperty,
                                                long startValue,
                                                int limit)
focal_class.return: List<T>
focal_class.signature: List<T> query(Collection<T> collection,
                                                String fromKey,
                                                String toKey,
                                                String indexedProperty,
                                                long startValue,
                                                int limit)
focal_class.class_method_signature: TimingDocumentStoreWrapper.remove(Collection<T> collection, String key)
focal_class.full_signature: @Override public void remove(Collection<T> collection, String key)
focal_class.identifier: remove
focal_class.modifiers: @Override public
focal_class.parameters: (Collection<T> collection, String key)
focal_class.return: void
focal_class.signature: void remove(Collection<T> collection, String key)
focal_class.class_method_signature: TimingDocumentStoreWrapper.remove(Collection<T> collection, List<String> keys)
focal_class.full_signature: @Override public void remove(Collection<T> collection, List<String> keys)
focal_class.identifier: remove
focal_class.modifiers: @Override public
focal_class.parameters: (Collection<T> collection, List<String> keys)
focal_class.return: void
focal_class.signature: void remove(Collection<T> collection, List<String> keys)
focal_class.class_method_signature: TimingDocumentStoreWrapper.remove(Collection<T> collection,
                                             Map<String, Long> toRemove)
focal_class.full_signature: @Override public int remove(Collection<T> collection,
                                             Map<String, Long> toRemove)
focal_class.identifier: remove
focal_class.modifiers: @Override public
focal_class.parameters: (Collection<T> collection,
                                             Map<String, Long> toRemove)
focal_class.return: int
focal_class.signature: int remove(Collection<T> collection,
                                             Map<String, Long> toRemove)
focal_class.class_method_signature: TimingDocumentStoreWrapper.remove(Collection<T> collection,
                                                 String indexedProperty, long startValue, long endValue)
focal_class.full_signature: @Override public int remove(Collection<T> collection,
                                                 String indexedProperty, long startValue, long endValue)
focal_class.identifier: remove
focal_class.modifiers: @Override public
focal_class.parameters: (Collection<T> collection,
                                                 String indexedProperty, long startValue, long endValue)
focal_class.return: int
focal_class.signature: int remove(Collection<T> collection,
                                                 String indexedProperty, long startValue, long endValue)
focal_class.class_method_signature: TimingDocumentStoreWrapper.create(Collection<T> collection, List<UpdateOp> updateOps)
focal_class.full_signature: @Override public boolean create(Collection<T> collection, List<UpdateOp> updateOps)
focal_class.identifier: create
focal_class.modifiers: @Override public
focal_class.parameters: (Collection<T> collection, List<UpdateOp> updateOps)
focal_class.return: boolean
focal_class.signature: boolean create(Collection<T> collection, List<UpdateOp> updateOps)
focal_class.class_method_signature: TimingDocumentStoreWrapper.createOrUpdate(Collection<T> collection, UpdateOp update)
focal_class.full_signature: @Override @Nullable public T createOrUpdate(Collection<T> collection, UpdateOp update)
focal_class.identifier: createOrUpdate
focal_class.modifiers: @Override @Nullable public
focal_class.parameters: (Collection<T> collection, UpdateOp update)
focal_class.return: T
focal_class.signature: T createOrUpdate(Collection<T> collection, UpdateOp update)
focal_class.class_method_signature: TimingDocumentStoreWrapper.createOrUpdate(Collection<T> collection, List<UpdateOp> updateOps)
focal_class.full_signature: @Override public List<T> createOrUpdate(Collection<T> collection, List<UpdateOp> updateOps)
focal_class.identifier: createOrUpdate
focal_class.modifiers: @Override public
focal_class.parameters: (Collection<T> collection, List<UpdateOp> updateOps)
focal_class.return: List<T>
focal_class.signature: List<T> createOrUpdate(Collection<T> collection, List<UpdateOp> updateOps)
focal_class.class_method_signature: TimingDocumentStoreWrapper.findAndUpdate(Collection<T> collection, UpdateOp update)
focal_class.full_signature: @Override @Nullable public T findAndUpdate(Collection<T> collection, UpdateOp update)
focal_class.identifier: findAndUpdate
focal_class.modifiers: @Override @Nullable public
focal_class.parameters: (Collection<T> collection, UpdateOp update)
focal_class.return: T
focal_class.signature: T findAndUpdate(Collection<T> collection, UpdateOp update)
focal_class.class_method_signature: TimingDocumentStoreWrapper.invalidateCache()
focal_class.full_signature: @Override public CacheInvalidationStats invalidateCache()
focal_class.identifier: invalidateCache
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: CacheInvalidationStats
focal_class.signature: CacheInvalidationStats invalidateCache()
focal_class.class_method_signature: TimingDocumentStoreWrapper.invalidateCache(Iterable<String> keys)
focal_class.full_signature: @Override public CacheInvalidationStats invalidateCache(Iterable<String> keys)
focal_class.identifier: invalidateCache
focal_class.modifiers: @Override public
focal_class.parameters: (Iterable<String> keys)
focal_class.return: CacheInvalidationStats
focal_class.signature: CacheInvalidationStats invalidateCache(Iterable<String> keys)
focal_class.class_method_signature: TimingDocumentStoreWrapper.invalidateCache(Collection<T> collection, String key)
focal_class.full_signature: @Override public void invalidateCache(Collection<T> collection, String key)
focal_class.identifier: invalidateCache
focal_class.modifiers: @Override public
focal_class.parameters: (Collection<T> collection, String key)
focal_class.return: void
focal_class.signature: void invalidateCache(Collection<T> collection, String key)
focal_class.class_method_signature: TimingDocumentStoreWrapper.dispose()
focal_class.full_signature: @Override public void dispose()
focal_class.identifier: dispose
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void dispose()
focal_class.class_method_signature: TimingDocumentStoreWrapper.getIfCached(Collection<T> collection, String key)
focal_class.full_signature: @Override public T getIfCached(Collection<T> collection, String key)
focal_class.identifier: getIfCached
focal_class.modifiers: @Override public
focal_class.parameters: (Collection<T> collection, String key)
focal_class.return: T
focal_class.signature: T getIfCached(Collection<T> collection, String key)
focal_class.class_method_signature: TimingDocumentStoreWrapper.setReadWriteMode(String readWriteMode)
focal_class.full_signature: @Override public void setReadWriteMode(String readWriteMode)
focal_class.identifier: setReadWriteMode
focal_class.modifiers: @Override public
focal_class.parameters: (String readWriteMode)
focal_class.return: void
focal_class.signature: void setReadWriteMode(String readWriteMode)
focal_class.class_method_signature: TimingDocumentStoreWrapper.getCacheStats()
focal_class.full_signature: @Override public Iterable<CacheStats> getCacheStats()
focal_class.identifier: getCacheStats
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Iterable<CacheStats>
focal_class.signature: Iterable<CacheStats> getCacheStats()
focal_class.class_method_signature: TimingDocumentStoreWrapper.getMetadata()
focal_class.full_signature: @Override public Map<String, String> getMetadata()
focal_class.identifier: getMetadata
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getMetadata()
focal_class.class_method_signature: TimingDocumentStoreWrapper.getStats()
focal_class.full_signature: @NotNull @Override public Map<String, String> getStats()
focal_class.identifier: getStats
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getStats()
focal_class.class_method_signature: TimingDocumentStoreWrapper.determineServerTimeDifferenceMillis()
focal_class.full_signature: @Override public long determineServerTimeDifferenceMillis()
focal_class.identifier: determineServerTimeDifferenceMillis
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long determineServerTimeDifferenceMillis()
focal_class.class_method_signature: TimingDocumentStoreWrapper.logCommonCall(long start, String key)
focal_class.full_signature: private void logCommonCall(long start, String key)
focal_class.identifier: logCommonCall
focal_class.modifiers: private
focal_class.parameters: (long start, String key)
focal_class.return: void
focal_class.signature: void logCommonCall(long start, String key)
focal_class.class_method_signature: TimingDocumentStoreWrapper.convert(Exception e)
focal_class.full_signature: private static RuntimeException convert(Exception e)
focal_class.identifier: convert
focal_class.modifiers: private static
focal_class.parameters: (Exception e)
focal_class.return: RuntimeException
focal_class.signature: RuntimeException convert(Exception e)
focal_class.class_method_signature: TimingDocumentStoreWrapper.log(String message)
focal_class.full_signature: private void log(String message)
focal_class.identifier: log
focal_class.modifiers: private
focal_class.parameters: (String message)
focal_class.return: void
focal_class.signature: void log(String message)
focal_class.class_method_signature: TimingDocumentStoreWrapper.size(List<T> list)
focal_class.full_signature: private static int size(List<T> list)
focal_class.identifier: size
focal_class.modifiers: private static
focal_class.parameters: (List<T> list)
focal_class.return: int
focal_class.signature: int size(List<T> list)
focal_class.class_method_signature: TimingDocumentStoreWrapper.size(@Nullable Document document)
focal_class.full_signature: private static int size(@Nullable Document document)
focal_class.identifier: size
focal_class.modifiers: private static
focal_class.parameters: (@Nullable Document document)
focal_class.return: int
focal_class.signature: int size(@Nullable Document document)
focal_class.class_method_signature: TimingDocumentStoreWrapper.now()
focal_class.full_signature: private static long now()
focal_class.identifier: now
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long now()
focal_class.class_method_signature: TimingDocumentStoreWrapper.updateAndLogTimes(String operation, long start, int paramSize, int resultSize)
focal_class.full_signature: private void updateAndLogTimes(String operation, long start, int paramSize, int resultSize)
focal_class.identifier: updateAndLogTimes
focal_class.modifiers: private
focal_class.parameters: (String operation, long start, int paramSize, int resultSize)
focal_class.return: void
focal_class.signature: void updateAndLogTimes(String operation, long start, int paramSize, int resultSize)
focal_method.body: @Override
      @Nullable
      public <T extends Document> T createOrUpdate(Collection<T> collection, UpdateOp update) {
          try {
              long start = now();
              T result = base.createOrUpdate(collection, update);
              updateAndLogTimes("createOrUpdate", start, 0, size(result));
              if (logCommonCall()) {
                  logCommonCall(start, "createOrUpdate " + collection + " " + update.getId());
              }
              return result;
          } catch (Exception e) {
              throw convert(e);
          }
      }
focal_method.class_method_signature: TimingDocumentStoreWrapper.createOrUpdate(Collection<T> collection, UpdateOp update)
focal_method.full_signature: @Override @Nullable public T createOrUpdate(Collection<T> collection, UpdateOp update)
focal_method.identifier: createOrUpdate
focal_method.invocations: now createOrUpdate updateAndLogTimes size logCommonCall logCommonCall getId convert
focal_method.modifiers: @Override @Nullable public
focal_method.parameters: (Collection<T> collection, UpdateOp update)
focal_method.return: T
focal_method.signature: T createOrUpdate(Collection<T> collection, UpdateOp update)