cpPersistenceProvider =
new FileSystemCheckpointPersistenceProvider(getFileSystem(), _protocolVersion);
break;
case SHARED:
LOG.info("Creating shared ZooKeeper-based checkpoint persistence provider");
cpPersistenceProvider = new SharedCheckpointPersistenceProvider(groupMember, getSharedState());
break;
case EXISTING: cpPersistenceProvider = _existing; break;
case NONE: cpPersistenceProvider = null; break;
default: throw new InvalidConfigException("Unable to create persistence provider of type: " +