Package com.linkedin.databus.client.pub

Examples of com.linkedin.databus.client.pub.ClusterCheckpointPersistenceProvider


        {
            try
            {
                for (int p : _partitions)
                {
                    ClusterCheckpointPersistenceProvider cpProvider = new ClusterCheckpointPersistenceProvider(
                            p, _clusterConfig);
                    Checkpoint cp = new Checkpoint();
                    cp.setConsumptionMode(DbusClientMode.ONLINE_CONSUMPTION);
                    cp.setWindowOffset(-1);
                    cp.setWindowScn(scn);
                    if (_isLegacyCkptLocation)
                    {
                        cpProvider.storeCheckpointLegacy(_sources, cp);
                    }
                    else
                    {
                        cpProvider.storeCheckpoint(_sources, cp);
                    }
                }
            }
            catch (InvalidConfigException e)
            {
View Full Code Here


                    _partitions.size());
            try
            {
                for (int p : _partitions)
                {
                    ClusterCheckpointPersistenceProvider cpProvider = new ClusterCheckpointPersistenceProvider(
                            p, _clusterConfig);
                    if (_isLegacyCkptLocation)
                    {
                        list.put(p, cpProvider.loadCheckpointLegacy(_sources));
                    }
                    else
                    {
                        list.put(p, cpProvider.loadCheckpoint(_sources));
                    }
                }
            }
            catch (InvalidConfigException e)
            {
View Full Code Here

        {
            try
            {
                for (int p : _partitions)
                {
                    ClusterCheckpointPersistenceProvider cpProvider = new ClusterCheckpointPersistenceProvider(
                            p, _clusterConfig);
                    if (_isLegacyCkptLocation)
                    {
                        cpProvider.removeCheckpointLegacy(_sources);
                    }
                    else
                    {
                        cpProvider.removeCheckpoint(_sources);
                    }
                }
            }
            catch (InvalidConfigException e)
            {
View Full Code Here

                throws DatabusClusterUtilException
        {
            try
            {
                // this only works with new checkpoints
                ClusterCheckpointPersistenceProvider cpProvider = new ClusterCheckpointPersistenceProvider(
                        0, _clusterConfig);
                return cpProvider.getSourceNames();
            }
            catch (InvalidConfigException e)
            {
                throw new DatabusClusterUtilException(e.toString());
            }
View Full Code Here

  }

  protected CheckpointPersistenceProvider createCheckpointPersistenceProvider(DbusPartitionInfo partition)
      throws InvalidConfigException,ClusterCheckpointException
  {
    return new ClusterCheckpointPersistenceProvider(partition.getPartitionId(),_ckptPersistenceProviderConfig);
  }
View Full Code Here

TOP

Related Classes of com.linkedin.databus.client.pub.ClusterCheckpointPersistenceProvider

Copyright © 2018 www.massapicom. 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.