com.sap.tc.logging.reader

Class ReadFileSetLog

java.lang.Object
  extended bycom.sap.tc.logging.ExceptionHandling
      extended bycom.sap.tc.logging.BaseLog
          extended bycom.sap.tc.logging.reader.ReadLog
              extended bycom.sap.tc.logging.reader.ReadFileSetLog
All Implemented Interfaces:
Cloneable, IBaseLog, IFileSetLog, IObjectInfo, IReadLog
Direct Known Subclasses:
FileReadLog

public abstract class ReadFileSetLog
extends ReadLog
implements IFileSetLog


Field Summary
static int MODE_FILE_SET
           
static int MODE_SINGLE_FILE
           
 
Fields inherited from class com.sap.tc.logging.BaseLog
STATUS_CLOSED, STATUS_INVALID, STATUS_OPENED
 
Fields inherited from class com.sap.tc.logging.ExceptionHandling
EX_NO_FILTER_EMSG, EX_NO_FORMATTER_EMSG, EX_NO_INSTANCE_EMSG
 
Constructor Summary
ReadFileSetLog(String fileName)
           
ReadFileSetLog(String fileName, int size, int limit)
           
 
Method Summary
 File getFile()
          Gets the current file in rotating file set
 File getFile(int index)
          Gets the file from rotating fileset on given position (index).
 File getFileLatest()
          Gets the latest (newest) file from the rotating fileset.
 File getFilePrime()
          Gets the prime (oldest) file from the rotating fileset.
 int getIndex()
          Gets the current file index in rotating file set
 int getLimit()
          Gets the limit file size used for sequencing on the rotating output file
 int getSize()
          Gets the size of rotating fileset, number of files in fileset.
 boolean isEnd()
           
 boolean isInFileSet()
          Check is the file in rotating file set
 boolean isInFileSetMode()
          Helper method.
 boolean isInSingleFileMode()
          Helper method.
 boolean isStart()
           
 void moveToBOFS()
          Move rotating fileset index to the oldest File in the fileset
 void moveToEOFS()
          Move rotating fileset index to the newest File in the fileset
 void next()
          Move rotating fileset index to next position.
 void previous()
          Move rotating fileset index to previous position.
 void setIndex(int value)
          Sets the current file index in rotating file set
 void setLimit(int value)
          Sets the limit file size used for sequencing on the rotating output file
 void setSize(int value)
          Sets the size of rotating fileset, number of files in fileset.
 
Methods inherited from class com.sap.tc.logging.reader.ReadLog
getBookMark, getBookMarkInt, readNext, readPrevious, setBookMark, setBookMarkInt
 
Methods inherited from class com.sap.tc.logging.BaseLog
addFilter, clone, close, closeInt, getDescription, getEncoding, getFilter, getFilters, getFooter, getFormatter, getHeader, getMode, getName, getPattern, getSource, getVerInUse, isClosed, isOpened, open, openInt, removeFilter, removeFilters, setDescription, setEncoding, setFooter, setFormatter, setHeader, setMode, setName, setPattern, setSource, setStatus, setVerInUse, status
 
Methods inherited from class com.sap.tc.logging.ExceptionHandling
getException, getExceptions, handleException, handleException, resetException, throwException
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sap.tc.logging.interfaces.IReadLog
find, getMode, isBOF, isEOF, moveToBOF, moveToEOF, readNext, readPrevious, search, seek, setMode
 
Methods inherited from interface com.sap.tc.logging.interfaces.IBaseLog
addFilter, close, getEncoding, getFilter, getFilters, getFooter, getFormatter, getHeader, getPattern, getSource, isClosed, isOpened, open, removeFilter, removeFilters, setEncoding, setFormatter, setPattern, setSource, status
 
Methods inherited from interface com.sap.tc.logging.interfaces.IObjectInfo
getDescription, getName, getVerInUse
 

Field Detail

MODE_SINGLE_FILE

public static final int MODE_SINGLE_FILE
See Also:
Constant Field Values

MODE_FILE_SET

public static final int MODE_FILE_SET
See Also:
Constant Field Values
Constructor Detail

ReadFileSetLog

public ReadFileSetLog(String fileName)

ReadFileSetLog

public ReadFileSetLog(String fileName,
                      int size,
                      int limit)
Method Detail

getFile

public File getFile()
Gets the current file in rotating file set

Specified by:
getFile in interface IFileSetLog
Returns:
java.io.File

getFile

public File getFile(int index)
Gets the file from rotating fileset on given position (index).

Specified by:
getFile in interface IFileSetLog
Returns:
java.io.File

getFileLatest

public File getFileLatest()
Gets the latest (newest) file from the rotating fileset.

Specified by:
getFileLatest in interface IFileSetLog
Returns:
java.io.File

getFilePrime

public File getFilePrime()
Gets the prime (oldest) file from the rotating fileset.

Specified by:
getFilePrime in interface IFileSetLog
Returns:
java.io.File

getIndex

public int getIndex()
Gets the current file index in rotating file set

Specified by:
getIndex in interface IFileSetLog
Returns:
Limit file size

setIndex

public void setIndex(int value)
Sets the current file index in rotating file set

Specified by:
setIndex in interface IFileSetLog

setLimit

public void setLimit(int value)
Sets the limit file size used for sequencing on the rotating output file

Specified by:
setLimit in interface IFileSetLog
Returns:
Limit file size

getLimit

public int getLimit()
Gets the limit file size used for sequencing on the rotating output file

Specified by:
getLimit in interface IFileSetLog
Returns:
Limit file size

setSize

public void setSize(int value)
Sets the size of rotating fileset, number of files in fileset.

Specified by:
setSize in interface IFileSetLog
Returns:
Number of files in rotating fileset.

getSize

public int getSize()
Gets the size of rotating fileset, number of files in fileset.

Specified by:
getSize in interface IFileSetLog
Returns:
Number of files in rotating fileset.

isInFileSet

public boolean isInFileSet()
Check is the file in rotating file set

Specified by:
isInFileSet in interface IFileSetLog
Returns:
true if file is part of fileset

isInFileSetMode

public boolean isInFileSetMode()
Helper method. Same like (getMode() == MODE_FILE_SET) Is this Log in FileSet Mode


isInSingleFileMode

public boolean isInSingleFileMode()
Helper method. Same like (getMode() == MODE_SINGLE_FILE) Is this Log in SingleFile Mode


moveToBOFS

public void moveToBOFS()
Move rotating fileset index to the oldest File in the fileset

Specified by:
moveToBOFS in interface IFileSetLog

moveToEOFS

public void moveToEOFS()
Move rotating fileset index to the newest File in the fileset

Specified by:
moveToEOFS in interface IFileSetLog

next

public void next()
Move rotating fileset index to next position. Next position is the file in the fileset where current file last modified date value < next file last modified date value

Specified by:
next in interface IFileSetLog

previous

public void previous()
Move rotating fileset index to previous position. Previous position is the file in the fileset where current file last modified date value > previous file last modified date value

Specified by:
previous in interface IFileSetLog

isStart

public boolean isStart()

isEnd

public boolean isEnd()


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.