File tree 3 files changed +4
-13
lines changed
src/main/java/com/netflix/spectator/nflx
3 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 1
1
version_archaius1 =0.6.6
2
2
version_archaius =2.0.0-rc.8
3
3
version_aws =1.9.23
4
- version_iep =0.1.13.1
4
+ version_iep =0.1.16.4
5
5
version_jackson =2.5.2
6
6
version_log4j =2.2
7
7
version_ribbon =2.0.0
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ dependencies {
8
8
compile " com.google.inject:guice:3.0"
9
9
compile " com.netflix.archaius:archaius-core:$version_archaius1 "
10
10
compile " com.netflix.eureka:eureka-client:1.1.147"
11
+ compile " com.netflix.iep-shadow:iepshadow-iep-module-rxnetty:$version_iep "
11
12
compile " com.netflix.iep-shadow:iepshadow-iep-rxhttp:$version_iep "
12
13
testCompile " com.netflix.governator:governator:1.3.3"
13
14
}
Original file line number Diff line number Diff line change 16
16
package com .netflix .spectator .nflx ;
17
17
18
18
import com .google .inject .AbstractModule ;
19
- import com .google .inject .Provides ;
20
- import com .netflix .discovery .DiscoveryClient ;
21
- import iep .com .netflix .iep .http .EurekaServerRegistry ;
22
- import iep .com .netflix .iep .http .RxHttp ;
23
- import iep .com .netflix .iep .http .ServerRegistry ;
24
19
import com .netflix .spectator .api .ExtendedRegistry ;
25
20
import com .netflix .spectator .api .Registry ;
26
21
import com .netflix .spectator .api .Spectator ;
22
+ import iep .com .netflix .iep .rxnetty .RxNettyModule ;
27
23
28
24
/**
29
25
* Guice module to configure the appropriate bindings for running an application. Note that this
60
56
*/
61
57
public final class SpectatorModule extends AbstractModule {
62
58
@ Override protected void configure () {
63
- bind ( RxHttp . class ). asEagerSingleton ( );
59
+ install ( new RxNettyModule () );
64
60
bind (Plugin .class ).asEagerSingleton ();
65
61
bind (ExtendedRegistry .class ).toInstance (Spectator .registry ());
66
62
bind (Registry .class ).toInstance (Spectator .registry ());
67
63
}
68
64
69
- /** Returns an instance of a server registry based on eureka. */
70
- @ Provides
71
- public ServerRegistry getServerRegistry (DiscoveryClient client ) {
72
- return new EurekaServerRegistry (client );
73
- }
74
-
75
65
@ Override public boolean equals (Object obj ) {
76
66
return obj != null && getClass ().equals (obj .getClass ());
77
67
}
You can’t perform that action at this time.
0 commit comments