hfgiii/scala-hystrix-macros — pull request #1 by rzrelyea (2013-10-12 21:35:22+00:00)
Title: renamed example api files, added google api example

Hi Hugh,

I've added the google api calls and refactored the names of the example api classes. It seems that the only methods that are actually being wrapped by hystrix are method3 and method4. I don't think any of the google api methods are wrapped. Do you get those results as well?

I have some thoughts about next steps, but I want to be sure that the google api stuff is actually being wrapped in a hystrix command before I try to move forward...

Let me know if you'd like changes to this pull request.

Thanks! Rebecca

Here's the output of my tests:

[info] Running com.github.hfgiii.hystrix.Example
Method 1 result: hello world from method1(), instrumented
Method 2 result: 41
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
OMG!!
Method 3 result: 1
OMG!!
INSIDE FALLBACK!!!!!!!!!!!!!
Method 4 result: Huh?
height of Mount Everest: 8815.7158203125 meters
hystrix should use fallback: took 2 seconds