File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
job-example/src/main/java/com/lts/job/example/api Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,10 @@ LTS 轻量级分布式任务调度框架(Light Task Schedule)
9595 taskTracker. setNodeGroup(" test_trade_TaskTracker" );
9696 taskTracker. setClusterName(" test_cluster" );
9797 taskTracker. setWorkThreads(20 );
98+ // taskTracker.addConfig("job.fail.store", "leveldb"); // 默认
99+ // taskTracker.addConfig("job.fail.store", "berkeleydb");
100+ // taskTracker.addConfig("job.fail.store", "rocksdb");
101+ // taskTracker.setLoadBalance("consistenthash");
98102 taskTracker. start();
99103 // 任务执行类
100104 public class TestJobRunner implements JobRunner {
@@ -119,6 +123,12 @@ LTS 轻量级分布式任务调度框架(Light Task Schedule)
119123 jobClient. setClusterName(" test_cluster" );
120124 jobClient. setRegistryAddress(" zookeeper://127.0.0.1:2181" );
121125 // jobClient.setRegistryAddress("redis://127.0.0.1:6379");
126+ // jobClient.addConfig("job.fail.store", "leveldb"); // 默认
127+ // jobClient.addConfig("job.fail.store", "berkeleydb");
128+ // jobClient.addConfig("job.fail.store", "rocksdb");
129+ // jobClient.setLoadBalance("consistenthash");
130+ jobClient. start();
131+
122132 // 提交任务
123133 Job job = new Job ();
124134 job. setTaskId(" 3213213123" );
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public static void testProtector() {
5959// jobClient.setFailStorePath(Constants.USER_HOME);
6060 jobClient .setJobFinishedHandler (new JobFinishedHandlerImpl ());
6161 jobClient .addMasterChangeListener (new MasterChangeListenerImpl ());
62- // jobClient.addConfig("job.fail.store", "leveldb");
62+ // jobClient.addConfig("job.fail.store", "leveldb"); // 默认
6363// jobClient.addConfig("job.fail.store", "berkeleydb");
6464// jobClient.addConfig("job.fail.store", "rocksdb");
6565 jobClient .addConfig ("job.submit.concurrency.size" , "3" );
You can’t perform that action at this time.
0 commit comments