Examples of loadCheckpoint()


Examples of com.linkedin.databus.client.pub.CheckpointPersistenceProvider.loadCheckpoint()

      cp3 = new FileSystemCheckpointPersistenceProvider(
          clientConf.getCheckpointPersistence().getFileSystem(), 2);
    }

    List<String> sourceList = Arrays.asList(_sources);
    Checkpoint cpOld = null != cp3 ? cp3.loadCheckpoint(sourceList) : new Checkpoint();
    Checkpoint cpNew;
    if (Action.PRINT == _action)
    {
      cpNew = updateCheckpoint(cpOld);
    }
View Full Code Here

Examples of com.linkedin.databus.client.pub.CheckpointPersistenceProvider.loadCheckpoint()

      cpNew = updateCheckpoint(cpOld);

      cp3.storeCheckpoint(sourceList, cpNew);

      //reread as a sanity check
      cpNew = cp3.loadCheckpoint(sourceList);
    }
    else if (Action.DELETE == _action)
    {
      cp3.removeCheckpoint(sourceList);
      cpNew = cp3.loadCheckpoint(sourceList);
View Full Code Here

Examples of com.linkedin.databus.client.pub.CheckpointPersistenceProvider.loadCheckpoint()

      cpNew = cp3.loadCheckpoint(sourceList);
    }
    else if (Action.DELETE == _action)
    {
      cp3.removeCheckpoint(sourceList);
      cpNew = cp3.loadCheckpoint(sourceList);
    }
    else
    {
      throw new RuntimeException("don't know what to do with action: " + _action);
    }
View Full Code Here

Examples of com.linkedin.databus.client.pub.CheckpointPersistenceProvider.loadCheckpoint()

                + sourceNames, ex);
        throw ex;
      }

      CheckpointPersistenceProvider provider = getCheckpointPersistenceProvider();
      Checkpoint cp = provider.loadCheckpoint(sourceNames);
      LOG.info("Bootstrap Producer SCN :" + scn + ", Checkpoint :" + cp);

      if (null != cp)
      {
        if (cp.getConsumptionMode() != DbusClientMode.ONLINE_CONSUMPTION)
View Full Code Here

Examples of com.linkedin.databus.client.pub.CheckpointPersistenceProvider.loadCheckpoint()

            {
              provider.removeCheckpoint(sourceNames);
              provider.storeCheckpoint(sourceNames, cp);

              // Check if persisted properly
              cp = provider.loadCheckpoint(sourceNames);
              if ((null == cp)
                  || (cp.getWindowScn() != scn)
                  || (cp.getWindowOffset() != -1)
                  || (cp.getConsumptionMode() != DbusClientMode.ONLINE_CONSUMPTION))
              {
View Full Code Here

Examples of com.linkedin.databus.client.pub.CheckpointPersistenceProvider.loadCheckpoint()

          {
            provider.removeCheckpoint(sourceNames);
            provider.storeCheckpoint(sourceNames, cp);

            // Check if persisted properly
            cp = provider.loadCheckpoint(sourceNames);
            if ((null == cp)
                || (cp.getWindowScn() != scn)
                || (cp.getWindowOffset() != -1)
                || (cp.getConsumptionMode() != DbusClientMode.ONLINE_CONSUMPTION))
            {
View Full Code Here

Examples of com.linkedin.databus.client.pub.ClusterCheckpointPersistenceProvider.loadCheckpoint()

                    {
                        list.put(p, cpProvider.loadCheckpointLegacy(_sources));
                    }
                    else
                    {
                        list.put(p, cpProvider.loadCheckpoint(_sources));
                    }
                }
            }
            catch (InvalidConfigException e)
            {
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.