1    package com.instantbank.component.lettertemplate.util;
2    
3    import java.util.*;
4    import java.io.Serializable;
5    
6    /**
7     * Utility class allowing manipulation of letter batch review.
8     *
9     * @author InstantBank (Jorge Cardenas, Roberto Contreras).
10    * @created November 2002
11    */
12   public class FileLogInfo
13       implements Serializable {
14   
15     /**
16      * Name of a letters file generated by the Job
17      */
18     private String jobFile;
19   
20     /**
21      * ftp status Job
22      */
23     private String ftpSucces;
24   
25     /**
26      * Number of failed attempts sending by ftp
27      */
28     private String failedAttempts;
29   
30     /**
31      * Date of last attempt sending by the ftp
32      */
33     private String lastFtpDate;
34   
35     /**
36      * IP Address used in last attempt sending by ftp
37      */
38     private String lastFtpIpAddress;
39   
40     /**
41      * Explanation in failure case
42      */
43     private String failureDescription;
44   
45   
46     /**
47      *  Constructor for the FileLogInfo object
48      *
49      * @param jobFile String name of a letters file
50      * @param ftpSucces String status of ftp Job
51      * @param failedAttempts String number of attempts
52      * @param lastFtpDate String date of last attempt
53      * @param lastFtpIpAddress String IP address of last attempt
54      * @param failureDescription String description of failure
55      */
56     public FileLogInfo(String jobFile, String ftpSucces, String failedAttempts,
57                        String lastFtpDate, String lastFtpIpAddress, String failureDescription) {
58       this.jobFile = jobFile;
59       this.ftpSucces = ftpSucces;
60       this.failedAttempts = failedAttempts;
61       this.lastFtpDate = lastFtpDate;
62       this.lastFtpIpAddress = lastFtpIpAddress;
63       this.failureDescription = failureDescription;
64     }
65   
66   
67     /**
68      *  Gets the jobFile attribute of the FileLogInfo object
69      *
70      * @return The jobFile value
71      */
72     public String getJobFile() {
73       return (this.jobFile);
74     }
75   
76   
77     /**
78      *  Gets the ftpSucces attribute of the FileLogInfo object
79      *
80      * @return The ftpSucces value
81      */
82     public String getFtpSucces() {
83       return (this.ftpSucces);
84     }
85   
86   
87     /**
88      *  Gets the failedAttempts attribute of the FileLogInfo object
89      *
90      * @return The failedAttempts value
91      */
92     public String getFailedAttempts() {
93       return (this.failedAttempts);
94     }
95   
96   
97     /**
98      *  Gets the lastFtpDate attribute of the FileLogInfo object
99      *
100     * @return The lastFtpDate value
101     */
102    public String getLastFtpDate() {
103      return (this.lastFtpDate);
104    }
105  
106  
107    /**
108     *  Gets the lastFtpIpAddress attribute of the FileLogInfo object
109     *
110     * @return The lastFtpIpAddress value
111     */
112    public String getLastFtpIpAddress() {
113      return (this.lastFtpIpAddress);
114    }
115  
116  
117    /**
118     *  Gets the failureDescription attribute of the FileLogInfo object
119     *
120     * @return The failureDescription value
121     */
122    public String getFailureDescription() {
123      return (this.failureDescription);
124    }
125  
126  
127    /**
128     *  Print the attributes of class
129     *
130     * @return The String of class attributes
131     */
132    public String toString() {
133  
134      StringBuffer toString = new StringBuffer();
135      toString.append("\njobFile = ");
136      toString.append(jobFile);
137      toString.append("\nftpSucces = ");
138      toString.append(ftpSucces);
139      toString.append("\nfailedAttempts = ");
140      toString.append(failedAttempts);
141      toString.append("\nlastFtpDate = ");
142      toString.append(lastFtpDate);
143      toString.append("\nlastFtpIpAddress = ");
144      toString.append(lastFtpIpAddress);
145      toString.append("\nfailureDescription = ");
146      toString.append(failureDescription);
147      toString.append("\n");
148  
149      return new String(toString);
150    }
151  
152  }
153