• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/db-4.7.25.NC/examples_java/src/db/repquote/
1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 1997,2008 Oracle.  All rights reserved.
5 *
6 * $Id: RepQuoteEnvironment.java,v 1.6 2008/01/08 20:58:32 bostic Exp $
7 */
8
9package db.repquote;
10
11import com.sleepycat.db.*;
12
13/*
14 * A simple wrapper class, that facilitates storing some
15 * custom information with an Environment object.
16 * The information is used by the Replication callback (handleEvent).
17 */
18public class RepQuoteEnvironment extends Environment
19{
20    private boolean isMaster;
21
22    public RepQuoteEnvironment(final java.io.File host,
23        EnvironmentConfig config)
24        throws DatabaseException, java.io.FileNotFoundException
25    {
26        super(host, config);
27        isMaster = false;
28    }
29
30    boolean getIsMaster()
31    {
32        return isMaster;
33    }
34
35    public void setIsMaster(boolean isMaster)
36    {
37        this.isMaster = isMaster;
38    }
39}
40
41