.build()).build();
getFrameSender().sendFrame(FrameInfo.Type.REGISTRATION,
registrationResponse.toByteString());
} else if (frameInfo.getType() == Type.HEALTH_CHECK) {
HealthCheckInfo healthCheckResponse = HealthCheckInfo
.newBuilder()
.setSource(Source.SERVER)
.setTimeStamp(System.currentTimeMillis())
.setType(
com.google.dataconnector.protocol.proto.SdcFrame.HealthCheckInfo.Type.RESPONSE)
.build();
if (getLogger().isLoggable(Level.FINE)) {
getLogger()
.log(Level.FINE,
"SDC health check received: "
+ healthCheckResponse);
}
// Reply to the check
getFrameSender().sendFrame(Type.HEALTH_CHECK,
healthCheckResponse.toByteString());
} else if (getLogger().isLoggable(Level.FINE)) {
getLogger().log(Level.FINE,
"Unexpected SDC frame received: " + frameInfo);
}
} catch (InvalidProtocolBufferException e) {