Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 48d9ced0831e84506164db026ef0a240 > files > 123

db4.8-4.8.30-2mdv2010.2.x86_64.rpm

/*-
 * 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;
    }
}