blob: 2a830fb3af35dec6f82515c78f742e6daa379021 (
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
|
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2001-2009 Oracle. All rights reserved.
*
* $Id$
*/
package db.repquote_gsg;
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 isMaster;
public RepQuoteEnvironment(final java.io.File host,
EnvironmentConfig config)
throws DatabaseException, java.io.FileNotFoundException
{
super(host, config);
isMaster = false;
}
boolean getIsMaster()
{
return isMaster;
}
public void setIsMaster(boolean isMaster)
{
this.isMaster = isMaster;
}
}
|