-
Notifications
You must be signed in to change notification settings - Fork 294
Adds cache TTL and routing/caching strategy (per plugin) #639
Conversation
5c8f3f5
to
ac036bf
Compare
@geauxvirtual, @danielscottt, @tiffanyfj: This should be ready to go now. |
return nil, serror.New(errors.New("unable to cast client to PluginCollectorClient")) | ||
} | ||
|
||
// get a metrics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/a metrics/mertrics
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"mertrics"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops.
ac036bf
to
1625f29
Compare
|
||
type SelectablePlugin interface { | ||
HitCount() int | ||
LastHit() time.Time | ||
String() string | ||
} | ||
|
||
type RoutingAndCaching interface { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think there will be other strategy types?
I guess what I'm getting at is why not strategy.Strategy
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Originally I had strategy.Strategy and felt it was better for readability to describe what kind of strategy was being provided.
I guess what I'm getting at is why not strategy.Strategy?
I lean towards being more descriptive. Refactoring the name in the future can happen when and if there is a need for another strategy type.
* Moves caching to the plugin pool (from plugin client) * Moves routing strategy to the plugin pool (from availableplugins) Resolves intelsdi-x#601 Partially addresses intelsdi-x#539
1625f29
to
a8ed3ae
Compare
LGTM |
Adds cache TTL and routing/caching strategy (per plugin)
Resolves #601
Partially addresses #539