當前位置: 首頁>>代碼示例>>Java>>正文


Java DbBackup類代碼示例

本文整理匯總了Java中com.sleepycat.je.util.DbBackup的典型用法代碼示例。如果您正苦於以下問題:Java DbBackup類的具體用法?Java DbBackup怎麽用?Java DbBackup使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DbBackup類屬於com.sleepycat.je.util包,在下文中一共展示了DbBackup類的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: Lease

import com.sleepycat.je.util.DbBackup; //導入依賴的package包/類
public Lease(int id, long duration, DbBackup dbbackup) {
    super();
    this.dbBackup = dbbackup;
    this.id = id;
    Lease oldLease = leases.put(id, this);
    if (oldLease != null) {
        throw EnvironmentFailureException.unexpectedState
            ("Found an old lease for node: " + id);
    }
    leaseTimer.schedule(this, duration);
}
 
開發者ID:prat0318,項目名稱:dbms,代碼行數:12,代碼來源:FeederManager.java

示例2: terminate

import com.sleepycat.je.util.DbBackup; //導入依賴的package包/類
/**
 * Fetches the leased DbBackup instance and terminates the lease.
 *
 * @return the dbBackup instance, if the lease hasn't already been
 * terminated
 */
public synchronized DbBackup terminate() {
    if (dbBackup == null) {
        return null;
    }
    cancel();
    Lease l = leases.remove(id);
    assert(l == this);
    DbBackup saveDbBackup = dbBackup;
    dbBackup = null;
    return saveDbBackup;
}
 
開發者ID:prat0318,項目名稱:dbms,代碼行數:18,代碼來源:FeederManager.java

示例3: addDbBackup

import com.sleepycat.je.util.DbBackup; //導入依賴的package包/類
@Override
public boolean addDbBackup(DbBackup backup) {
    synchronized (backups) {
        if (backupProhibited) {
            return false;
        }
        assert backups.add(backup);
    }

    super.addDbBackup(backup);
    return true;
}
 
開發者ID:prat0318,項目名稱:dbms,代碼行數:13,代碼來源:RepImpl.java

示例4: removeDbBackup

import com.sleepycat.je.util.DbBackup; //導入依賴的package包/類
@Override
public void removeDbBackup(DbBackup backup) {
    synchronized (backups) {
        assert backups.remove(backup);
    }
    super.removeDbBackup(backup);
}
 
開發者ID:prat0318,項目名稱:dbms,代碼行數:8,代碼來源:RepImpl.java

示例5: invalidateBackups

import com.sleepycat.je.util.DbBackup; //導入依賴的package包/類
public void invalidateBackups(long fileNumber) {
    synchronized (backups) {
        for (DbBackup backup : backups) {
            backup.invalidate(fileNumber);
        }
    }
}
 
開發者ID:prat0318,項目名稱:dbms,代碼行數:8,代碼來源:RepImpl.java

示例6: enterBackupMode

import com.sleepycat.je.util.DbBackup; //導入依賴的package包/類
@Override
void enterBackupMode(boolean deleteOldLogFiles) throws Exception {
    // FIXME: If user specifies to deleteOldLogFiles, then all log files
    // that end with .del should be removed.
    DbBackup backup = new DbBackup(mEnv);
    backup.startBackup();
    mBackup = backup;
}
 
開發者ID:Carbonado,項目名稱:CarbonadoSleepycatJE,代碼行數:9,代碼來源:JE_Repository.java

示例7: exitBackupMode

import com.sleepycat.je.util.DbBackup; //導入依賴的package包/類
@Override
void exitBackupMode() throws Exception {
    DbBackup backup = mBackup;
    if (backup != null) {
        try {
            backup.endBackup();
        } finally {
            mBackup = null;
        }
    }
}
 
開發者ID:Carbonado,項目名稱:CarbonadoSleepycatJE,代碼行數:12,代碼來源:JE_Repository.java

示例8: addDbBackup

import com.sleepycat.je.util.DbBackup; //導入依賴的package包/類
/**
 * For replicated environments only; just return true for a standalone
 * environment.
 */
public boolean addDbBackup(@SuppressWarnings("unused") DbBackup backup) {
    incBackupCount();
    return true;
}
 
開發者ID:prat0318,項目名稱:dbms,代碼行數:9,代碼來源:EnvironmentImpl.java

示例9: getOpenDbBackup

import com.sleepycat.je.util.DbBackup; //導入依賴的package包/類
public synchronized DbBackup getOpenDbBackup() {
    return (dbBackup != null) && dbBackup.backupIsOpen() ?
            dbBackup :
            null;
}
 
開發者ID:prat0318,項目名稱:dbms,代碼行數:6,代碼來源:FeederManager.java

示例10: enterIncrementalBackupMode

import com.sleepycat.je.util.DbBackup; //導入依賴的package包/類
@Override
void enterIncrementalBackupMode(long lastLogNum, boolean deleteOldLogFiles) throws Exception {
    DbBackup backup = new DbBackup(mEnv, lastLogNum);
    backup.startBackup();
    mBackup = backup;
}
 
開發者ID:Carbonado,項目名稱:CarbonadoSleepycatJE,代碼行數:7,代碼來源:JE_Repository.java

示例11: removeDbBackup

import com.sleepycat.je.util.DbBackup; //導入依賴的package包/類
/**
 * For replicated environments only; do nothing for a standalone
 * environment.
 */
public void removeDbBackup(@SuppressWarnings("unused") DbBackup backup) {
    decBackupCount();
}
 
開發者ID:prat0318,項目名稱:dbms,代碼行數:8,代碼來源:EnvironmentImpl.java


注:本文中的com.sleepycat.je.util.DbBackup類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。