Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OKBJavaConnector/ECJClient/src/ec/util/LogRestarter.java @ 9449

Last change on this file since 9449 was 6152, checked in by bfarka, 14 years ago

added ecj and custom statistics to communicate with the okb services #1441

File size: 1.0 KB
Line 
1/*
2  Copyright 2006 by Sean Luke
3  Licensed under the Academic Free License version 3.0
4  See the file "LICENSE" for more information
5*/
6
7
8package ec.util;
9import java.io.IOException;
10import java.io.Serializable;
11
12/*
13 * LogRestarter.java
14 *
15 * Created: Wed Aug 11 14:55:03 1999
16 * By: Sean Luke
17 */
18
19/**
20 * A LogRestarter is an abstract superclass of objects which are
21 * capable of restarting logs after a computer failure.   
22 * LogRestarters subclasses are generally used
23 * internally in Logs only; you shouldn't need to deal with them.
24 *
25 * @author Sean Luke
26 * @version 1.0
27 */
28
29public abstract class LogRestarter implements Serializable
30    {
31    /* recreate the writer for, and properly reopen a log
32       upon a system restart from a checkpoint */
33    public abstract Log restart(Log l) throws IOException;
34
35    /* close an existing log file and reopen it (non-appending),
36       if that' appropriate for this kind of log.  Otherwise,
37       don't do anything. */
38    public abstract Log reopen(Log l) throws IOException;
39    }
Note: See TracBrowser for help on using the repository browser.