Package com.linkedin.databus.client.pub

Examples of com.linkedin.databus.client.pub.FileSystemCheckpointPersistenceProvider$StaticConfig


    @Override
    public CheckpointPersistenceProvider createCheckpointPersistenceProvider(DbusPartitionInfo partition)
        throws InvalidConfigException
    {
      return new FileSystemCheckpointPersistenceProvider();
    }
View Full Code Here


      if (cp3Conf.getType() != CheckpointPersistenceStaticConfig.ProviderType.FILE_SYSTEM)
      {
        throw new RuntimeException("don't know what to do with cp3 type:" + cp3Conf.getType());
      }

      cp3 = new FileSystemCheckpointPersistenceProvider(cp3Conf.getFileSystem(), 2);
    }
    else if (null != _clientProps)
    {
      DatabusHttpClientImpl.Config clientConfBuilder =
          new DatabusHttpClientImpl.Config();
      ConfigLoader<DatabusHttpClientImpl.StaticConfig> configLoader =
          new ConfigLoader<DatabusHttpClientImpl.StaticConfig>(_propPrefix, clientConfBuilder);
      configLoader.loadConfig(_clientProps);

      DatabusHttpClientImpl.StaticConfig clientConf = clientConfBuilder.build();
      if (clientConf.getCheckpointPersistence().getType() !=
          CheckpointPersistenceStaticConfig.ProviderType.FILE_SYSTEM)
      {
        throw new RuntimeException("don't know what to do with cp3 type:" +
                                   clientConf.getCheckpointPersistence().getType());
      }

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

    List<String> sourceList = Arrays.asList(_sources);
    Checkpoint cpOld = null != cp3 ? cp3.loadCheckpoint(sourceList) : new Checkpoint();
View Full Code Here

      switch (getType())
      {
        case FILE_SYSTEM:
        LOG.info("Creating file-system checkpoint persistence provider");
        cpPersistenceProvider =
            new FileSystemCheckpointPersistenceProvider(getFileSystem(), _protocolVersion);
        break;
        case SHARED:
        LOG.info("Creating shared ZooKeeper-based checkpoint persistence provider");
        cpPersistenceProvider = new SharedCheckpointPersistenceProvider(groupMember, getSharedState());
        break;
View Full Code Here

TOP

Related Classes of com.linkedin.databus.client.pub.FileSystemCheckpointPersistenceProvider$StaticConfig

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.