⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 replicationhostaddress.java

📁 嵌入式数据库Berkeley DB-4.5.20源代码
💻 JAVA
字号:
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1997-2006 *	Oracle Corporation.  All rights reserved. * * $Id: ReplicationHostAddress.java,v 12.4 2006/09/07 21:24:29 alexg Exp $ */package com.sleepycat.db;import com.sleepycat.db.internal.DbConstants;public class ReplicationHostAddress{    public int port;    public String host;    public int eid;    private int status;    public boolean isPeer;    public ReplicationHostAddress()    {        this("localhost", 0, false, false);    }    public ReplicationHostAddress(String host, int port)    {        this(host, port, false, false);    }    public ReplicationHostAddress(String host, int port, boolean isPeer, boolean isConnected)    {        this.host = host;        this.port = port;        this.isPeer = isPeer;        this.status = isConnected ? DbConstants.DB_REPMGR_CONNECTED : 0;    }    public boolean isConnected() {        return ((this.status & DbConstants.DB_REPMGR_CONNECTED) != 0);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -