Skip to content

Conversation

jophde
Copy link
Contributor

@jophde jophde commented Aug 9, 2016

This PR implements the ProjectWatcher introduced in this PR in SST Java. It uses the same file cache pattern used by event handler and project watcher.

I just build 0.1.69 of SST Java locally and hooked up manually to my android repo. When we launch this will be built from maven. This is useful until the next version of SST Java is published.

try {
events.add(new Pair<>(itemId, new Event(new URL(url))));
} catch (MalformedURLException e) {
logger.error("Retreived a malformed event from storage", e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo Retrieved

@mikeproeng37
Copy link
Contributor

Looks good, just one question on whether saving to cache could be a block call

@jophde
Copy link
Contributor Author

jophde commented Aug 12, 2016

We should be doing file I/O off the main thread. Let me think about how this should work.

try {
userExperimentRecord = cache.load(getFileName());
} catch (FileNotFoundException e) {
logger.info("No persistent bucketer cache found");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

user experiment record

@mikeproeng37
Copy link
Contributor

LGTM, just two small things to address

@jophde jophde merged commit 88bf3f5 into master Aug 19, 2016
@jophde jophde deleted the josh/persistent-buckter branch October 11, 2016 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants