Package com.google.dataconnector.protocol.proto.SdcFrame

Examples of com.google.dataconnector.protocol.proto.SdcFrame.RegistrationRequestV4


                    getLogger()
                            .log(Level.WARNING,
                                    "Unable to find the SDC request associated to the received response");
                }
            } else if (frameInfo.getType() == FrameInfo.Type.REGISTRATION) {
                RegistrationRequestV4 registrationRequest = RegistrationRequestV4
                        .parseFrom(frameInfo.getPayload());

                if (getLogger().isLoggable(Level.FINE)) {
                    getLogger().log(
                            Level.FINE,
View Full Code Here


      // set resource keys in the protobuf
      final List<ResourceKey> resourceKeyList = createResourceKeys(regRequestBuilder);
      regRequestBuilder.addAllResourceKey(resourceKeyList);

      // finalize the building of the RegRequest
      final RegistrationRequestV4 regRequest = regRequestBuilder.build();

      // Send frame.
      LOG.info("Sending resources info\n" + regRequest.toString());
      frameSender.sendFrame(FrameInfo.Type.REGISTRATION, regRequest.toByteString());

      // store the resource keys
      sdcKeysManager.storeSecretKeys(regRequest.getResourceKeyList());
    } catch (IOException e) {
      throw new RegistrationException(e);
    }
  }
View Full Code Here

TOP

Related Classes of com.google.dataconnector.protocol.proto.SdcFrame.RegistrationRequestV4

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.