Package org.apache.hama.ipc

Examples of org.apache.hama.ipc.WorkerProtocol.dispatch()


           
            WorkerProtocol worker = findGroomServer(ustus);
            Directive d1 = new Directive(currentGroomServerPeers(),
                new GroomServerAction[] { new KillTaskAction(ts.getTaskId()) });
           
            worker.dispatch(d1);
           
          }
         
        }
      } else {
View Full Code Here


        try {
          // dispatch() to the groom server
          Directive d1 = new Directive(groomServerManager
              .currentGroomServerPeers(),
              new GroomServerAction[] { new LaunchTaskAction(t) });
          worker.dispatch(d1);
        } catch (IOException ioe) {
          LOG.error("Fail to dispatch tasks to GroomServer "
              + this.stus.getGroomName(), ioe);
        }
      } else {
View Full Code Here

        try {
          // dispatch() to the groom server
          Directive d1 = new DispatchTasksDirective(groomServerManager
              .currentGroomServerPeers(), new GroomServerAction[] {
              new LaunchTaskAction(t)});
          worker.dispatch(d1);
        } catch (IOException ioe) {
          LOG.error("Fail to dispatch tasks to GroomServer "
              + this.stus.getGroomName(), ioe);
        }
      } else {
View Full Code Here

              WorkerProtocol worker = findGroomServer(tmpStatus);
              Directive d1 = new DispatchTasksDirective(
                  currentGroomServerPeers(),
                  new GroomServerAction[] { new KillTaskAction(ts.getTaskId()) });
              try {
                worker.dispatch(d1);
              } catch (IOException ioe) {
                throw new DirectiveException("Error when dispatching kill task"
                    + " action.", ioe);
              }
            }
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.