public abstract class MindAppmasterServiceClient extends IntegrationAppmasterServiceClient<MindRpcMessageHolder> implements AppmasterMindScOperations
IntegrationAppmasterServiceClient
.Constructor and Description |
---|
MindAppmasterServiceClient() |
Modifier and Type | Method and Description |
---|---|
BaseResponseObject |
doMindRequest(BaseObject request) |
protected abstract BaseResponseObject |
getBaseResponseObject(RpcMessage<?> rpcMessage)
This method is called from
doMindRequest(BaseObject) to convert
the response content back to mind BaseResponseObject . |
MindRpcMessageHolder |
getPayload(RpcMessage<?> message)
This method is called from
IntegrationAppmasterServiceClient.get(RpcMessage) to
resolve the actual payload sent to Sprint Int Tcp channel. |
get, setRequestChannel, setResponseChannel
getConversionService, setConversionService
afterPropertiesSet, doStart, doStop, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, getYarnEventPublisher, isAutoStartup, isRunning, onInit, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, setYarnEventPublisher, start, stop, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
public BaseResponseObject doMindRequest(BaseObject request)
doMindRequest
in interface AppmasterMindScOperations
protected abstract BaseResponseObject getBaseResponseObject(RpcMessage<?> rpcMessage)
doMindRequest(BaseObject)
to convert
the response content back to mind BaseResponseObject
. This class
itself can't have enough knowledge to do the conversion so process
is left to implementor.rpcMessage
- the rpc messageBaseResponseObject
build from a RpcMessage
public MindRpcMessageHolder getPayload(RpcMessage<?> message)
IntegrationAppmasterServiceClient
IntegrationAppmasterServiceClient.get(RpcMessage)
to
resolve the actual payload sent to Sprint Int Tcp channel.
In this class we don't care what the payload content is, thus
implementor is responsible to define it.getPayload
in class IntegrationAppmasterServiceClient<MindRpcMessageHolder>
message
- the rpc message