Package com.sleepycat.db

Examples of com.sleepycat.db.ReplicationHostAddress


        gotListenAddress = false;
        totalSites = 0;
        priority = 100;
        verbose = false;
        currOtherHost = 0;
        thisHost = new ReplicationHostAddress();
        otherHosts = new Vector();
    }
View Full Code Here


        return gotListenAddress;
    }

    public void addOtherHost(String host, int port, boolean peer)
    {
        ReplicationHostAddress newInfo =
        new ReplicationHostAddress(host, port);
  RepRemoteHost newHost = new RepRemoteHost(newInfo, peer);
        otherHosts.add(newHost);
    }
View Full Code Here

                repmgrLocalSiteAddr.host, repmgrLocalSiteAddr.port, 0);
        }
  java.util.Iterator elems = repmgrRemoteSites.entrySet().iterator();
  while (elems.hasNext()){
      java.util.Map.Entry ent = (java.util.Map.Entry)elems.next();
      ReplicationHostAddress nextAddr =
    (ReplicationHostAddress)ent.getKey();
      Boolean isPeer = (Boolean)ent.getValue();
            dbenv.repmgr_add_remote_site(nextAddr.host, nextAddr.port,
                isPeer ? DbConstants.DB_REPMGR_PEER : 0);
        }
View Full Code Here

TOP

Related Classes of com.sleepycat.db.ReplicationHostAddress

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.