public void setLeakDetectionSettings ( int interval , String output ) throws IOException { this . leakDetectionInterval = interval ; this . leakDetectionOutput = TrConfigurator . getLogLocation ( ) + File . separator + output ; if ( ( interval > - 1 ) && ( output != null ) ) { // clear file FileWriter outFile = new FileWriter ( this . leakDetectionOutput , false ) ; outFile . close ( ) ; } }
Set the memory leak detection parameters . If the interval is 0 or greater then the detection code will enabled .