Files
Yasuhiro KIMURA 9678929700 Update to 18.1.40
2020-07-24 01:10:28 +09:00

49 lines
1.2 KiB
C#

/*-
* Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved.
*
* See the file EXAMPLES-LICENSE for license information.
*
*/
using System;
using System.Collections.Generic;
using System.Text;
using BerkeleyDB;
namespace excs_repquote
{
public class RepConfig
{
/* Constant values used in the RepQuote application. */
public static CacheInfo CACHESIZE = new CacheInfo(0, 10 * 1024 * 1024, 1);
public static int SLEEPTIME = 5000;
public static string progname = "RepQuoteExample";
/* Member variables containing configuration information. */
public AckPolicy ackPolicy;
public bool bulk; /* Whether bulk transfer should be performed. */
public string home; /* The home directory for rep files. */
public DbSiteConfig localSite;
public uint priority; /* Priority within the replication group. */
public List<DbSiteConfig> remoteSites;
public StartPolicy startPolicy;
public bool verbose;
public RepConfig()
{
ackPolicy = AckPolicy.QUORUM;
bulk = false;
home = "";
localSite = new DbSiteConfig();
priority = 100;
remoteSites = new List<DbSiteConfig>();
startPolicy = StartPolicy.ELECTION;
verbose = false;
}
}
public enum StartPolicy { CLIENT, ELECTION, MASTER };
}