/data/maps/the_impressive/

/cgit.png' alt='cgit logo'/> index : instadisc
A productivity-increasing notification system
about summary refs log tree commit diff stats
path: root/client/trunk/src/com/fourisland/instadisc/Database/CloseEnvironmentThread.java
blob: 2a23aeb8c5da8eceb0ad5cd15a25a32837a50a84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.fourisland.instadisc.Database;

import com.sleepycat.je.DatabaseException;
import com.sleepycat.je.Environment;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author hatkirby
 */
public class CloseEnvironmentThread implements Runnable{

    Environment svr;

    public CloseEnvironmentThread(Environment e) {
        svr = e;
    }

    public void run() {
        try {
            svr.cleanLog();
            svr.close();
        } catch (DatabaseException ex) {
            Logger.getLogger(CloseEnvironmentThread.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}