public class JobClient<T extends JobClientNode,Context extends AppContext> extends AbstractClientNode<JobClientNode,JobClientAppContext>
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOGGER |
protected JobClientMStatReporter |
stat |
remotingClientappContext, config, node, registry, started| Constructor and Description |
|---|
JobClient() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterStart() |
protected void |
afterStop() |
protected void |
beforeStart() |
protected void |
beforeStop() |
Response |
cancelJob(String taskId,
String taskTrackerNodeGroup)
取消任务
|
protected RemotingProcessor |
getDefaultProcessor() |
void |
setJobCompletedHandler(JobCompletedHandler jobCompletedHandler)
设置任务完成接收器
|
Response |
submitJob(Job job) |
Response |
submitJob(List<Job> jobs) |
protected Response |
submitJob(List<Job> jobs,
com.github.ltsopensource.jobclient.JobClient.SubmitType type) |
afterRemotingStart, afterRemotingStop, beforeRemotingStart, beforeRemotingStop, isServerEnable, remotingStart, remotingStop, setNodeGroupaddConfig, addMasterChangeListener, addNodeChangeListener, destroy, initConfig, setBindIp, setClusterName, setDataPath, setIdentity, setInvokeTimeoutMillis, setRegistryAddress, start, stopprotected static final Logger LOGGER
protected JobClientMStatReporter stat
protected void beforeStart()
beforeStart in class AbstractClientNode<JobClientNode,JobClientAppContext>protected void afterStart()
afterStart in class AbstractClientNode<JobClientNode,JobClientAppContext>protected void afterStop()
afterStop in class AbstractClientNode<JobClientNode,JobClientAppContext>protected void beforeStop()
beforeStop in class AbstractClientNode<JobClientNode,JobClientAppContext>public Response submitJob(Job job) throws JobSubmitException
JobSubmitExceptionprotected Response submitJob(List<Job> jobs, com.github.ltsopensource.jobclient.JobClient.SubmitType type) throws JobSubmitException
JobSubmitExceptionpublic Response submitJob(List<Job> jobs) throws JobSubmitException
JobSubmitExceptionprotected RemotingProcessor getDefaultProcessor()
getDefaultProcessor in class AbstractClientNode<JobClientNode,JobClientAppContext>public void setJobCompletedHandler(JobCompletedHandler jobCompletedHandler)
Copyright © 2016. All rights reserved.