类 RollingIOLog

java.lang.Object
com.huangjian.modbus4j.sero.log.BaseIOLog
com.huangjian.modbus4j.sero.log.RollingIOLog

public class RollingIOLog extends BaseIOLog
Class to Log IO with the option to keep historical files
  • 字段详细资料

    • fileSize

      protected int fileSize
    • maxFiles

      protected int maxFiles
    • currentFileNumber

      protected int currentFileNumber
  • 构造器详细资料

    • RollingIOLog

      public RollingIOLog(String baseFilename, File logDirectory, int fileSize, int maxFiles)

      Constructor for RollingIOLog.

      参数:
      baseFilename - - The base filename for all logfiles ie. dataLog.log
      logDirectory - a File object.
      fileSize - - in bytes of file before rolling over
      maxFiles - - max number to keep in addition to the current log file
  • 方法详细资料

    • sendByte

      public void sendByte(String sendByteDataHex)
      指定者:
      sendByte 在类中 BaseIOLog
    • readByte

      public void readByte(String readByteDataHex)
      指定者:
      readByte 在类中 BaseIOLog
    • sizeCheck

      protected void sizeCheck()
      Check the size of the logfile and perform adjustments as necessary
      指定者:
      sizeCheck 在类中 BaseIOLog