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

Backport: error handling for unexpected error in DefaultRegistrationEngin (modified) #945

Merged
merged 8 commits into from
Dec 10, 2020

Commits on Dec 9, 2020

  1. Remove suppressWarning("deprecation")

    Too many "deprecation" will be hidden, we should probably live with some
    warning about backward compatibility.
    sbernard31 committed Dec 9, 2020
    Configuration menu
    Copy the full SHA
    1f34ca7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a60b898 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2020

  1. #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]>
    moznion authored and sbernard31 committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    1e9287f View commit details
    Browse the repository at this point in the history
  2. #933: Implement Destroyable, Startable and Stoppable for ObjectEnabler

    To call each interface method on corresponded `LwM2mObjectTree` method.
    
    Signed-off-by: moznion <[email protected]>
    moznion authored and sbernard31 committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    2d21d7c View commit details
    Browse the repository at this point in the history
  3. #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]>
    moznion authored and sbernard31 committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    aad536f View commit details
    Browse the repository at this point in the history
  4. #933: Add an interface LwM2mClientObserver2 to handle unexpected error

    This 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]>
    moznion authored and sbernard31 committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    9d5b405 View commit details
    Browse the repository at this point in the history
  5. #933: Call onUnexpectedError() when unexpected error occurred

    If 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]>
    moznion authored and sbernard31 committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    b242989 View commit details
    Browse the repository at this point in the history
  6. #933: destroy LeshanClient on unexpected error.

    Signed-off-by: moznion <[email protected]>
    Also-by: Simon Bernard <[email protected]>
    moznion authored and sbernard31 committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    6596442 View commit details
    Browse the repository at this point in the history