use of org.apache.geode.distributed.internal.membership.gms.messages.JoinResponseMessage in project geode by apache.
the class GMSJoinLeave method recordViewRequest.
private void recordViewRequest(DistributionMessage request) {
logger.debug("Recording the request to be processed in the next membership view");
synchronized (viewRequests) {
viewRequests.add(request);
if (viewCreator != null && services.getMessenger().getClusterSecretKey() != null) {
if (request instanceof JoinRequestMessage) {
JoinRequestMessage jreq = (JoinRequestMessage) request;
// this will inform about cluster-secret key, as we have authenticated at this point
JoinResponseMessage response = new JoinResponseMessage(jreq.getSender(), services.getMessenger().getClusterSecretKey(), jreq.getRequestId());
services.getMessenger().send(response);
}
}
viewRequests.notifyAll();
}
}
Aggregations