Skip to content

Commit

Permalink
[hotfix] Make RestServerEndpoint#uploadDir protected
Browse files Browse the repository at this point in the history
  • Loading branch information
tillrohrmann committed Mar 21, 2018
1 parent 719abe3 commit 659479f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
import org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler;

import java.io.IOException;
import java.nio.file.Path;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executor;
Expand All @@ -52,8 +51,6 @@
*/
public class DispatcherRestEndpoint extends WebMonitorEndpoint<DispatcherGateway> {

private final Path uploadDir;

private WebMonitorExtension webSubmissionExtension;

public DispatcherRestEndpoint(
Expand All @@ -80,7 +77,6 @@ public DispatcherRestEndpoint(
leaderElectionService,
fatalErrorHandler);

uploadDir = endpointConfiguration.getUploadDir();
webSubmissionExtension = WebMonitorExtension.empty();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ public abstract class RestServerEndpoint implements AutoCloseableAsync {
private final String restBindAddress;
private final int restBindPort;
private final SSLEngine sslEngine;
private final Path uploadDir;
private final int maxContentLength;

protected final Path uploadDir;
protected final Map<String, String> responseHeaders;

private final CompletableFuture<Void> terminationFuture;
Expand Down

0 comments on commit 659479f

Please sign in to comment.