Package edu.berkeley.sparrow.thrift

Examples of edu.berkeley.sparrow.thrift.TUserGroupInfo


  }

  private TEnqueueTaskReservationsRequest createTaskReservationRequest(
      int numTasks, TaskScheduler scheduler, String userId, int priority) {
    String idStr = Integer.toString(requestId++);
    TUserGroupInfo user = new TUserGroupInfo(userId, "group", priority);
    THostPort schedulerAddress = new THostPort("1.2.3.4", 52);
    return new TEnqueueTaskReservationsRequest(
        "appId", user, idStr, schedulerAddress, numTasks);
  }
View Full Code Here


        TTaskSpec spec = new TTaskSpec();
        spec.setTaskId(Integer.toString(taskId));
        spec.setMessage(message.array());
        tasks.add(spec);
      }
      TUserGroupInfo userInfo = new TUserGroupInfo("User", "*", 0);
     
      while(true) {
        client.submitJob(APPLICATION_ID, tasks, userInfo);
        tasksLaunched.addAndGet(tasks.size());
        LOG.info(tasksLaunched.get() + " tasks launched");
View Full Code Here

        lastLaunch = curLaunch;
        if (toWait == 0) {
          LOG.warn("Generated workload not keeping up with real time.");
        }
        List<TTaskSpec> tasks = generateJob(tasksPerJob, benchmarkId, benchmarkIterations);
        TUserGroupInfo user = new TUserGroupInfo();
        user.setUser("*");
        user.setGroup("*");
        TSchedulingRequest req = new TSchedulingRequest();
        req.setApp("testApp");
        req.setTasks(tasks);
        req.setUser(user);

View Full Code Here

    }

    @Override
    public void run() {
      long start = System.currentTimeMillis();
      TUserGroupInfo userInfo = new TUserGroupInfo(user.user, "*", user.priority);
      try {
        client.submitJob(APPLICATION_ID, request, userInfo);
        LOG.debug("Submitted job: " + request + " for user " + userInfo);
      } catch (TException e) {
        LOG.error("Scheduling request failed!", e);
View Full Code Here

    }

    @Override
    public void run() {
      long start = System.currentTimeMillis();
      TUserGroupInfo userInfo = new TUserGroupInfo(user.user, "*", 0);
      try {
        client.submitJob(APPLICATION_ID, request, userInfo);
        LOG.debug("Submitted job: " + request + " for user " + userInfo);
      } catch (TException e) {
        LOG.error("Scheduling request failed!", e);
View Full Code Here

    }

    String unconstrainedTaskId = "unconstrained test task";
    tasks.add(new TTaskSpec(unconstrainedTaskId, null, message));

    TUserGroupInfo user = new TUserGroupInfo(USER, GROUP, PRIORITY);
    TSchedulingRequest schedulingRequest = new TSchedulingRequest(APP_ID, tasks, user);

    // Create list of available backend nodes, with some additional nodes in additional to the
    // preferred ones.
    List<InetSocketAddress> backendNodes = new ArrayList<InetSocketAddress>(preferredNodes);
View Full Code Here

    }

    @Override
    public void run() {
      long start = System.currentTimeMillis();
      TUserGroupInfo userInfo = new TUserGroupInfo(user.user, "*", user.priority);
      try {
        client.submitJob(APPLICATION_ID, request, userInfo);
        LOG.debug("Submitted job: " + request + " for user " + userInfo);
      } catch (TException e) {
        LOG.error("Scheduling request failed!", e);
View Full Code Here

TOP

Related Classes of edu.berkeley.sparrow.thrift.TUserGroupInfo

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.