Examples of checkPoint()


Examples of com.linkedin.databus.core.Checkpoint.checkPoint()

                                                                  connCollector);

        boolean resetConnection = false;
        if (eventsNum > 0) {
          _timeSinceEventsSec = System.currentTimeMillis();
          cp.checkPoint();
        } else {           // no need to checkpoint if nothing returned from relay
          // check how long it has been since we got some events
          if (_remoteExceptionHandler.getPendingEventSize(readChannel) >
               curState.getDataEventsBuffer().getMaxReadBufferCapacity())
          {
View Full Code Here

Examples of com.sleepycat.je.Environment.checkpoint()

            } while(cleaned > 0);
            if(cleaned > 0)
                System.out.println("Cleaned " + cleaned + " files.");
            CheckpointConfig cp = new CheckpointConfig();
            cp.setForce(true);
            environment.checkpoint(null);
            environment.compress();
            environment.sync();
            System.out.println("Cleaning, Checkpointing and compression completed.");
        }
View Full Code Here

Examples of com.sleepycat.je.Environment.checkpoint()

                    System.out.println("Files cleaned: " + nFiles);
                    if (nFiles == 0) {
                        break;
                    }
                }
                env.checkpoint(forceConfig);
                break;
            case COMPRESS:
                env.compress();
                break;
            case CHECKPOINT:
View Full Code Here

Examples of com.sleepycat.je.Environment.checkpoint()

                break;
            case COMPRESS:
                env.compress();
                break;
            case CHECKPOINT:
                env.checkpoint(forceConfig);
                break;
            case EVICT:
                preload(env, dbName);
                break;
            case REMOVEDB:
View Full Code Here

Examples of com.sleepycat.je.XAEnvironment.checkpoint()

                db.put(txn, Utils.entry(j), Utils.entry(0));
            }
            db.put(txn, Utils.entry(0), Utils.entry(1));

            /* Must checkpoint to generate BINDeltas. */
            env.checkpoint(forceCheckpoint);

            /* Delete everything but the last LN to cause IN deletion. */
            for (int j = 0; j < N_ENTRIES - 1; j += 1) {
                db.delete(txn, Utils.entry(j));
            }
View Full Code Here

Examples of com.sun.grid.jgrid.Job.checkpoint()

     
      throw new CommandFailedException (jobId, "No such job");
    }
    else if (job.getState () == Job.RUNNING) {
      try {
        job.checkpoint ();
       
        log.fine ("Job has been checkpointed: " + jobId);
      }
      catch (NotInterruptableException e) {
        log.finer ("Checkpoint command failed for job " + jobId + ": Job cannot be interrupted");
View Full Code Here

Examples of gnu.testlet.TestHarness.checkPoint()

        public void insertUpdate (DocumentEvent e)
        {
          Element root = e.getDocument().getDefaultRootElement();
          DocumentEvent.ElementChange ec = e.getChange(root);               
          harness2.checkPoint ("insertUpdate without adding children");
          if (ec != null)
            harness2.fail("Element Change should be null");
        }

        public void removeUpdate (DocumentEvent e)
View Full Code Here

Examples of gnu.testlet.TestHarness.checkPoint()

        public void removeUpdate (DocumentEvent e)
        {
          Element root = e.getDocument().getDefaultRootElement();
          DocumentEvent.ElementChange ec = e.getChange(root);               
          harness2.checkPoint ("removeUpdate without removing children");
          if (ec != null)
            harness2.fail("ElementChange should be null");
        }
      });
View Full Code Here

Examples of gnu.testlet.TestHarness.checkPoint()

        {
          Element root = e.getDocument().getDefaultRootElement();
          DocumentEvent.ElementChange ec = e.getChange(root);               
          Element[] childrenAdded = ec.getChildrenAdded();
          Element[] childrenRemoved = ec.getChildrenRemoved();
          harness2.checkPoint("insert update children added");
          harness2.check(childrenAdded.length == 4);
          harness2.check(childrenAdded[0].getStartOffset() == 0);
          harness2.check(childrenAdded[0].getEndOffset() == 36);
          harness2.check(childrenAdded[1].getStartOffset() == 36);
          harness2.check(childrenAdded[1].getEndOffset() == 97);
View Full Code Here

Examples of gnu.testlet.TestHarness.checkPoint()

          harness2.check(childrenAdded[2].getStartOffset() == 97);
          harness2.check(childrenAdded[2].getEndOffset() == 134);
          harness2.check(childrenAdded[3].getStartOffset() == 134);
          harness2.check(childrenAdded[3].getEndOffset() == 176);

          harness2.checkPoint("insert update children removed");
          harness2.check(childrenRemoved.length == 1);
          harness2.check(childrenRemoved[0].getStartOffset() == 0);
          harness2.check(childrenRemoved[0].getEndOffset() == 176);
        }
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.