private boolean skipLogging(boolean readOnly) { if (config.isBooting() && !isLogBoot() || readOnly && !isLogReadOnly()) { if (getLoggerStatus() == Status.DISABLED) { // switch to the fast path for the next event runDisabledFastPath.set(true); } return true; } return false; }
private boolean skipLogging(boolean readOnly) { if (config.isBooting() && !isLogBoot() || readOnly && !isLogReadOnly()) { if (getLoggerStatus() == Status.DISABLED) { // switch to the fast path for the next event runDisabledFastPath.set(true); } return true; } return false; }
@Override public void logJmxMethodAccess(boolean readOnly, String userId, String domainUUID, AccessMechanism accessMechanism, InetAddress remoteAddress, String methodName, String[] methodSignature, Object[] methodParams, Throwable error) { config.lock(); try { if (config.isBooting() && !isLogBoot()) { return; } if (readOnly && !isLogReadOnly()) { return; } storeLogItem( AuditLogItem.createMethodAccessItem(config.getAsVersion(), readOnly, config.isBooting(), userId, domainUUID, accessMechanism, remoteAddress, methodName, methodSignature, methodParams, error)); } catch (Exception e) { handleLoggingException(e); } finally { applyHandlerUpdates(); config.unlock(); } }
@Override public void log(boolean readOnly, ResultAction resultAction, String userId, String domainUUID, AccessMechanism accessMechanism, InetAddress remoteAddress, Resource resultantModel, List<ModelNode> operations) { config.lock(); try { if (config.isBooting() && !isLogBoot()) { return; } if (readOnly && !isLogReadOnly()) { return; } storeLogItem( AuditLogItem.createModelControllerItem(config.getAsVersion(), readOnly, config.isBooting(), resultAction, userId, domainUUID, accessMechanism, remoteAddress, resultantModel, operations)); } catch (Exception e) { handleLoggingException(e); } finally { applyHandlerUpdates(); config.unlock(); } }