Spring for Apache Hadoop

org.springframework.yarn.batch.repository
Interface JobRepositoryRemoteServiceInterceptor


public interface JobRepositoryRemoteServiceInterceptor

Interface for interceptors that are able to view and/or modify the messages when communication is handled with a service operating with BaseObject and BaseResponseObject.

Author:
Janne Valkealahti

Method Summary
 BaseResponseObject handleRequest(BaseObject baseObject)
          Handles request if at least one interceptor returned null from a preRequest(BaseObject) method.
 BaseResponseObject postRequest(BaseResponseObject baseResponseObject)
          Invoked after request is made using BaseObject and before BaseResponseObject is sent to further processing.
 BaseObject preRequest(BaseObject baseObject)
          Invoked after request is made using BaseObject.
 

Method Detail

preRequest

BaseObject preRequest(BaseObject baseObject)
Invoked after request is made using BaseObject. This allows modification of a request. If this method returns null, the interceptor chain will break indicating that one of the interceptor should handle the request in handleRequest(BaseObject) method.

Parameters:
baseObject - the request base object
Returns:
the base object

handleRequest

BaseResponseObject handleRequest(BaseObject baseObject)
Handles request if at least one interceptor returned null from a preRequest(BaseObject) method.

Parameters:
baseObject - the base object
Returns:
the base response object

postRequest

BaseResponseObject postRequest(BaseResponseObject baseResponseObject)
Invoked after request is made using BaseObject and before BaseResponseObject is sent to further processing. This allows modification of a response.

Parameters:
baseResponseObject - the response object
Returns:
the base response object

Spring for Apache Hadoop