-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
Refactor WatchService #3004
Refactor WatchService #3004
Conversation
43bdc1a
to
74d29ef
Compare
e8fa89a
to
17e24a7
Compare
8251fdb
to
18a3211
Compare
f9c374e
to
101dbf1
Compare
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/openhab-4-0-snapshot-discussion/142322/22 |
@J-N-K What is the state here? I mean how much finished is this one? |
Code-wise complete, but I'm pretty sure there are some minor tweaks needed. |
51d6b88
to
8cf94be
Compare
8cf94be
to
a103d6b
Compare
I refactored it to a unit test. We want to test the |
@wborn This seems to be ready now. |
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.
It looks good in general! 👍
I do already have a few minor review comments. 🙂
@Activate | ||
@Override | ||
public void activate() { | ||
super.activate(); | ||
} | ||
|
||
@Deactivate | ||
@Override |
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.
Why remove @Override
if it still overrides the parent method?
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.
I have removed the methods, the activate
/deactivate
methods are called automatically.
.../org/openhab/core/automation/module/script/rulesupport/loader/AbstractScriptFileWatcher.java
Outdated
Show resolved
Hide resolved
...penhab/core/automation/module/script/rulesupport/loader/AbstractScriptDependencyTracker.java
Outdated
Show resolved
Hide resolved
.../org/openhab/core/automation/module/script/rulesupport/loader/AbstractScriptFileWatcher.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Jan N. Klug <github@klug.nrw>
c75f019
to
d3cf7c3
Compare
@wborn |
@openhab/core-maintainers Would be nice if this gets merged soon. Thanks! |
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.
Many thanks!
Signed-off-by: Jan N. Klug <github@klug.nrw> GitOrigin-RevId: 7f113c5
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/oh-4-1-1-startup-takes-more-than-an-hour/153310/64 |
Depends on #2994
This replaces the
AbstractWatchService
with a newWatchService
interface and implementation that can be consumed as OSGi service. It makes use of a library that does a lot of what we currently do (hashing, removing duplicate events) and also implements a native watch service on MacOS which decreases response time to file changes.@wborn Since we discussed this issue in the past, WDYT about the design?