Package edu.berkeley.sparrow.thrift.SchedulerService

Examples of edu.berkeley.sparrow.thrift.SchedulerService.Client


      }
      launchedServerAlready = true;
    }

    for (int i = 0; i < NUM_CLIENTS; i++) {
      Client client = TClients.createBlockingSchedulerClient(
          sparrowSchedulerAddr.getAddress().getHostAddress(), sparrowSchedulerAddr.getPort(),
          60000);
      clients.add(client);
    }
    clients.peek().registerFrontend(app, Network.getIPAddress(new PropertiesConfiguration())
View Full Code Here


    return submitRequest(request);
  }

  public boolean submitRequest(TSchedulingRequest request) {
    try {
      Client client = clients.take();
      client.submitJob(request);
      clients.put(client);
    } catch (InterruptedException e) {
      LOG.fatal(e);
    } catch (TException e) {
      LOG.error("Thrift exception when submitting job: " + e.getMessage());
View Full Code Here

TOP

Related Classes of edu.berkeley.sparrow.thrift.SchedulerService.Client

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.