private QuerySnapshot CreateQuerySnapshotWaitingForLock(long queryId, bool exclusive, ResourceType resourceType, long id) { ExecutingQuery executingQuery = CreateExecutingQuery(queryId); executingQuery.LockTracer().waitForLock(exclusive, resourceType, id); return(executingQuery.Snapshot()); }
public override void EndSuccess(ExecutingQuery query) { if (_isCollecting) { QuerySnapshot snapshot = query.Snapshot(); _queries.produce(new TruncatedQuerySnapshot(snapshot.QueryText(), snapshot.QueryPlanSupplier(), snapshot.QueryParameters(), snapshot.ElapsedTimeMicros(), snapshot.CompilationTimeMicros(), snapshot.StartTimestampMillis(), _maxQueryTextSize)); } }
public override void Success(ExecutingQuery query) { if (NANOSECONDS.toMillis(query.ElapsedNanos()) >= _thresholdMillis) { QuerySnapshot snapshot = query.Snapshot(); _log.info(LogEntry(snapshot)); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: QueryStatusResult(org.neo4j.kernel.api.query.ExecutingQuery query, org.neo4j.kernel.impl.core.EmbeddedProxySPI manager, java.time.ZoneId zoneId) throws org.neo4j.kernel.api.exceptions.InvalidArgumentsException internal QueryStatusResult(ExecutingQuery query, EmbeddedProxySPI manager, ZoneId zoneId) : this(query.Snapshot(), manager, zoneId) { }
public override void Failure(ExecutingQuery query, Exception failure) { _log.error(LogEntry(query.Snapshot()), failure); }