/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2009 Oracle. All rights reserved. * */ using System; using System.Collections.Generic; using System.Text; using BerkeleyDB.Internal; namespace BerkeleyDB { /// /// A class representing a replication site used by Replication Manager /// public class RepMgrSite { /// /// Environment ID assigned by the replication manager. This is the same /// value that is passed to /// for the /// event. /// public int EId; /// /// The address of the site /// public ReplicationHostAddress Address; /// /// If true, the site is connected. /// public bool isConnected; internal RepMgrSite(DB_REPMGR_SITE site) { EId = site.eid; Address = new ReplicationHostAddress(site.host, site.port); isConnected = (site.status == DbConstants.DB_REPMGR_CONNECTED); } } }