Package org.springframework.yarn.integration.ip.mind.binding

Examples of org.springframework.yarn.integration.ip.mind.binding.BaseResponseObject


  }

  @Override
  public RpcMessage<?> get(RpcMessage<?> message) {
    BaseObject baseObject = (BaseObject) message.getBody();
    BaseResponseObject baseResponseObject = jobRepositoryService.get(baseObject);
    return new GenericRpcMessage<BaseResponseObject>(baseResponseObject);
  }
View Full Code Here


  @Override
  public BaseResponseObject doMindRequest(BaseObject request) {
    RpcMessage<?> message = new GenericRpcMessage<BaseObject>(request);
    RpcMessage<?> rpcMessage = get(message);
    BaseResponseObject baseResponseObject = (BaseResponseObject) rpcMessage.getBody();
    return baseResponseObject;
  }
View Full Code Here

      log.debug("Converted message into base object: " + baseObject);
    }

    baseObject = interceptors.preRequest(baseObject);

    BaseResponseObject baseResponseObject;
    if(baseObject == null) {
      baseResponseObject = interceptors.handleRequest(baseObject);
    } else {
      baseResponseObject = jobRepositoryRemoteService.get(baseObject);
    }
View Full Code Here

     *
     * @param baseObject the base request object
     * @return the processed request if any, <code>null</code> if no processing
     */
    public BaseResponseObject handleRequest(BaseObject baseObject) {
      BaseResponseObject ret = null;
      for (JobRepositoryRemoteServiceInterceptor interceptor : interceptors) {
        ret = interceptor.handleRequest(baseObject);
        if(ret != null) {
          return ret;
        }
View Full Code Here

    assertNotNull(mindAppmasterServiceClient);

    assertThat(mindAppmasterService.getPort(), greaterThan(0));

    SimpleTestRequest request = new SimpleTestRequest();
    BaseResponseObject response = mindAppmasterServiceClient.doMindRequest(request);
    assertNotNull(response);
  }
View Full Code Here

  public void setJobExplorer(JobExplorer jobExplorer) {
    this.jobExplorer = jobExplorer;
  }

  public BaseResponseObject get(BaseObject request) {
    BaseResponseObject responseObj = null;
    log.info("Handling rpc request for type=" + request.getType());

    if (request.getType().equals("IsJobInstanceExistsReq")) {
      responseObj = handleIsJobInstanceExists((IsJobInstanceExistsReq)request);
    } else if (request.getType().equals("CreateJobExecutionReq")) {
View Full Code Here

    }

    MindAppmasterServiceClient client = (MindAppmasterServiceClient) getIntegrationServiceClient();
    PartitionedStepExecutionStatusReq req = new PartitionedStepExecutionStatusReq();
    req.stepExecution = JobRepositoryRpcFactory.convertStepExecutionType(stepExecution);
    BaseResponseObject doMindRequest = client.doMindRequest(req);
    log.info("got response for status update: " + doMindRequest);
  }
View Full Code Here

TOP

Related Classes of org.springframework.yarn.integration.ip.mind.binding.BaseResponseObject

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.