/** * Indicates if the current thread's execution is being traced. */ public static boolean isTracing() { return instance.get() != null; }
/** * Indicates if the current thread's execution is being traced. */ public static boolean isTracing() { return instance.get() != null; }
/** * Indicates if the current thread's execution is being traced. */ public static boolean isTracing() { return instance.get() != null; }
public static void trace(String format, Object arg) { final TraceState state = instance.get(); if (state == null) // inline isTracing to avoid implicit two calls to state.get() return; state.trace(format, arg); }
public static void trace(String format, Object arg1, Object arg2) { final TraceState state = instance.get(); if (state == null) // inline isTracing to avoid implicit two calls to state.get() return; state.trace(format, arg1, arg2); }
public static void trace(String format, Object... args) { final TraceState state = instance.get(); if (state == null) // inline isTracing to avoid implicit two calls to state.get() return; state.trace(format, args); }
public static void trace(String format, Object arg1, Object arg2) { final TraceState state = instance.get(); if (state == null) // inline isTracing to avoid implicit two calls to state.get() return; state.trace(format, arg1, arg2); }
public static void trace(String message) { final TraceState state = instance.get(); if (state == null) // inline isTracing to avoid implicit two calls to state.get() return; state.trace(message); }
public static void trace(String format, Object arg) { final TraceState state = instance.get(); if (state == null) // inline isTracing to avoid implicit two calls to state.get() return; state.trace(format, arg); }
public static void trace(String format, Object arg1, Object arg2) { final TraceState state = instance.get(); if (state == null) // inline isTracing to avoid implicit two calls to state.get() return; state.trace(format, arg1, arg2); }
public static void traceRepair(String format, Object... args) { final TraceState state = instance.get(); if (state == null) // inline isTracing to avoid implicit two calls to state.get() return; state.trace(format, args); }
public static void trace(String format, Object arg1, Object arg2) { final TraceState state = instance.get(); if (state == null) // inline isTracing to avoid implicit two calls to state.get() return; state.trace(format, arg1, arg2); }
public static void trace(String format, Object... args) { final TraceState state = instance.get(); if (state == null) // inline isTracing to avoid implicit two calls to state.get() return; state.trace(format, args); }
public static void trace(String format, Object... args) { final TraceState state = instance.get(); if (state == null) // inline isTracing to avoid implicit two calls to state.get() return; state.trace(format, args); }
public static void traceRepair(String format, Object... args) { final TraceState state = instance.get(); if (state == null) // inline isTracing to avoid implicit two calls to state.get() return; state.trace(format, args); }
public static void trace(String message) { final TraceState state = instance.get(); if (state == null) // inline isTracing to avoid implicit two calls to state.get() return; state.trace(message); }
public static void trace(String format, Object arg) { final TraceState state = instance.get(); if (state == null) // inline isTracing to avoid implicit two calls to state.get() return; state.trace(format, arg); }
/** This method is intended to be overridden in tracing implementations that need access to the customPayload */ protected UUID newSession(UUID sessionId, TraceType traceType, Map<String,ByteBuffer> customPayload) { assert get() == null; TraceState ts = newTraceState(localAddress, sessionId, traceType); set(ts); sessions.put(sessionId, ts); return sessionId; }
/** This method is intended to be overridden in tracing implementations that need access to the customPayload */ protected UUID newSession(UUID sessionId, TraceType traceType, Map<String,ByteBuffer> customPayload) { assert get() == null; TraceState ts = newTraceState(localAddress, sessionId, traceType); set(ts); sessions.put(sessionId, ts); return sessionId; }
protected <T> FutureTask<T> newTaskFor(Callable<T> callable) { if (isTracing()) { if (callable instanceof TraceSessionFutureTask) return (TraceSessionFutureTask<T>) callable; return new TraceSessionFutureTask<T>(callable, Tracing.instance.get()); } if (callable instanceof FutureTask) return (FutureTask<T>) callable; return new FutureTask<>(callable); }