public class RemotingClientDelegate extends Object
Constructor and Description |
---|
RemotingClientDelegate(com.lts.job.remoting.netty.NettyRemotingClient remotingClient) |
Modifier and Type | Method and Description |
---|---|
void |
changeStickyJobTrackerNode() |
com.lts.job.remoting.netty.NettyRemotingClient |
getNettyClient() |
Node |
getStickyJobTrackerNode() |
void |
invokeAsync(com.lts.job.remoting.protocol.RemotingCommand request,
com.lts.job.remoting.InvokeCallback invokeCallback)
异步调用
|
void |
invokeOneway(com.lts.job.remoting.protocol.RemotingCommand request)
单向调用
|
com.lts.job.remoting.protocol.RemotingCommand |
invokeSync(com.lts.job.remoting.protocol.RemotingCommand request)
同步调用
|
boolean |
isServerEnable() |
void |
registerDefaultProcessor(com.lts.job.remoting.netty.NettyRequestProcessor processor,
ExecutorService executor) |
void |
registerProcessor(int requestCode,
com.lts.job.remoting.netty.NettyRequestProcessor processor,
ExecutorService executor) |
void |
setServerEnable(boolean serverEnable) |
void |
shutdown() |
void |
start() |
public RemotingClientDelegate(com.lts.job.remoting.netty.NettyRemotingClient remotingClient)
public Node getStickyJobTrackerNode() throws JobTrackerNotFoundException
JobTrackerNotFoundException
public void changeStickyJobTrackerNode() throws JobTrackerNotFoundException
JobTrackerNotFoundException
public void start()
public com.lts.job.remoting.protocol.RemotingCommand invokeSync(com.lts.job.remoting.protocol.RemotingCommand request) throws com.lts.job.remoting.exception.RemotingCommandFieldCheckException, JobTrackerNotFoundException
request
- com.lts.job.remoting.exception.RemotingCommandFieldCheckException
JobTrackerNotFoundException
public void invokeAsync(com.lts.job.remoting.protocol.RemotingCommand request, com.lts.job.remoting.InvokeCallback invokeCallback) throws com.lts.job.remoting.exception.RemotingCommandFieldCheckException, JobTrackerNotFoundException
request
- invokeCallback
- com.lts.job.remoting.exception.RemotingCommandFieldCheckException
JobTrackerNotFoundException
public void invokeOneway(com.lts.job.remoting.protocol.RemotingCommand request) throws com.lts.job.remoting.exception.RemotingCommandFieldCheckException, JobTrackerNotFoundException
request
- com.lts.job.remoting.exception.RemotingCommandFieldCheckException
JobTrackerNotFoundException
public void registerProcessor(int requestCode, com.lts.job.remoting.netty.NettyRequestProcessor processor, ExecutorService executor)
public void registerDefaultProcessor(com.lts.job.remoting.netty.NettyRequestProcessor processor, ExecutorService executor)
public boolean isServerEnable()
public void setServerEnable(boolean serverEnable)
public void shutdown()
public com.lts.job.remoting.netty.NettyRemotingClient getNettyClient()
Copyright © 2014. All Rights Reserved.