protected void closeLogs ( boolean closeLeaseLog ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "closeLogs" , new Object [ ] { this , closeLeaseLog } ) ; if ( ( _tranLog != null ) && ( _tranLog instanceof DistributedRecoveryLog ) ) { try { ( ( DistributedRecoveryLog ) _tranLog ) . closeLogImmediate ( ) ; } catch ( Exception e ) { // No FFDC Needed } _tranLog = null ; } if ( ( _xaLog != null ) && ( _xaLog instanceof DistributedRecoveryLog ) ) { try { ( ( DistributedRecoveryLog ) _xaLog ) . closeLogImmediate ( ) ; } catch ( Exception e ) { // No FFDC Needed } _xaLog = null ; } try { if ( _leaseLog != null && closeLeaseLog ) { _leaseLog . deleteServerLease ( _failureScopeController . serverName ( ) ) ; } } catch ( Exception e ) { // TODO Auto-generated catch block // Do you need FFDC here? Remember FFDC instrumentation and @FFDCIgnore e . printStackTrace ( ) ; } if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "closeLogs" ) ; }
Close the loggs without any keypoint - to be called on a failure to leave the logs alone and ensure distributed shutdown code does not update them .