Examples of recover()


Examples of javax.transaction.xa.XAResource.recover()

      {              
         xares = getNewXAResource();

         try
         {
            Xid[] xidsInDoubt = xares.recover(XAResource.TMSTARTRSCAN);

            if (xidsInDoubt != null)
            {
               log.info("There are " + xidsInDoubt.length + " xids in doubt");
View Full Code Here

Examples of javax.transaction.xa.XAResource.recover()

         finally
         {
            try
            {
               if (xares != null)
                  xares.recover(XAResource.TMENDRSCAN);
            }
            catch (XAException e)
            {
               log.error("Cannot finish recover scan on xares", e);
            }
View Full Code Here

Examples of net.timewalker.ffmq3.local.session.LocalSession.recover()

    }
   
    private RecoverResponse processRecover( RecoverQuery query ) throws JMSException
    {
        LocalSession session = lookupSession(query);
        session.recover(query.getDeliveredMessageIDs());
       
        return new RecoverResponse();
    }
   
    private CreateBrowserResponse processCreateBrowser( CreateBrowserQuery query ) throws JMSException
View Full Code Here

Examples of net.timewalker.ffmq3.storage.data.impl.journal.JournalRecovery.recover()

      File[] journalFiles = BlockBasedDataStoreTools.findJournalFiles(baseName, dataFolder);
      if (journalFiles.length > 0)
      {
        // Recovery
        JournalRecovery recovery = new JournalRecovery(baseName,journalFiles, allocationTableRandomAccessFile, dataRandomAccessFile);
        int newBlockCount = recovery.recover();
       
        // Update block count if necessary
        if (newBlockCount != -1)
            this.blockCount = newBlockCount;
       
View Full Code Here

Examples of nexj.core.rpc.ra.tx.PersistentJournal.recover()

     
     
     
      //Recovery
      PersistentJournal recoverJournal = PersistentJournal.makeJournal(tempDirectory);
      Xid[] recoveredXids = recoverJournal.recover();
     
      assertEquals(3, recoveredXids.length);
      Arrays.sort(recoveredXids);
      assertEquals(makeXid(1), recoveredXids[0]);
      assertEquals(makeXid(3), recoveredXids[1]);
View Full Code Here

Examples of org.apache.accumulo.server.tabletserver.log.SortedLogRecovery.recover()

        dirs.add(path);
      }
      // Recover
      SortedLogRecovery recovery = new SortedLogRecovery();
      CaptureMutations capture = new CaptureMutations();
      recovery.recover(extent, dirs, files, capture);
      return capture.result;
    } finally {
      local.delete(new Path(workdir), true);
    }
  }
View Full Code Here

Examples of org.apache.activemq.store.MessageStore.recover()

                String json = mapper.writeValueAsString(jsonMap);
                System.out.println(json);
                destRecord.setBindingData(new UTF8Buffer(json));
                manager.store_queue(destRecord);

                queue.recover(new MessageRecoveryListener() {
                    @Override
                    public boolean hasSpace() {
                        return true;
                    }
View Full Code Here

Examples of org.apache.activemq.store.TopicMessageStore.recover()

        PersistenceAdapter adapter = ((DestinationFactoryImpl)destinationFactory).getPersistenceAdapter();
        final List<Message> result = new ArrayList<Message>();
        try {
            ActiveMQTopic topic = new ActiveMQTopic(view.getDestinationName());
            TopicMessageStore store = adapter.createTopicMessageStore(topic);
            store.recover(new MessageRecoveryListener() {
                public boolean recoverMessage(Message message) throws Exception {
                    result.add(message);
                    return true;
                }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.FSImageTransactionalStorageInspector.LogGroup.recover()

    EditLogFile badLog = lg.logs.get(2);
    Mockito.doNothing().when(badLog).moveAsideCorruptFile();
    Mockito.doNothing().when(lg.logs.get(0)).finalizeLog();
    Mockito.doNothing().when(lg.logs.get(1)).finalizeLog();
   
    lg.recover();
   
    Mockito.verify(badLog).moveAsideCorruptFile();
    Mockito.verify(lg.logs.get(0)).finalizeLog();
    Mockito.verify(lg.logs.get(1)).finalizeLog();
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppImpl.recover()

        submitApplication(appState.getApplicationSubmissionContext(),
                        appState.getSubmitTime(), true, appState.getUser());
        // re-populate attempt information in application
        RMAppImpl appImpl = (RMAppImpl) rmContext.getRMApps().get(
                                                        appState.getAppId());
        appImpl.recover(state);
      }
      else {
        store.removeApplication(appState);
      }
    }
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.