Code Review
/
transportpce.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix Log message in OLM provider
[transportpce.git]
/
olm
/
src
/
main
/
java
/
org
/
opendaylight
/
transportpce
/
olm
/
OlmProvider.java
diff --git
a/olm/src/main/java/org/opendaylight/transportpce/olm/OlmProvider.java
b/olm/src/main/java/org/opendaylight/transportpce/olm/OlmProvider.java
index b283ef561ec2fcaaa472d99edb58e706686691b3..db2865167ea053f03ff0185692c4b163ccfe77dc 100644
(file)
--- a/
olm/src/main/java/org/opendaylight/transportpce/olm/OlmProvider.java
+++ b/
olm/src/main/java/org/opendaylight/transportpce/olm/OlmProvider.java
@@
-8,10
+8,10
@@
package org.opendaylight.transportpce.olm;
package org.opendaylight.transportpce.olm;
-import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.RpcRegistration;
-import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry;
+import org.opendaylight.mdsal.binding.api.RpcProviderService;
import org.opendaylight.transportpce.olm.service.OlmPowerService;
import org.opendaylight.transportpce.olm.service.OlmPowerService;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.olm.rev170418.TransportpceOlmService;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.olm.rev210618.TransportpceOlmService;
+import org.opendaylight.yangtools.concepts.ObjectRegistration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@
-20,19
+20,19
@@
import org.slf4j.LoggerFactory;
*/
public class OlmProvider {
private static final Logger LOG = LoggerFactory.getLogger(OlmProvider.class);
*/
public class OlmProvider {
private static final Logger LOG = LoggerFactory.getLogger(OlmProvider.class);
- private final RpcProvider
Registry rpcProviderRegistry
;
+ private final RpcProvider
Service rpcProviderService
;
private final OlmPowerService olmPowerService;
private final OlmPowerService olmPowerService;
- private
Rpc
Registration<TransportpceOlmService> olmRPCRegistration;
+ private
Object
Registration<TransportpceOlmService> olmRPCRegistration;
/**
* Instantiates a new olm provider.
* @param olmPowerService
* implementation of OlmService
/**
* Instantiates a new olm provider.
* @param olmPowerService
* implementation of OlmService
- * @param rpcProvider
Registry
- * the rpc provider
registry
+ * @param rpcProvider
Service
+ * the rpc provider
service
*/
*/
- public OlmProvider(final RpcProvider
Registry rpcProviderRegistry
, final OlmPowerService olmPowerService) {
- this.rpcProvider
Registry = rpcProviderRegistry
;
+ public OlmProvider(final RpcProvider
Service rpcProviderService
, final OlmPowerService olmPowerService) {
+ this.rpcProvider
Service = rpcProviderService
;
this.olmPowerService = olmPowerService;
}
this.olmPowerService = olmPowerService;
}
@@
-42,7
+42,7
@@
public class OlmProvider {
public void init() {
LOG.info("OlmProvider Session Initiated");
// Initializing Notification module
public void init() {
LOG.info("OlmProvider Session Initiated");
// Initializing Notification module
- olmRPCRegistration = rpcProvider
Registry.add
RpcImplementation(TransportpceOlmService.class,
+ olmRPCRegistration = rpcProvider
Service.register
RpcImplementation(TransportpceOlmService.class,
new OlmPowerServiceRpcImpl(this.olmPowerService));
}
new OlmPowerServiceRpcImpl(this.olmPowerService));
}
@@
-50,10
+50,10
@@
public class OlmProvider {
* Method called when the blueprint container is destroyed.
*/
public void close() {
* Method called when the blueprint container is destroyed.
*/
public void close() {
- LOG.info("
Renderer
Provider Closed");
+ LOG.info("
Olm
Provider Closed");
// Clean up the RPC service registration
if (olmRPCRegistration != null) {
olmRPCRegistration.close();
}
}
// Clean up the RPC service registration
if (olmRPCRegistration != null) {
olmRPCRegistration.close();
}
}
-}
\ No newline at end of file
+}