Examples of stage()


Examples of gov.nysenate.openleg.processors.DataProcessor.stage()

        Environment env = Application.getEnvironment();
        DataProcessor process = new DataProcessor();
        for (String task : tasks) {
            // TODO: With Java7 we can make this a switch case
            if (task.equals("stage")) {
                process.stage(env.getStagingDirectory(), env.getWorkingDirectory());
            }
            else if (task.equals("collate")) {
                process.collate(env.getWorkingDirectory());
            }
            else if (task.equals("ingest")) {
View Full Code Here

Examples of net.geco.control.GecoControl.stage()

  @Before
  public void setUp(){
    registry = Mockito.mock(Registry.class);
    Stage stage = Mockito.mock(Stage.class);
    GecoControl gecoControl = Mockito.mock(GecoControl.class);
    Mockito.when(gecoControl.stage()).thenReturn(stage);
    Mockito.when(stage.registry()).thenReturn(registry);
    runnerControl = new RunnerControl(gecoControl);   
  }
 
  @Test
View Full Code Here

Examples of net.geco.control.GecoControl.stage()

   * @throws java.lang.Exception
   */
  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    GecoControl belfieldGeco = new GecoControl("testData/belfield");
    belfieldStage = belfieldGeco.stage();
    belfieldResultBuilder = new ResultBuilder(belfieldGeco);
   
    GecoControl mullaghmeenGeco = new GecoControl("testData/mullaghmeen");
    mullaghmeenStage = mullaghmeenGeco.stage();
    mullaghmeenResultBuilder = new ResultBuilder(mullaghmeenGeco);
View Full Code Here

Examples of net.geco.control.GecoControl.stage()

    GecoControl belfieldGeco = new GecoControl("testData/belfield");
    belfieldStage = belfieldGeco.stage();
    belfieldResultBuilder = new ResultBuilder(belfieldGeco);
   
    GecoControl mullaghmeenGeco = new GecoControl("testData/mullaghmeen");
    mullaghmeenStage = mullaghmeenGeco.stage();
    mullaghmeenResultBuilder = new ResultBuilder(mullaghmeenGeco);

  }
 
  @Test
View Full Code Here

Examples of org.apache.mahout.cf.taste.impl.recommender.svd.ParallelSGDFactorizer.PreferenceShuffler.stage()

  public void testPreferenceShufflerWithSyntheticData() throws Exception {
    setUpSyntheticData();

    ParallelSGDFactorizer.PreferenceShuffler shuffler = new PreferenceShuffler(dataModel);
    shuffler.shuffle();
    shuffler.stage();

    FastByIDMap<FastByIDMap<Boolean>> checked = new FastByIDMap<FastByIDMap<Boolean>>();

    for (int i = 0; i < shuffler.size(); i++) {
      Preference pref=shuffler.get(i);
View Full Code Here

Examples of org.apache.mahout.cf.taste.impl.recommender.svd.ParallelSGDFactorizer.PreferenceShuffler.stage()

  public void testPreferenceShufflerWithSyntheticData() throws Exception {
    setUpSyntheticData();

    ParallelSGDFactorizer.PreferenceShuffler shuffler = new PreferenceShuffler(dataModel);
    shuffler.shuffle();
    shuffler.stage();

    FastByIDMap<FastByIDMap<Boolean>> checked = new FastByIDMap<FastByIDMap<Boolean>>();

    for (int i = 0; i < shuffler.size(); i++) {
      Preference pref=shuffler.get(i);
View Full Code Here

Examples of org.elasticsearch.index.gateway.SnapshotStatus.stage()

    @Override public SnapshotStatus currentSnapshotStatus() {
        SnapshotStatus snapshotStatus = this.currentSnapshotStatus;
        if (snapshotStatus == null) {
            return snapshotStatus;
        }
        if (snapshotStatus.stage() != SnapshotStatus.Stage.DONE || snapshotStatus.stage() != SnapshotStatus.Stage.FAILURE) {
            snapshotStatus.time(System.currentTimeMillis() - snapshotStatus.startTime());
        }
        return snapshotStatus;
    }
View Full Code Here

Examples of org.elasticsearch.index.gateway.SnapshotStatus.stage()

    @Override public SnapshotStatus currentSnapshotStatus() {
        SnapshotStatus snapshotStatus = this.currentSnapshotStatus;
        if (snapshotStatus == null) {
            return snapshotStatus;
        }
        if (snapshotStatus.stage() != SnapshotStatus.Stage.DONE || snapshotStatus.stage() != SnapshotStatus.Stage.FAILURE) {
            snapshotStatus.time(System.currentTimeMillis() - snapshotStatus.startTime());
        }
        return snapshotStatus;
    }
View Full Code Here

Examples of org.elasticsearch.index.gateway.SnapshotStatus.stage()

        if (request.snapshot) {
            IndexShardGatewayService gatewayService = indexService.shardInjector(request.shardId()).getInstance(IndexShardGatewayService.class);
            SnapshotStatus snapshotStatus = gatewayService.snapshotStatus();
            if (snapshotStatus != null) {
                GatewaySnapshotStatus.Stage stage;
                switch (snapshotStatus.stage()) {
                    case DONE:
                        stage = GatewaySnapshotStatus.Stage.DONE;
                        break;
                    case FAILURE:
                        stage = GatewaySnapshotStatus.Stage.FAILURE;
View Full Code Here

Examples of org.elasticsearch.index.shard.recovery.RecoveryStatus.stage()

            if (peerRecoveryStatus == null) {
                peerRecoveryStatus = peerRecoveryTarget.peerRecoveryStatus(indexShard.shardId());
            }
            if (peerRecoveryStatus != null) {
                PeerRecoveryStatus.Stage stage;
                switch (peerRecoveryStatus.stage()) {
                    case INIT:
                        stage = PeerRecoveryStatus.Stage.INIT;
                        break;
                    case INDEX:
                        stage = PeerRecoveryStatus.Stage.INDEX;
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.