Examples of call()


Examples of org.apache.hadoop.hbase.snapshot.ReferenceServerWALsTask.call()

    ForeignExceptionDispatcher listener = Mockito.mock(ForeignExceptionDispatcher.class);

    // reference all the files in the first server directory
    ReferenceServerWALsTask task = new ReferenceServerWALsTask(snapshot, listener, server1Dir,
        conf, fs);
    task.call();

    // reference all the files in the first server directory
    task = new ReferenceServerWALsTask(snapshot, listener, server2Dir, conf, fs);
    task.call();
View Full Code Here

Examples of org.apache.hadoop.hbase.snapshot.SnapshotTask.call()

      public Void call() {
        snapshotFailure("Injected failure", thrown);
        return null;
      }
    };
    fail.call();

    verify(error, Mockito.times(1)).receive(any(ForeignException.class));
  }

}
View Full Code Here

Examples of org.apache.hadoop.hbase.snapshot.TableInfoCopyTask.call()

      // 3. write the table info to disk
      LOG.info("Starting to copy tableinfo for offline snapshot: " +
      SnapshotDescriptionUtils.toString(snapshot));
      TableInfoCopyTask tableInfoCopyTask = new TableInfoCopyTask(this.monitor, snapshot, fs,
          FSUtils.getRootDir(conf));
      tableInfoCopyTask.call();
      monitor.rethrowException();
    } catch (Exception e) {
      // make sure we capture the exception to propagate back to the client later
      String reason = "Failed snapshot " + SnapshotDescriptionUtils.toString(snapshot)
          + " due to exception:" + e.getMessage();
View Full Code Here

Examples of org.apache.hadoop.ipc.Client.call()

    Invocation[] invocations = new Invocation[params.length];
    for (int i = 0; i < params.length; i++)
      invocations[i] = new Invocation(method, params[i]);
    Client client = CLIENTS.getClient(conf);
    try {
    Writable[] wrappedValues = client.call(invocations, addrs);
   
    if (method.getReturnType() == Void.TYPE) {
      return null;
    }
View Full Code Here

Examples of org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call()

      wc.localizeResources();
      assertEquals(ContainerState.LOCALIZED, wc.c.getContainerState());
      ContainerLaunch launcher = wc.launcher.running.get(wc.c.getContainerId());
      wc.killContainer();
      assertEquals(ContainerState.KILLING, wc.c.getContainerState());
      launcher.call();
      wc.drainDispatcherEvents();
      assertEquals(ContainerState.CONTAINER_CLEANEDUP_AFTER_KILL,
          wc.c.getContainerState());
      assertNull(wc.c.getLocalizedResources());
      verifyCleanupCall(wc);
View Full Code Here

Examples of org.apache.helix.messaging.handling.HelixTask.call()

    HelixStateTransitionHandler stHandler = new HelixStateTransitionHandler(stateModel, message,
        context, currentStateDelta, executor);
    HelixTask handler;
    handler = new HelixTask(message, context, stHandler, executor);
    handler.call();
    AssertJUnit.assertTrue(stateModel.stateModelInvoked);
    System.out.println("END TestCMTaskHandler.testInvocation() at "
        + new Date(System.currentTimeMillis()));
  }
View Full Code Here

Examples of org.apache.oozie.action.hadoop.DoAs.call()

                fs[0] = FileSystem.get(defaultConf);
                return null;
            }
        });
        doAs.setUser(getTestUser());
        doAs.call();
        fileSystem = fs[0];

        Path path = new Path(fileSystem.getWorkingDirectory(), "oozietests/" + getClass().getName() + "/" + getName());
        fsTestDir = fileSystem.makeQualified(path);
        System.out.println(XLog.format("Setting FS testcase work dir[{0}]", fsTestDir));
View Full Code Here

Examples of org.apache.oozie.command.bundle.BundleJobChangeXCommand.call()

     */
    @Override
    public void change(String jobId, String changeValue) throws BundleEngineException {
        try {
            BundleJobChangeXCommand change = new BundleJobChangeXCommand(jobId, changeValue);
            change.call();
        }
        catch (CommandException ex) {
            throw new BundleEngineException(ex);
        }
    }
View Full Code Here

Examples of org.apache.oozie.command.bundle.BundleJobResumeXCommand.call()

     */
    @Override
    public void resume(String jobId) throws BundleEngineException {
        BundleJobResumeXCommand resume = new BundleJobResumeXCommand(jobId);
        try {
            resume.call();
        }
        catch (CommandException ex) {
            throw new BundleEngineException(ex);
        }
    }
View Full Code Here

Examples of org.apache.oozie.command.bundle.BundleJobSuspendXCommand.call()

     */
    @Override
    public void suspend(String jobId) throws BundleEngineException {
        BundleJobSuspendXCommand suspend = new BundleJobSuspendXCommand(jobId);
        try {
            suspend.call();
        }
        catch (CommandException ex) {
            throw new BundleEngineException(ex);
        }
    }
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.