Package com.yahoo.ycsb.rmi

Examples of com.yahoo.ycsb.rmi.SlaveRMIInterface


    Iterator<String> itr = keys.iterator();
   
    for (int i = 1; itr.hasNext(); i++) {
      String key = itr.next();
      try {
        SlaveRMIInterface loadgen = (SlaveRMIInterface) rmiClients.get(key).lookup(SlaveClient.REGISTRY_NAME);
        res = loadgen.setProperties(Config.getConfig());
        if (res != 0)
          System.out.println("Properties sent to Slave were NULL");
      } catch (NotBoundException e) {
        LOG.error("Could not send properties to " + key + " because slave was not bound\nRemoving slave node from setup");
        rmiClients.remove(key);
View Full Code Here


    Iterator<String> itr = keys.iterator();
   
    while (itr.hasNext()) {
      String key = itr.next();
      try {
        SlaveRMIInterface loadgen = (SlaveRMIInterface) rmiClients.get(key).lookup(SlaveClient.REGISTRY_NAME);
        res = loadgen.execute();
        if (res != 0)
          System.out.println("Error executing slave");
      } catch (NotBoundException e) {
        LOG.error("Could not run test with " + key + " because slave was not bound");
      }catch (RemoteException e) {
View Full Code Here

    Iterator<String> itr = keys.iterator();
   
    while (itr.hasNext()) {
      String key = itr.next();
      try {
        SlaveRMIInterface loadgen = (SlaveRMIInterface) rmiClients.get(key).lookup(SlaveClient.REGISTRY_NAME);
        loadgen.shutdown();
      } catch (NotBoundException e) {
        LOG.error("Could not run test with " + key + " because slave was not bound");
      }catch (RemoteException e) {
        LOG.error("Could not run test with " + key + " because slave is not running");
      }
View Full Code Here

  private SlaveClient() {
    lt = null;
   
    try {
            SlaveRMIInterface stub = (SlaveRMIInterface) UnicastRemoteObject.exportObject(this, 0);
            LocateRegistry.createRegistry(RMI_PORT);
            registry = LocateRegistry.getRegistry();
            registry.rebind(REGISTRY_NAME, stub);
        } catch (Exception e) {
            System.err.println("SlaveRMI interface cannot be created");
View Full Code Here

       
        while (itr.hasNext()) {
          HashMap<String, OneMeasurement> res = null;
          String key = itr.next();
          try {
            SlaveRMIInterface loadgen = (SlaveRMIInterface) rmiClients.get(key).lookup(SlaveClient.REGISTRY_NAME);
            if (loadgen.getStatus() != Thread.State.TERMINATED) {
              res = loadgen.getCurrentStats();
              if (res != null && !res.isEmpty())
                Measurements.getMeasurements().add(res);
              alldone = false;
            }
          } catch (NotBoundException e) {
View Full Code Here

TOP

Related Classes of com.yahoo.ycsb.rmi.SlaveRMIInterface

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.