Register sliapi RPC implementation 07/37207/1
authorTimoney, Dan (dt5972) <dt5972@att.com>
Tue, 20 Mar 2018 18:00:22 +0000 (14:00 -0400)
committerTimoney, Dan (dt5972) <dt5972@att.com>
Tue, 20 Mar 2018 18:00:22 +0000 (14:00 -0400)
When porting sliapi to use blueprints, neglected to update sliapiProvider
to register itself as RPC implementor.

Change-Id: I653ccf4db737e8745715d5e4b07352045c9c9c5e
Issue-ID: CCSDK-217
Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
sliapi/provider/src/main/java/org/onap/ccsdk/sli/core/sliapi/sliapiProvider.java

index c3ad4ed..3ff2f52 100644 (file)
@@ -159,6 +159,8 @@ public class sliapiProvider implements AutoCloseable, SLIAPIService{
     public void initialize(){
         LOG.info( "Initializing provider for " + appName );
         //initialization code goes here.
+        rpcRegistration = rpcRegistry.addRpcImplementation(SLIAPIService.class, this);
+
         sdncStatusFile = System.getenv(SDNC_STATUS_FILE);
         LOG.info( "SDNC STATUS FILE = " + sdncStatusFile );
         LOG.info( "Initialization complete for " + appName );