-
Notifications
You must be signed in to change notification settings - Fork 407
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
Backport: error handling for unexpected error in DefaultRegistrationEngin (modified) #945
Commits on Dec 9, 2020
-
Remove suppressWarning("deprecation")
Too many "deprecation" will be hidden, we should probably live with some warning about backward compatibility.
Configuration menu - View commit details
-
Copy full SHA for 1f34ca7 - Browse repository at this point
Copy the full SHA 1f34ca7View commit details -
#933: Add new interfaces to core: Destroyable, Startable and Stoppable
Signed-off-by: moznion <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a60b898 - Browse repository at this point
Copy the full SHA a60b898View commit details
Commits on Dec 10, 2020
-
#933: Mark as deprecated for server.(Destroyable, Startable, Stoppable)
And make a suggestion to use interfaces that are in the `core` package. Signed-off-by: moznion <[email protected]> Also-by: Simon Bernard <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1e9287f - Browse repository at this point
Copy the full SHA 1e9287fView commit details -
#933: Implement Destroyable, Startable and Stoppable for ObjectEnabler
To call each interface method on corresponded `LwM2mObjectTree` method. Signed-off-by: moznion <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2d21d7c - Browse repository at this point
Copy the full SHA 2d21d7cView commit details -
#933: Implement Destroyable, Startable and Stoppable for LwM2mObjectTree
And call each interface's method at related method of `LeshanClient`; i.e. `start()`, `stop()` and `destroy()`. Signed-off-by: moznion <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for aad536f - Browse repository at this point
Copy the full SHA aad536fView commit details -
#933: Add an interface
LwM2mClientObserver2
to handle unexpected errorThis interface extends `LwM2mClientObserver` interface. And make `LwM2mClientObserverAdapter` and `LwM2mClientObserverDispatcher` implement that new interface. This doesn't break the backward compatibility because `LwM2mClientObserver2` is compatible with `LwM2mClientObserver` and each implementing class conceals the difference between `LwM2mClientObserver` and `LwM2mClientObserver2`. Signed-off-by: moznion <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9d5b405 - Browse repository at this point
Copy the full SHA 9d5b405View commit details -
#933: Call
onUnexpectedError()
when unexpected error occurredIf a task that are belong to `DefaultRegistrationEngine` raises unexpected `RuntimeException` and the `observer` member variable implements `LwM2mClientObserver2` (instead of `LwM2mClientObserver`), it calls `LwM2mClientObserver2#onUnexpectedError()` hook. The purpose of this hook gimmick is to shutdown the client application mainly. Signed-off-by: moznion <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b242989 - Browse repository at this point
Copy the full SHA b242989View commit details -
#933: destroy LeshanClient on unexpected error.
Signed-off-by: moznion <[email protected]> Also-by: Simon Bernard <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6596442 - Browse repository at this point
Copy the full SHA 6596442View commit details