/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2001, 2010 Oracle and/or its affiliates. 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; } }