blob: af475b68c0866eb1a993c152d4ebd1c86f5c2485 (
plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1997-2009 Oracle. All rights reserved.
*
* $Id$
*/
package db.repquote;
import com.sleepycat.db.*;
/*
* A simple wrapper class, that facilitates storing some
* custom information with an Environment object.
* The information is used by the Replication callback (handleEvent).
*/
public class RepQuoteEnvironment extends Environment
{
private boolean appFinished;
private boolean inClientSync;
private boolean isMaster;
public RepQuoteEnvironment(final java.io.File host,
EnvironmentConfig config)
throws DatabaseException, java.io.FileNotFoundException
{
super(host, config);
appFinished = false;
inClientSync = false;
isMaster = false;
}
boolean getAppFinished()
{
return appFinished;
}
public void setAppFinished(boolean appFinished)
{
this.appFinished = appFinished;
}
boolean getInClientSync()
{
return inClientSync;
}
public void setInClientSync(boolean inClientSync)
{
this.inClientSync = inClientSync;
}
boolean getIsMaster()
{
return isMaster;
}
public void setIsMaster(boolean isMaster)
{
this.isMaster = isMaster;
}
}
|