Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OIA-2: Add service detectors api and sample detector #1

Merged
merged 3 commits into from Dec 6, 2018
Merged

Conversation

cgorantla
Copy link
Contributor

@cgorantla cgorantla commented Nov 19, 2018

Changes to service detecor API from provision:
removed setters, removed getIpMatch() as I see this is only used in LoopDetector so it may not be generic.
removed getServiceAttributes() as this is used only in WsManDetector.
service detector is always async in nature.

https://issues.opennms.org/browse/OIA-2

Copy link

@j-white j-white left a comment

Choose a reason for hiding this comment

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

Looks good.

I think we may use reflection for setting the detector parameters in the ServiceDetector instances - does this still work in this context?

Can we also add support for executing detectors? This would also us to test a detector as part of of health:check in the sample project.

*
* @return a new @{@link ServiceDetector}.
*/
T createDetector(Map<String, String> properties);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since now it is factory's responsibility to set bean properties, exposing it in Integration-API as well. Implementations can decide how to set those properties.

@cgorantla
Copy link
Contributor Author

@j-white Thanks for the review. I think I addressed all issues. Please take another look.

@cgorantla
Copy link
Contributor Author

Removed spring dependency and upgraded pom to 1.0.0-alpha2-SNAPSHOT

@j-white j-white merged commit 8550380 into master Dec 6, 2018
@j-white j-white deleted the oia-2 branch December 6, 2018 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants