Package com.taobao.top.analysis.node.event

Examples of com.taobao.top.analysis.node.event.SendResultsResponseEvent


   
    JobTaskResult jobTaskResult2 = jobManager.getJobTaskResultsQueuePool().get(task.getJobName()).poll();
   
    Assert.assertEquals(jobTaskResult, jobTaskResult2);
   
    SendResultsResponseEvent sendResultsResponseEvent = (SendResultsResponseEvent)tunnel.getSlaveSide().poll();
   
    Assert.assertEquals("success", sendResultsResponseEvent.getResponse());
   
   
    //验证少了一个任务
    GetTaskRequestEvent event = new GetTaskRequestEvent("1234567");
    event.setRequestJobCount(3);
View Full Code Here


            });

            jobResponseEvent.getResultReadyFlag().await(
                    config.getMaxClientEventWaitTime(), TimeUnit.SECONDS);

            SendResultsResponseEvent responseEvent = (SendResultsResponseEvent) jobResponseEvent
                    .getResponse();

            if (responseEvent != null) {
                return responseEvent.getResponse();
            }
        } catch (Exception ex) {
            logger.error("sendJobTaskResults error,master address : " + master,ex);
        }
        return null;
View Full Code Here

   * 响应Slave提交任务结果的请求
   * @param 返回结果
   */
  public void echoSendJobTaskResults(String sequence,String response,Object channel)
  {
    SendResultsResponseEvent event = new SendResultsResponseEvent(sequence);
    event.setResponse(response);
    event.setChannel(channel);
   
    masterConnector.echoSendJobTaskResults(event);
  }
View Full Code Here

TOP

Related Classes of com.taobao.top.analysis.node.event.SendResultsResponseEvent

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.