BatchedAsynchronousFileHandler.java 文件源码

java
阅读 36 收藏 0 点赞 0 评论 0

项目:ibm-performance-monitor 作者:
private void findNextGeneration() {
    super.close();
    for ( int i = count - 1; i > 0; i-- ) {
        if ( files[i].exists() ) {
            files[i].delete();
        }
        files[i - 1].renameTo( files[i] );
    }
    try {
        // $ANALYSIS-IGNORE
        output = new MeasureOutputStream( new BufferedOutputStream( new FileOutputStream( files[0] ) ) );
    } catch ( FileNotFoundException e1 ) {
        // logging.1A=Error happened when open log file.
        this.getErrorManager().error( "BatchedAsynchronousFileHandler Output stream open failure. ", //$NON-NLS-1$
            e1, ErrorManager.OPEN_FAILURE );
    }
    setOutputStream( output );
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号