cloudfoundry-community / snotel

A Java based Loggregator client.
Apache License 2.0
5 stars 5 forks source link

bearer expiration #6

Open poblin-orange opened 8 years ago

poblin-orange commented 8 years ago

Hi guys, nice component. I was able to setup easily a firehoze nozzle in a java bosh release. I had a question wrt the bearer authToken. On my cf deployment, its quite short. Do you think configuring firehose username password, and retrieving / refreshing the authToken should be in the snotel scope ? thks Pierre

mheath commented 8 years ago

Now that the official CF Java Client has a 2.0 release, I would recommend using its ReactorDopplerClient instead. It will automatically refresh the oauth token when needed. The new Java client also uses Reactor (instead of RxJava) which has much friendlier API, in my opinion.

This issue is probably a good excuse to update the README pointing users to https://github.com/cloudfoundry/cf-java-client and to deprecate the firehose support.

poblin-orange commented 8 years ago

thks for the advice. Looking ReactorDopplerClient, i see ContainersMetrics and recent log are ok. However, im not sure it can be used to build a full fledge firehose nozzle ?