예제 #1
0
        private QuerySnapshot CreateQuerySnapshotWaitingForLock(long queryId, bool exclusive, ResourceType resourceType, long id)
        {
            ExecutingQuery executingQuery = CreateExecutingQuery(queryId);

            executingQuery.LockTracer().waitForLock(exclusive, resourceType, id);
            return(executingQuery.Snapshot());
        }
예제 #2
0
 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));
     }
 }
예제 #3
0
 public override void Success(ExecutingQuery query)
 {
     if (NANOSECONDS.toMillis(query.ElapsedNanos()) >= _thresholdMillis)
     {
         QuerySnapshot snapshot = query.Snapshot();
         _log.info(LogEntry(snapshot));
     }
 }
예제 #4
0
//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)
        {
        }
예제 #5
0
 public override void Failure(ExecutingQuery query, Exception failure)
 {
     _log.error(LogEntry(query.Snapshot()), failure);
 }