1 package org.ultramonkey.l7.controller;
4 import java.io.Serializable;
6 import org.apache.log4j.Logger;
7 import org.ultramonkey.l7.model.LogCategorySet;
11 * <p>class LogFileData</p>
12 * <p>Copyright(c) NTT COMWARE 2008</p>
15 public class LogFileData implements Serializable {
16 static final long serialVersionUID = 1;
19 * file name (ex. l7vsd.log, l7vsadm.log.2)
21 public String fileName;
24 * file path include file name (ex. /var/log/l7vsd.log.4)
26 public String filePath;
43 public LogFileData() {
44 // --- debug log (constructor) ---
45 Logger ioFileLogger = Logger.getLogger(LogCategorySet.GUI_IO_FILE);
46 if (ioFileLogger.isDebugEnabled()) {
47 ioFileLogger.debug("11520 class LogFileData created.");
49 // --- debug log (constructor) ---
54 this.time = new Date();
66 public LogFileData(String fileName, String filePath, long size, Date time) {
67 // --- debug log (constructor) ---
68 Logger ioFileLogger = Logger.getLogger(LogCategorySet.GUI_IO_FILE);
69 if (ioFileLogger.isDebugEnabled()) {
70 ioFileLogger.debug("11521 class LogFileData created.");
72 // --- debug log (constructor) ---
74 this.fileName = fileName;
75 this.filePath = filePath;
84 public String toString() {
86 "fileName=\"" + this.fileName + "\", " +
87 "filePath=\"" + this.filePath + "\", " +
88 "size=" + this.size + ", " +
89 "time=(" + this.time + ")";