public Transaction latencyCPU(String level) { final Latency latency = (level.length()) == 0 ? null : Latency.valueOf(level.toUpperCase()); add(new Runnable() { @Override public void run() { latencyCPU = latency; } }); return this; }
public Transaction latencyFile(String level) { final Latency latency = (level.length()) == 0 ? null : Latency.valueOf(level.toUpperCase()); add(new Runnable() { @Override public void run() { latencyFile = latency; } }); return this; }
public Transaction latencyNetwork(String level) { final Latency latency = (level.length()) == 0 ? null : Latency.valueOf(level.toUpperCase()); add(new Runnable() { @Override public void run() { latencyNetwork = latency; } }); return this; }
add(new Runnable()
/** * Ask a specific boot strap delay before start the audit. * May be apply after the commit(). * * @param delay The new delay. * @return The current transaction. */ public Transaction bootStrapDelay(final long delay) { add(new Runnable() { @Override public void run() { bootstrapDelay = delay; } }); return this; } /**
/** * Set the debug mode. * With debug mode, the exception was not clean with the aspect. * May be apply after the commit(). * * @param aDebug The debug mode. * @return The current transaction. */ public Transaction debug(final boolean aDebug) { add(new Runnable() { @Override public void run() { setDebug(aDebug); } }); return this; }
/** * Ask a specific pattern for detect the reactive thread. * May be apply after the commit(). * * @param pattern The regexp pattern. * @return The current transaction. */ public Transaction threadPattern(final String pattern) { add(new Runnable() { @Override public void run() { threadPattern = Pattern.compile(pattern); } }); return this; }
/** * Ask to throw an exception if detect an error. * May be apply after the commit(). * * @param onOff true or fall * @return The current transaction. */ public Transaction throwExceptions(final boolean onOff) { add(new Runnable() { @Override public void run() { throwExceptions = onOff; } }); return this; }
/** * Ask a specific boot strap delay before start the audit. * May be apply after the commit(). * * @param delay The new delay. * @return The current transaction. */ public Transaction bootStrapCPUDelay(final long delay) { add(new Runnable() { @Override public void run() { bootstrapCPUDelay = delay * 1000; } }); return this; }
public Transaction bootStrapMode(final BootStrapMode mode) { add(new Runnable() { @Override public void run() { bootStrapMode = mode; if (mode==BootStrapMode.CPU) cpuAnalyze(); } }); return this; } /**