Package org.jwall.web.audit.io

Examples of org.jwall.web.audit.io.ConcurrentAuditReader


            if( ! dat.canRead() )
                throw new Exception("Cannot open concurrent data-directory '"+dat.getAbsolutePath()+"' for reading!");

            if( "stdin".equalsIgnoreCase( index ) ){
                System.out.println( "Reading summaries from standard input..." );
                src = new ConcurrentAuditReader( System.in, dat );

            } else {

                File idx = new File( p.getProperty( COLLECTOR_CONCURRENT_INDEX ) );
                if( ! idx.canRead() )
                    throw new Exception("Cannot open concurrent index-file "+idx.getAbsoluteFile()+" for reading!");

                src = new ConcurrentAuditReader( dat, idx, tail );
            }
        }

        return src;
    }
View Full Code Here


            if( format ==AuditFormat.MOD_SECURITY_2_X_SERIAL_LOG )
                r = new ModSecurity2AuditReader( auditFile, skip > 0 );

            if( format == AuditFormat.MOD_SECURITY_2_X_CONCURRENT_LOG ){
                File dataDir = new File( auditFile.getParent() );
                r = new ConcurrentAuditReader( auditFile, dataDir );
            }

            if( r == null ){
                log.warn("Could not create reader for the audit-log file on "+auditFile.getAbsolutePath() );
                System.exit(-1);
View Full Code Here

TOP

Related Classes of org.jwall.web.audit.io.ConcurrentAuditReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.