com.alibaba.dts.client.ClientService Maven / Gradle / Ivy
package com.alibaba.dts.client;
import java.util.Map;
import com.alibaba.dts.client.executor.job.context.ClientContext;
import com.alibaba.dts.client.executor.job.processor.FailureJobProcessor;
import com.alibaba.dts.client.executor.job.processor.StopJobProcessor;
import com.alibaba.dts.common.exception.InitException;
import com.alibaba.edas.schedulerx.SchedulerXLogLevel;
public interface ClientService {
/**
* 初始化
*
*/
public void init() throws InitException;
public void initGroupId(String serviceGroup, String regionName, String serviceGroupId) throws Exception;
/**
* 远程通信服务线程数量
*
* remotingThreads
*/
public void setRemotingThreads(int remotingThreads) ;
/**
* 心跳间隔时间
*
* heartBeatIntervalTime
*/
public void setHeartBeatIntervalTime(long heartBeatIntervalTime) ;
/**
* 连接超时时间
*
* connectionTimeout
*/
public void setConnectionTimeout(long connectionTimeout) ;
/**
* 分组ID
*
* groupId
*/
public void setGroupId(String groupId) ;
/**
* ZK地址列表
*
* zkHosts
*/
public void setZkHosts(String zkHosts) ;
/**
* ZK根目录
*
* namespace
*/
public void setNamespace(String namespace) ;
/**
* ZK会话超时时间
*
* zkSessionTimeout
*/
public void setZkSessionTimeout(int zkSessionTimeout) ;
/**
* ZK连接超时时间
*
* zkConnectionTimeout
*/
public void setZkConnectionTimeout(int zkConnectionTimeout) ;
/**
* 队列大小
*
* queueSize
*/
public void setQueueSize(int queueSize) ;
/**
* 消费线程数量
*
* consumerThreads
*/
public void setConsumerThreads(int consumerThreads) ;
/**
* 消费线程数量Map
*
* consumerThreadsMap
*/
public void setConsumerThreadsMap(Map consumerThreadsMap) ;
/**
* 一次从服务端拉取的任务数量
*
* pageSize
*/
public void setPageSize(int pageSize) ;
/**
* 一次从服务端拉取的任务数量Map
*
* pageSizeMap
*/
public void setPageSizeMap(Map pageSizeMap) ;
/**
* 访问键
*
* accessKey
*/
public void setAccessKey(String accessKey) ;
public void setSecretKey(String secretKey) ;
/**
* 宕机重试
*
* crashRetry
*/
public void setCrashRetry(boolean crashRetry) ;
public void setZkHostsAutoChange(boolean zkHostsAutoChange) ;
/**
* 空队列暂停拉取间隔时间
*
* pullTaskListOverSleepTime
*/
public void setPullTaskListOverSleepTime(long pullTaskListOverSleepTime) ;
public void setFailureJobProcessorMap(Map failureJobProcessorMap) ;
public void setFinishLog(boolean finishLog) ;
public void setStopJobProcessor(StopJobProcessor stopJobProcessor) ;
public void setEveryTimeNew(boolean isEveryTimeNew) ;
public void setEnvironment(String environment) ;
public void setServiceGroup(String serviceGroup) ;
public void setServiceGroupId(String serviceGroupId) ;
public void setRegionName(String regionName) ;
public void setInnerDebug(int innerDebug) ;
public void setDomainName(String domainName) ;
public void setAutoInit(boolean autoInit) ;
public ClassLoader getCustomerClassLoader() ;
public void setCustomerClassLoader(ClassLoader customerClassLoader) ;
public SchedulerXLogLevel getExecuteLogLevel() ;
public void setExecuteLogLevel(SchedulerXLogLevel executeLogLevel) ;
public SchedulerXLogLevel getDefaultLogLevel() ;
public void setDefaultLogLevel(SchedulerXLogLevel defaultLogLevel) ;
/* public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException ;*/
public ClientContext getClientContext() ;
public void setNewInstance(boolean newInstance) ;
}