public void updateRuleStatus ( Auditable rule , RuleStatus status ) { _lock . readLock ( ) . lock ( ) ; try { if ( _auditMap . containsKey ( rule . getName ( ) ) ) { _lock . readLock ( ) . unlock ( ) ; _lock . writeLock ( ) . lock ( ) ; try { _auditMap . get ( rule . getName ( ) ) . put ( Thread . currentThread ( ) . getId ( ) , status ) ; _lock . readLock ( ) . lock ( ) ; } finally { _lock . writeLock ( ) . unlock ( ) ; } } } finally { _lock . readLock ( ) . unlock ( ) ; } }
Updates the status of the rule & stores the status with the Auditor .