Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
APEXMALHAR-2397 #resolve Removing DAG.GATEWAY_CONNECT_ADDRESS which i…
Browse files Browse the repository at this point in the history
…s causing evaluation failures during apex get-app-package-info call
  • Loading branch information
sashadt committed Jun 8, 2017
1 parent fc234b1 commit 0d0e448
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
*/
package org.apache.apex.examples.pi;

import java.net.URI;

import org.apache.commons.lang.StringUtils;
import org.apache.hadoop.conf.Configuration;

import com.datatorrent.api.DAG;
Expand Down Expand Up @@ -100,14 +97,6 @@ public void populateDAG(DAG dag, Configuration conf)

dag.addStream("rand_calc", rand.integer_data, calc.input).setLocality(locality);

String gatewayAddress = dag.getValue(DAG.GATEWAY_CONNECT_ADDRESS);

if (StringUtils.isEmpty(gatewayAddress)) {
throw new RuntimeException("Error: No GATEWAY_CONNECT_ADDRESS");
}

URI uri = URI.create("ws://" + gatewayAddress + "/pubsub");

AppDataSnapshotServerMap snapshotServer = dag.addOperator("SnapshotServer", new AppDataSnapshotServerMap());

String snapshotServerJSON = SchemaUtils.jarResourceFileToString(SNAPSHOT_SCHEMA);
Expand All @@ -120,8 +109,6 @@ public void populateDAG(DAG dag, Configuration conf)

PubSubWebSocketAppDataResult wsResult = dag.addOperator("QueryResult", new PubSubWebSocketAppDataResult());

wsQuery.setUri(uri);
wsResult.setUri(uri);
Operator.InputPort<String> queryResultPort = wsResult.input;

NamedValueList<Object> adaptor = dag.addOperator("adaptor", new NamedValueList<Object>());
Expand Down

0 comments on commit 0d0e448

Please sign in to comment.