forked from datavane/tis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93f57a4
commit 190c369
Showing
14 changed files
with
1,265 additions
and
1,265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
/** | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.qlangtech.tis.exec.impl; | ||
|
||
import com.google.common.collect.Lists; | ||
import com.google.common.collect.Maps; | ||
import com.qlangtech.tis.TisZkClient; | ||
import com.qlangtech.tis.assemble.FullbuildPhase; | ||
import com.qlangtech.tis.cloud.ITISCoordinator; | ||
import com.qlangtech.tis.exec.ExecChainContextUtils; | ||
import com.qlangtech.tis.exec.ExecutePhaseRange; | ||
import com.qlangtech.tis.exec.IExecChainContext; | ||
//import com.qlangtech.tis.exec.IIndexMetaData; | ||
import com.qlangtech.tis.fs.ITISFileSystem; | ||
import com.qlangtech.tis.fullbuild.IFullBuildContext; | ||
import com.qlangtech.tis.fullbuild.phasestatus.PhaseStatusCollection; | ||
|
@@ -41,11 +41,12 @@ | |
import com.qlangtech.tis.sql.parser.TabPartitions; | ||
import com.qlangtech.tis.workflow.pojo.WorkFlowBuildHistory; | ||
import org.apache.commons.lang.StringUtils; | ||
import org.apache.solr.common.cloud.ZkStateReader; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.*; | ||
|
||
//import com.qlangtech.tis.exec.IIndexMetaData; | ||
|
||
/** | ||
* @author 百岁([email protected]) | ||
* @date 2015年12月15日 下午4:39:38 | ||
|
@@ -54,7 +55,7 @@ public class DefaultChainContext implements IExecChainContext { | |
|
||
private String ps; | ||
|
||
private TisZkClient zkClient; | ||
private ITISCoordinator zkClient; | ||
|
||
private ITISFileSystem indexBuildFileSystem; | ||
|
||
|
@@ -136,7 +137,7 @@ public void setTableDumpFactory(TableDumpFactory factory) { | |
// } | ||
|
||
//public void setIndexMetaData(IIndexMetaData indexMetaData) { | ||
// this.indexMetaData = indexMetaData; | ||
// this.indexMetaData = indexMetaData; | ||
//} | ||
|
||
@Override | ||
|
@@ -207,14 +208,14 @@ public <T> T getAttribute(String key) { | |
// } | ||
|
||
@Override | ||
public TisZkClient getZkClient() { | ||
public ITISCoordinator getZkClient() { | ||
if (this.zkClient == null) { | ||
throw new NullPointerException("zkClient can not null"); | ||
} | ||
return this.zkClient; | ||
} | ||
|
||
public void setZkClient(TisZkClient zkClient) { | ||
public void setZkClient(ITISCoordinator zkClient) { | ||
this.zkClient = zkClient; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.