Package com.findwise.hydra

Source Code of com.findwise.hydra.FlowCheck

package com.findwise.hydra;

import java.io.IOException;

import com.findwise.hydra.local.HttpRemotePipeline;
import org.apache.http.HttpException;

import com.findwise.hydra.local.RemotePipeline;

public class FlowCheck {
 
  public FlowCheck() {
  }
 
  public void start() throws IOException, JsonException, HttpException {
    postDocuments(1000);
  }
 
  public void postDocuments(int numberToPost) throws JsonException, IOException, HttpException {

    RemotePipeline rp = new HttpRemotePipeline("insertStage");
    for(int i=0; i<numberToPost; i++) {
      rp.saveFull(LocalDocumentFactory.getRandomStringDocument("in", "id", "x", "y", "z", "a", "b", "c", "d", "e", "f"));
    }
  }
 
  public static void main(String[] args) throws Exception {
    FlowCheck fc = new FlowCheck();
    fc.start();
  }
}
TOP

Related Classes of com.findwise.hydra.FlowCheck

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.