jPOS 1.6.7 API Documentation

org.jpos.util
Class DailyLogListener

java.lang.Object
  extended by org.jpos.util.SimpleLogListener
      extended by org.jpos.util.RotateLogListener
          extended by org.jpos.util.DailyLogListener
All Implemented Interfaces:
java.util.EventListener, Configurable, Destroyable, LogListener

public class DailyLogListener
extends RotateLogListener

Rotates log daily and compress the prevoius log.

Since:
jPOS 1.5.1
Author:
Andrés Alcarraz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jpos.util.RotateLogListener
RotateLogListener.Rotate
 
Field Summary
 
Fields inherited from class org.jpos.util.RotateLogListener
CHECK_INTERVAL, DEFAULT_MAXSIZE
 
Constructor Summary
DailyLogListener()
          Creates a new instance of DailyLogListener
 
Method Summary
 java.lang.String getCompressedSuffix()
          Getter for property compressedExt.
 int getCompressionBufferSize()
          Getter for property compressionBufferSize.
 int getCompressionFormat()
          Getter for property compressionFormat.
 java.text.DateFormat getDateFmt()
          Getter for property dateFmt.
 java.lang.String getLastDate()
          Getter for property lastDate.
 java.lang.String getPrefix()
          Getter for property prefix.
 int getRotateCount()
          Getter for property rotateCount.
 java.lang.String getSuffix()
          Getter for property suffix.
 void logRotate()
           
 void setCompressedSuffix(java.lang.String compressedSuffix)
          Setter for property compressedExt.
 void setCompressionBufferSize(int compressionBufferSize)
          Setter for property compressionBufferSize.
 void setCompressionFormat(int compressionFormat)
          Setter for property compressionFormat.
 void setConfiguration(Configuration cfg)
          Configure this RotateLogListener
Properties:
file base log filename [window] in seconds (default 0 - never rotate) [count] number of copies (default 0 == single copy) [maxsize] max log size in bytes (aprox)
 void setDateFmt(java.text.DateFormat dateFmt)
          Setter for property dateFmt.
 void setLastDate(java.lang.String lastDate)
          Setter for property lastDate.
 void setPrefix(java.lang.String prefix)
          Setter for property prefix.
 void setRotateCount(int rotateCount)
          Setter for property rotateCount.
 void setSuffix(java.lang.String suffix)
          Setter for property suffix.
 
Methods inherited from class org.jpos.util.RotateLogListener
destroy, log
 
Methods inherited from class org.jpos.util.SimpleLogListener
close, setPrintStream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DailyLogListener

public DailyLogListener()
Creates a new instance of DailyLogListener

Method Detail

setConfiguration

public void setConfiguration(Configuration cfg)
                      throws ConfigurationException
Description copied from class: RotateLogListener
Configure this RotateLogListener
Properties:

Specified by:
setConfiguration in interface Configurable
Overrides:
setConfiguration in class RotateLogListener
Parameters:
cfg - Configuration
Throws:
ConfigurationException

logRotate

public void logRotate()
               throws java.io.IOException
Overrides:
logRotate in class RotateLogListener
Throws:
java.io.IOException

getSuffix

public java.lang.String getSuffix()
Getter for property suffix.

Returns:
Value of property suffix.

setSuffix

public void setSuffix(java.lang.String suffix)
Setter for property suffix.

Parameters:
suffix - New value of property suffix.

getPrefix

public java.lang.String getPrefix()
Getter for property prefix.

Returns:
Value of property prefix.

setPrefix

public void setPrefix(java.lang.String prefix)
Setter for property prefix.

Parameters:
prefix - New value of property prefix.

getRotateCount

public int getRotateCount()
Getter for property rotateCount.

Returns:
Value of property rotateCount.

setRotateCount

public void setRotateCount(int rotateCount)
Setter for property rotateCount.

Parameters:
rotateCount - New value of property rotateCount.

getDateFmt

public java.text.DateFormat getDateFmt()
Getter for property dateFmt.

Returns:
Value of property dateFmt.

setDateFmt

public void setDateFmt(java.text.DateFormat dateFmt)
Setter for property dateFmt.

Parameters:
dateFmt - New value of property dateFmt.

getLastDate

public java.lang.String getLastDate()
Getter for property lastDate.

Returns:
Value of property lastDate.

setLastDate

public void setLastDate(java.lang.String lastDate)
Setter for property lastDate.

Parameters:
lastDate - New value of property lastDate.

getCompressedSuffix

public java.lang.String getCompressedSuffix()
Getter for property compressedExt.

Returns:
Value of property compressedExt.

setCompressedSuffix

public void setCompressedSuffix(java.lang.String compressedSuffix)
Setter for property compressedExt.

Parameters:
compressedExt - New value of property compressedExt.

getCompressionFormat

public int getCompressionFormat()
Getter for property compressionFormat.

Returns:
Value of property compressionFormat.

setCompressionFormat

public void setCompressionFormat(int compressionFormat)
Setter for property compressionFormat.

Parameters:
compressionFormat - New value of property compressionFormat.

getCompressionBufferSize

public int getCompressionBufferSize()
Getter for property compressionBufferSize.

Returns:
Value of property compressionBufferSize.

setCompressionBufferSize

public void setCompressionBufferSize(int compressionBufferSize)
Setter for property compressionBufferSize.

Parameters:
compressionBufferSize - New value of property compressionBufferSize.

jPOS.org