@Test public void findTrackedQuery() { TrackedQueryManager manager = newManager(); assertNull(manager.findTrackedQuery(SAMPLE_FOO_QUERY)); manager.setQueryActive(SAMPLE_FOO_QUERY); assertNotNull(manager.findTrackedQuery(SAMPLE_FOO_QUERY)); }
public TrackedQuery findTrackedQuery(QuerySpec query) { query = normalizeQuery(query); Map<QueryParams, TrackedQuery> set = this.trackedQueryTree.get(query.getPath()); return (set != null) ? set.get(query.getParams()) : null; }
TrackedQueryManager { public TrackedQuery findTrackedQuery(QuerySpec query) { query = normalizeQuery(query); Map<QueryParams, TrackedQuery> set = this.trackedQueryTree.get(query.getPath()); return (set != null) ? set.get(query.getParams()) : null; } }
TrackedQueryManager { public TrackedQuery findTrackedQuery(QuerySpec query) { query = normalizeQuery(query); Map<QueryParams, TrackedQuery> set = this.trackedQueryTree.get(query.getPath()); return (set != null) ? set.get(query.getParams()) : null; } TrackedQueryManager(
      PersistenceStorageEngine storageLayer, LogWrapper logger, Clock clock); }
TrackedQueryManager { public TrackedQuery findTrackedQuery(QuerySpec query) { query = normalizeQuery(query); Map<QueryParams, TrackedQuery> set = this.trackedQueryTree.get(query.getPath()); return (set != null) ? set.get(query.getParams()) : null; } TrackedQueryManager(
      PersistenceStorageEngine storageLayer, LogWrapper logger, Clock clock); TrackedQuery findTrackedQuery(QuerySpec query); void removeTrackedQuery(QuerySpec query); void setQueryActive(QuerySpec query); void setQueryInactive(QuerySpec query); void setQueryCompleteIfExists(QuerySpec query); void setQueriesComplete(Path path); boolean isQueryComplete(QuerySpec query); PruneForest pruneOldQueries(CachePolicy cachePolicy); Set<ChildKey> getKnownCompleteChildren(Path path); void ensureCompleteTrackedQuery(Path path); boolean hasActiveDefaultQuery(Path path); long countOfPrunableQueries(); }
TrackedQueryManager { public TrackedQuery findTrackedQuery(QuerySpec query) { query = normalizeQuery(query); Map<QueryParams, TrackedQuery> set = this.trackedQueryTree.get(query.getPath()); return (set != null) ? set.get(query.getParams()) : null; } TrackedQueryManager(
      PersistenceStorageEngine storageLayer, LogWrapper logger, Clock clock); TrackedQuery findTrackedQuery(QuerySpec query); void removeTrackedQuery(QuerySpec query); void setQueryActive(QuerySpec query); void setQueryInactive(QuerySpec query); void setQueryCompleteIfExists(QuerySpec query); void setQueriesComplete(Path path); boolean isQueryComplete(QuerySpec query); PruneForest pruneOldQueries(CachePolicy cachePolicy); Set<ChildKey> getKnownCompleteChildren(Path path); void ensureCompleteTrackedQuery(Path path); boolean hasActiveDefaultQuery(Path path); long countOfPrunableQueries();  }