public void stopSessionImpl() { final TraceStateImpl state = getStateImpl(); if (state == null) return; int elapsed = state.elapsed(); ByteBuffer sessionId = state.sessionIdBytes; int ttl = state.ttl; state.executeMutation(TraceKeyspace.makeStopSessionMutation(sessionId, elapsed, ttl)); }
public void runMayThrow() { TraceStateImpl.mutateWithCatch(TraceKeyspace.makeEventMutation(sessionId, message, -1, threadName, ttl)); } });
public TraceState begin(final String request, final InetAddress client, final Map<String, String> parameters) { assert isTracing(); final TraceStateImpl state = getStateImpl(); assert state != null; final long startedAt = System.currentTimeMillis(); final ByteBuffer sessionId = state.sessionIdBytes; final String command = state.traceType.toString(); final int ttl = state.ttl; state.executeMutation(TraceKeyspace.makeStartSessionMutation(sessionId, client, parameters, request, startedAt, command, ttl)); return state; }
public TraceState begin(final String request, final InetAddress client, final Map<String, String> parameters) { assert isTracing(); final TraceStateImpl state = getStateImpl(); assert state != null; final long startedAt = System.currentTimeMillis(); final ByteBuffer sessionId = state.sessionIdBytes; final String command = state.traceType.toString(); final int ttl = state.ttl; state.executeMutation(TraceKeyspace.makeStartSessionMutation(sessionId, client, parameters, request, startedAt, command, ttl)); return state; }
public void stopSessionImpl() { final TraceStateImpl state = getStateImpl(); if (state == null) return; int elapsed = state.elapsed(); ByteBuffer sessionId = state.sessionIdBytes; int ttl = state.ttl; state.executeMutation(TraceKeyspace.makeStopSessionMutation(sessionId, elapsed, ttl)); }
public void runMayThrow() { TraceStateImpl.mutateWithCatch(TraceKeyspace.makeEventMutation(sessionId, message, -1, threadName, ttl)); } });
public void stopSessionImpl() { final TraceStateImpl state = getStateImpl(); if (state == null) return; int elapsed = state.elapsed(); ByteBuffer sessionId = state.sessionIdBytes; int ttl = state.ttl; state.executeMutation(TraceKeyspace.makeStopSessionMutation(sessionId, elapsed, ttl)); }
public void runMayThrow() { TraceStateImpl.mutateWithCatch(TraceKeyspace.makeEventMutation(sessionId, message, -1, threadName, ttl)); } });