Skip to content

Commit

Permalink
[issue-135] Change the usage of ControllerImpl (#136)
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Zhou <[email protected]>
  • Loading branch information
crazyzhou committed Sep 30, 2020
1 parent e857f19 commit 62f9991
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 19 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ repositories {
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url "https://repository.apache.org/snapshots" }
maven { url "https://oss.jfrog.org/jfrog-dependencies" }
maven { url "https://oss.sonatype.org/content/repositories/iopravega-1089" }
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ slf4jApiVersion=1.7.25

# Version and base tags can be overridden at build time.
connectorVersion=0.8.0-SNAPSHOT
pravegaVersion=0.8.0-2540.5314cfd-SNAPSHOT
pravegaVersion=0.8.0

# flag to indicate if Pravega sub-module should be used instead of the version defined in 'pravegaVersion'
usePravegaVersionSubModule=false
Expand Down
2 changes: 1 addition & 1 deletion pravega
Submodule pravega updated 868 files
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@

package io.pravega.connectors.hadoop;

import io.pravega.client.control.impl.Controller;
import io.pravega.client.control.impl.ControllerImpl;
import io.pravega.client.control.impl.ControllerImplConfig;
import io.pravega.client.stream.EventStreamWriter;
import io.pravega.client.stream.Stream;
import io.pravega.client.stream.impl.ControllerImpl;
import io.pravega.client.stream.impl.ControllerImplConfig;
import io.pravega.client.stream.impl.StreamImpl;
import io.pravega.connectors.hadoop.utils.IntegerSerializer;
import io.pravega.connectors.hadoop.utils.SetupUtils;
Expand Down Expand Up @@ -46,7 +47,7 @@ public class PravegaInputFormatITCase extends ConnectorBaseITCase {
private static final SetupUtils SETUP_UTILS = new SetupUtils();

private ScheduledExecutorService executor;
private ControllerImpl controller = null;
private Controller controller = null;
private EventStreamWriter<Integer> writer;

@Before
Expand Down
14 changes: 0 additions & 14 deletions src/test/java/io/pravega/connectors/hadoop/utils/SetupUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
import io.pravega.client.segment.impl.Segment;
import io.pravega.client.stream.Stream;
import io.pravega.client.stream.StreamCut;
import io.pravega.client.stream.impl.Controller;
import io.pravega.client.stream.impl.ControllerImpl;
import io.pravega.client.stream.impl.ControllerImplConfig;
import io.pravega.client.stream.impl.DefaultCredentials;
import io.pravega.client.stream.impl.JavaSerializer;
import io.pravega.client.stream.impl.StreamCutImpl;
Expand Down Expand Up @@ -206,17 +203,6 @@ public PravegaClientConfig getPravegaConfig() {
.withTrustStore(trustStoreCertFile);
}

/**
* Create a controller facade for this cluster.
* @return The controller facade, which must be closed by the caller.
*/
public Controller newController() {
ControllerImplConfig config = ControllerImplConfig.builder()
.clientConfig(getClientConfig())
.build();
return new ControllerImpl(config, DEFAULT_SCHEDULED_EXECUTOR_SERVICE);
}

/**
* Create a {@link EventStreamClientFactory} for this cluster and scope.
*/
Expand Down

0 comments on commit 62f9991

Please sign in to comment.