Skip to content

Commit

Permalink
Moved api/examples to api-java and java-examples (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
srkukarni authored and sijie committed Mar 4, 2018
1 parent f50a68e commit 850c1bd
Show file tree
Hide file tree
Showing 20 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pulsar-functions/pom.xml
Expand Up @@ -33,11 +33,11 @@

<modules>
<module>proto</module>
<module>api</module>
<module>api-java</module>
<module>runtime</module>
<module>worker</module>
<module>cli</module>
<module>api-examples</module>
<module>java-examples</module>
<module>runtime-benchmark</module>
</modules>

Expand Down
Expand Up @@ -124,7 +124,7 @@ class ProcessFunctionContainer implements FunctionContainer {
args.add(pulsarServiceUrl);
args.add("--max-buffered-tuples");
args.add(String.valueOf(maxBufferedTuples));
Map<String, String> userConfig = instanceConfig.getFunctionConfig().getUserConfig();
Map<String, String> userConfig = instanceConfig.getFunctionConfig().getUserConfigMap();
String userConfigString = "";
if (userConfig != null && !userConfig.isEmpty()) {
for (Map.Entry<String, String> entry : userConfig.entrySet()) {
Expand Down
Expand Up @@ -157,8 +157,8 @@ public Logger getLogger() {

@Override
public String getUserConfigValue(String key) {
if (config.getFunctionConfig().getUserConfig().containsKey(key)) {
return config.getFunctionConfig().getUserConfig().get(key);
if (config.getFunctionConfig().containsUserConfig(key)) {
return config.getFunctionConfig().getUserConfigOrDefault(key, null);
} else {
return null;
}
Expand Down

0 comments on commit 850c1bd

Please sign in to comment.