public class JobClient<T extends JobClientNode> extends com.lts.job.common.cluster.AbstractClientNode<JobClientNode>
Constructor and Description |
---|
JobClient() |
Modifier and Type | Method and Description |
---|---|
protected Response |
_submitJob(List<com.lts.job.common.domain.Job> jobs) |
protected com.lts.job.remoting.netty.NettyRequestProcessor |
getDefaultProcessor() |
void |
setJobFinishedHandler(JobFinishedHandler jobFinishedHandler)
设置任务完成接收器
|
Response |
submitJob(com.lts.job.common.domain.Job job) |
Response |
submitJob(List<com.lts.job.common.domain.Job> jobs) |
getNettyClientConfig, isServerEnable, nodeStart, nodeStop, setJobInfoSavePath, setNodeGroup, setWorkThreads
public Response submitJob(com.lts.job.common.domain.Job job)
job
- public Response submitJob(List<com.lts.job.common.domain.Job> jobs)
jobs
- protected com.lts.job.remoting.netty.NettyRequestProcessor getDefaultProcessor()
getDefaultProcessor
in class com.lts.job.common.cluster.AbstractClientNode<JobClientNode>
public void setJobFinishedHandler(JobFinishedHandler jobFinishedHandler)
jobFinishedHandler
- Copyright © 2014. All Rights Reserved.