Register MXBean only during start 59/85059/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 11 Oct 2019 12:32:14 +0000 (14:32 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 11 Oct 2019 13:19:33 +0000 (13:19 +0000)
commit6d0313e289a3effaf60b9919a8febe789e96cdc0
tree526bf374eb17e4bab1770c450d66a6fc2a6816d9
parentd6875afc779570935fb6ff4df03f769cf89a7ae1
Register MXBean only during start

We should not be registering resources until we are started, this
fixes an exception seen in Genius UT.

Change-Id: I550b586f905ec95a06cc9aaec167eb584592ba46
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 73b088ee110766618a8728eed653b15cef896cf1)
opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/remote/rpc/registry/RpcRegistry.java