Package org.apache.directory.server.log

Examples of org.apache.directory.server.log.UserLogRecord


     */
    public void initLogManager() throws IOException, InvalidLogException
    {
        LogAnchor scanPoint = new LogAnchor();
        LogScanner scanner;
        UserLogRecord logRecord;
        LogFileManager.LogFileReader reader;

        // Read and verify control file
        boolean controlFileExists = true;
        try
        {
            this.readControlFile();
        }
        catch ( FileNotFoundException e )
        {
            controlFileExists = false;
        }

        if ( controlFileExists )
        {
            boolean invalidLog = false;

            // Set the min log anchor from the control file
            minLogAnchor.resetLogAnchor( controlFileRecord.minNeededLogFile,
                controlFileRecord.minNeededLogFileOffset, controlFileRecord.minNeededLSN );

            scanPoint.resetLogAnchor( minLogAnchor );

            logRecord = new UserLogRecord();
            scanner = new DefaultLogScanner( scanPoint, logFileManager );

            try
            {
                while ( scanner.getNextRecord( logRecord ) )
View Full Code Here

TOP

Related Classes of org.apache.directory.server.log.UserLogRecord

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.