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

Examples of com.google.dataconnector.protocol.proto.SdcFrame.HealthCheckInfo.toByteString()


                                            + 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) {
View Full Code Here


            .setSource(HealthCheckInfo.Source.CLIENT)
            .setTimeStamp(clock.currentTimeMillis())
            .setType(HealthCheckInfo.Type.REQUEST)
            .build();
        LOG.debug("Sending health check request");
        frameSender.sendFrame(SdcFrame.FrameInfo.Type.HEALTH_CHECK, hci.toByteString());
        sleep(serverSuppliedConf.getHealthCheckWakeUpInterval() * 1000);


        // Every send interval we check to see if we have timed out.  Sending is reliable as
        // it uses a large blocking queue to send frames.  Therefore we can re-use the send
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.