Skip to content

Commit

Permalink
properly handling exception
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardofl committed Apr 7, 2014
1 parent 1da5784 commit 001335d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ private void adaptValues() {
// Analyze the history of time consumed to perform the task in previous
// invocations, using InvokerHistory.
// If necessary, changes parameters to invoke the task,
// using TimeoutsAndTrials.
// using InvokerConfiguration.
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private List<T> selectInRoundRobinState(List<T> objects, R requirements, int obj
return this.roundRobinSelector.select(requirements, objectsQuantity);
}

private void waitNodesCreation() {
private void waitNodesCreation() throws NotSelectedException {

int c = 0;
while (objectsBeenCreated.get() > 0) {
Expand All @@ -125,6 +125,7 @@ private void waitNodesCreation() {
else
Thread.sleep(1000);
} catch (InterruptedException e) {
throw new NotSelectedException("Killed at sleeping");
}
c++;
}
Expand Down

0 comments on commit 001335d

Please sign in to comment.