1/*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 1997-2009 Oracle. All rights reserved. 5 * 6 * $Id$ 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 appFinished; 21 private boolean inClientSync; 22 private boolean isMaster; 23 24 public RepQuoteEnvironment(final java.io.File host, 25 EnvironmentConfig config) 26 throws DatabaseException, java.io.FileNotFoundException 27 { 28 super(host, config); 29 appFinished = false; 30 inClientSync = false; 31 isMaster = false; 32 } 33 34 boolean getAppFinished() 35 { 36 return appFinished; 37 } 38 public void setAppFinished(boolean appFinished) 39 { 40 this.appFinished = appFinished; 41 } 42 boolean getInClientSync() 43 { 44 return inClientSync; 45 } 46 public void setInClientSync(boolean inClientSync) 47 { 48 this.inClientSync = inClientSync; 49 } 50 boolean getIsMaster() 51 { 52 return isMaster; 53 } 54 public void setIsMaster(boolean isMaster) 55 { 56 this.isMaster = isMaster; 57 } 58} 59 60