KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jivesoftware > util > log > output > io > rotate > FileStrategy


1 /*
2  * Copyright (C) The Apache Software Foundation. All rights reserved.
3  *
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE file.
7  */

8 package org.jivesoftware.util.log.output.io.rotate;
9
10 import java.io.File JavaDoc;
11
12 /**
13  * Strategy for naming log files.
14  * For a given base file name an implementation calculates
15  * the real file name.
16  *
17  * @author <a HREF="mailto:bh22351@i-one.at">Bernhard Huber</a>
18  * @author <a HREF="mailto:peter@apache.org">Peter Donald</a>
19  */

20 public interface FileStrategy {
21
22     /**
23      * Get the current logfile
24      */

25     File JavaDoc currentFile();
26
27     /**
28      * Get the next log file to rotate to.
29      *
30      * @return the file to rotate to
31      */

32     File JavaDoc nextFile();
33 }
34
35
36
Popular Tags