@After("execution(@com.octo.reactive.audit.lib.TolerateLatency * *(..))") public void afterAssume(JoinPoint thisJoinPoint) throws ReactiveAuditException { ReactiveAudit.config.decSuppress(); } }
@After("execution(* java.util.logger.Logger.*(..))") public void afterLogger(JoinPoint thisJoinPoint) throws ReactiveAuditException { ReactiveAudit.config.decSuppress(); } }
pw.close(); throwable = sw.toString(); ReactiveAudit.config.decSuppress();
void reset() { try { incSuppress(); started = false; auditStarted = false; history.purge(); stack.clear(); historyThreadName.clear(); startup(); } finally { decSuppress(); } }
static public boolean isNetworkConnected() { if (network==-1) { try { ReactiveAudit.config.incSuppress(); InetAddress.getByName("www.google.com"); network = 1; } catch (UnknownHostException e) { network = 0; } finally { ReactiveAudit.config.decSuppress(); } } return network==1; } }
public static void push() { try { ReactiveAudit.config.incSuppress(); ReactiveAudit.config.push(); ReactiveAudit.off.commit(); } finally { ReactiveAudit.config.decSuppress(); } }
@Test public void variableProperties() { LoadParams.resetAllEnv(); String url = getClass().getResource("/testEnv.properties").toExternalForm(); ReactiveAudit.config.incSuppress(); try { new LoadParams(config, url).commit(); assertEquals(config.getThreadPattern(), System.getProperty("os.name")); } finally { ReactiveAudit.config.decSuppress(); } }