Examples of recover()


Examples of org.apache.jackrabbit.oak.plugins.document.LastRevRecoveryAgent.recover()

            LastRevRecoveryAgent agent = new LastRevRecoveryAgent(dns);
            MongoMissingLastRevSeeker seeker = new MongoMissingLastRevSeeker(docStore);
            CloseableIterable<NodeDocument> docs = seeker.getCandidates(0);
            closer.register(docs);
            boolean dryRun = Arrays.asList(args).contains("dryRun");
            agent.recover(docs.iterator(), dns.getClusterId(), dryRun);
        } catch (Throwable e) {
            throw closer.rethrow(e);
        } finally {
            closer.close();
        }
View Full Code Here

Examples of org.apache.qpid.jms.Session.recover()

                        if (message.getJMSRedelivered())
                        {
                            setError(new Exception("Message marked as redelivered on what should be first delivery attempt"));
                        }

                        consumerSession.recover();
                    }
                    else if (count.get() == 2)
                    {
                        if (!message.getJMSRedelivered())
                        {
View Full Code Here

Examples of org.apache.qpid.server.model.ConfiguredObjectFactory.recover()

                }
                if (foundParents)
                {
                    iter.remove();
                    ConfiguredObject<?>[] parentArray = parents.toArray(new ConfiguredObject<?>[parents.size()]);
                    UnresolvedConfiguredObject<? extends ConfiguredObject> recovered =  factory.recover(record, parentArray);
                    Collection<ConfiguredObjectDependency<?>> dependencies = recovered.getUnresolvedDependencies();
                    if (dependencies.isEmpty())
                    {
                        updatesMade = true;
                        ConfiguredObject<?> resolved = recovered.resolve();
View Full Code Here

Examples of org.chaidb.db.log.LogRecord.recover()

        /* Allocate a transaction list for children or aborted page creates. */
        for (keyLsn = this.lastLsn; !keyLsn.equals(_INVALID_LSN); keyLsn = logRecord.getPrevLsn()) {
            logRecord = lnkTransactionManager.getLogManager().get(keyLsn);
            try {
                logRecord.recover(LogRecord.UNDO);
            } catch (ChaiDBException ie) {
                logger.error(ie);
                throw new ChaiDBException(ErrorCode.UNDO_FAILURE, ie);
            }

View Full Code Here

Examples of org.chaidb.db.log.LogRecord.recover()

                        currentProcess++;
                        if (currentProcess <= 5) System.out.print("\r" + (currentProcess + 5) + "0% completed.");
                    }
                }
                try {
                    cursorLogRecord.recover(LogRecord.REDO);
                } catch (ChaiDBException e) {
                    logger.error(e.toString());
                    continue;
                }
            }
View Full Code Here

Examples of org.chaidb.db.log.LogRecord.recover()

                        doUNDO = false;
                    }

                    if (doUNDO) {
                        try {
                            cursorLogRecord.recover(LogRecord.UNDO);
                        } catch (ChaiDBException ie11) {
                            logger.error(ie11);
                            continue;
                        }
                    } else { //push into redo stack
View Full Code Here

Examples of org.elasticsearch.index.gateway.IndexShardGatewayService.recover()

            if (shardRouting.relocatingNodeId() == null) {
                // we are the first primary, recover from the gateway
                // if its post api allocation, the index should exists
                boolean indexShouldExists = indexShardRouting.allocatedPostApi();
                IndexShardGatewayService shardGatewayService = indexService.shardInjector(shardId).getInstance(IndexShardGatewayService.class);
                shardGatewayService.recover(indexShouldExists, new IndexShardGatewayService.RecoveryListener() {
                    @Override public void onRecoveryDone() {
                        shardStateAction.shardStarted(shardRouting, "after recovery from gateway");
                    }

                    @Override public void onIgnoreRecovery(String reason) {
View Full Code Here

Examples of org.elasticsearch.index.shard.service.InternalIndexShard.recover()

    private RecoveryResponse recover(final StartRecoveryRequest request) {
        final InternalIndexShard shard = (InternalIndexShard) indicesService.indexServiceSafe(request.shardId().index().name()).shardSafe(request.shardId().id());
        logger.trace("[{}][{}] starting recovery to {}, mark_as_relocated {}", request.shardId().index().name(), request.shardId().id(), request.targetNode(), request.markAsRelocated());
        final RecoveryResponse response = new RecoveryResponse();
        shard.recover(new Engine.RecoveryHandler() {
            @Override public void phase1(final SnapshotIndexCommit snapshot) throws ElasticSearchException {
                long totalSize = 0;
                long existingTotalSize = 0;
                try {
                    StopWatch stopWatch = new StopWatch().start();
View Full Code Here

Examples of org.exist.storage.recovery.RecoveryManager.recover()

     * @param broker
     * @throws EXistException
     */
  public boolean runRecovery(DBBroker broker) throws EXistException {
    final RecoveryManager recovery = new RecoveryManager(broker, journal, forceRestart);
    return recovery.recover();
  }
 
    /**
     * Create a new transaction. Creates a new transaction id that will
     * be logged to disk immediately.
View Full Code Here

Examples of org.exolab.jms.tranlog.TransactionLog.recover()

        try {
            if (!_logs.isEmpty()) {
                Iterator iter = _logs.iterator();
                while (iter.hasNext()) {
                    TransactionLog log = (TransactionLog) iter.next();
                    HashMap records = log.recover();
                }
            }
        } catch (Exception exception) {
            throw new ResourceManagerException("Error in recover " +
                                               exception.toString());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.