Skip to content

Commit

Permalink
Minor stuff (apache#17)
Browse files Browse the repository at this point in the history
* Create pulsar-functions module (#1)

* Create pulsar-functions module

* rename `sdk` package to `api`

* Added the first cut of the Java interface for Pulsar functions (#2)

* Added join interface to Spawner.
  • Loading branch information
srkukarni authored and sijie committed Mar 4, 2018
1 parent 98d208d commit 5b0ed1b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ void run() throws Exception {
admin.getServiceUrl().toString());

spawner.start();

CountDownLatch latch = new CountDownLatch(1);
latch.await();
spawner.join();
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@ public void start() throws Exception {
// make sure the function class loader is accessible thread-locally
fnThread.setContextClassLoader(fnClassLoader);

// javaInstance = new JavaInstance(javaInstanceConfig);

// start the function thread
fnThread.start();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ public void start() throws Exception {
functionContainer.start();
}

public void join() throws Exception {
functionContainer.join();
}

private String createSubscriptionName() {
return "spawner-" + assignmentInfo.getFunctionConfig().getName() + "-" + assignmentInfo.getFunctionVersion()
+ "-" + assignmentInfo.getFunctionId();
Expand Down

0 comments on commit 5b0ed1b

Please sign in to comment.