@@ -114,60 +114,60 @@ public void rolling_by_three_hour() throws IOException {
114
114
}
115
115
116
116
private void generateLogFilesToBeCleanupHourly (SimpleDateFormat sdf ) throws IOException {
117
- todayFile = newFile (TracerLogRootDeamon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG );
117
+ todayFile = newFile (TracerLogRootDaemon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG );
118
118
119
119
Calendar oneHourAgo = Calendar .getInstance ();
120
120
oneHourAgo .add (Calendar .HOUR , -1 );
121
- yesterdayFile = newFile (TracerLogRootDeamon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
121
+ yesterdayFile = newFile (TracerLogRootDaemon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
122
122
+ sdf .format (oneHourAgo .getTime ()));
123
123
124
124
Calendar twoHourAgo = Calendar .getInstance ();
125
125
twoHourAgo .add (Calendar .HOUR , -2 );
126
- twoDayAgoFile = newFile (TracerLogRootDeamon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
126
+ twoDayAgoFile = newFile (TracerLogRootDaemon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
127
127
+ sdf .format (twoHourAgo .getTime ()));
128
128
129
129
Calendar threeHourAgo = Calendar .getInstance ();
130
130
threeHourAgo .add (Calendar .HOUR , -3 );
131
- threeDayAgoFile = newFile (TracerLogRootDeamon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
131
+ threeDayAgoFile = newFile (TracerLogRootDaemon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
132
132
+ sdf .format (threeHourAgo .getTime ()));
133
133
134
134
Calendar fourHourAgo = Calendar .getInstance ();
135
135
fourHourAgo .add (Calendar .HOUR , -4 );
136
- fourDayAgoFile = newFile (TracerLogRootDeamon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
136
+ fourDayAgoFile = newFile (TracerLogRootDaemon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
137
137
+ sdf .format (fourHourAgo .getTime ()));
138
138
139
139
Calendar fiveHourAgo = Calendar .getInstance ();
140
140
fiveHourAgo .add (Calendar .HOUR , -5 );
141
- fiveDayAgoFile = newFile (TracerLogRootDeamon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
141
+ fiveDayAgoFile = newFile (TracerLogRootDaemon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
142
142
+ sdf .format (fiveHourAgo .getTime ()));
143
143
}
144
144
145
145
private void generateLogFilesToBeCleanup (SimpleDateFormat sdf ) throws IOException {
146
- todayFile = newFile (TracerLogRootDeamon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG );
146
+ todayFile = newFile (TracerLogRootDaemon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG );
147
147
148
148
Calendar yesterday = Calendar .getInstance ();
149
149
yesterday .add (Calendar .DATE , -1 );
150
- yesterdayFile = newFile (TracerLogRootDeamon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
150
+ yesterdayFile = newFile (TracerLogRootDaemon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
151
151
+ sdf .format (yesterday .getTime ()));
152
152
153
153
Calendar twoDayAgo = Calendar .getInstance ();
154
154
twoDayAgo .add (Calendar .DATE , -2 );
155
- twoDayAgoFile = newFile (TracerLogRootDeamon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
155
+ twoDayAgoFile = newFile (TracerLogRootDaemon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
156
156
+ sdf .format (twoDayAgo .getTime ()));
157
157
158
158
Calendar threeDayAgo = Calendar .getInstance ();
159
159
threeDayAgo .add (Calendar .DATE , -3 );
160
- threeDayAgoFile = newFile (TracerLogRootDeamon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
160
+ threeDayAgoFile = newFile (TracerLogRootDaemon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
161
161
+ sdf .format (threeDayAgo .getTime ()));
162
162
163
163
Calendar fourDayAgo = Calendar .getInstance ();
164
164
fourDayAgo .add (Calendar .DATE , -4 );
165
- fourDayAgoFile = newFile (TracerLogRootDeamon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
165
+ fourDayAgoFile = newFile (TracerLogRootDaemon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
166
166
+ sdf .format (fourDayAgo .getTime ()));
167
167
168
168
Calendar fiveDayAgo = Calendar .getInstance ();
169
169
fiveDayAgo .add (Calendar .DATE , -5 );
170
- fiveDayAgoFile = newFile (TracerLogRootDeamon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
170
+ fiveDayAgoFile = newFile (TracerLogRootDaemon .LOG_FILE_DIR + "/" + CLEAN_UP_TEST_LOG
171
171
+ sdf .format (fiveDayAgo .getTime ()));
172
172
}
173
173
0 commit comments