private TranLogConfiguration createFileTranLogConfiguration ( String recoveredServerIdentity , FailureScope fs , String logDir , int logSize , boolean isPeerRecoverySupported ) throws URISyntaxException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "createFileTranLogConfiguration" , new java . lang . Object [ ] { recoveredServerIdentity , fs , logDir , logSize , this } ) ; TranLogConfiguration tlc = null ; if ( _isPeerRecoverySupported ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Work with server recovery identity - " , recoveredServerIdentity ) ; // Do we need to reset the logdir? if ( recoveredServerIdentity . equals ( localRecoveryIdentity ) ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Local server recovery identity so no need to reset the logDir" ) ; } else { // Reset the logdir if ( fs != null && fs instanceof FileFailureScope ) { FileFailureScope ffs = ( FileFailureScope ) fs ; if ( ffs != null ) { LeaseInfo li = ffs . getLeaseInfo ( ) ; if ( li != null ) { logDir = li . getLeaseDetail ( ) ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Have reset the logDir to " , logDir ) ; } } } } } tlc = new TranLogConfiguration ( logDir , logDir , logSize ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "createFileTranLogConfiguration" , tlc ) ; return tlc ; }
Creates a Filesystem TranLogConfiguration object appropriate for storing transaction logs in a filesystem .