/** * handles discovery request from client ands sends next active broker address */ @Override protected void handleLookup(CommandLookupTopic lookup) { checkArgument(state == State.Connected); if (LOG.isDebugEnabled()) { LOG.debug("Received Lookup from {}", remoteAddress); } sendLookupResponse(lookup.getRequestId()); }
@Override protected void handleLookup(CommandLookupTopic lookup) { final long requestId = lookup.getRequestId(); final boolean authoritative = lookup.getAuthoritative(); if (log.isDebugEnabled()) {
log.debug("Received Lookup from {}", clientAddress); long clientRequestId = lookup.getRequestId(); if (this.service.getLookupRequestSemaphore().tryAcquire()) { lookupRequests.inc();
public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic other) { if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic.getDefaultInstance()) return this; if (other.hasTopic()) { setTopic(other.getTopic()); } if (other.hasRequestId()) { setRequestId(other.getRequestId()); } if (other.hasAuthoritative()) { setAuthoritative(other.getAuthoritative()); } if (other.hasOriginalPrincipal()) { setOriginalPrincipal(other.getOriginalPrincipal()); } if (other.hasOriginalAuthData()) { setOriginalAuthData(other.getOriginalAuthData()); } if (other.hasOriginalAuthMethod()) { setOriginalAuthMethod(other.getOriginalAuthMethod()); } return this; }
public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic other) { if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic.getDefaultInstance()) return this; if (other.hasTopic()) { setTopic(other.getTopic()); } if (other.hasRequestId()) { setRequestId(other.getRequestId()); } if (other.hasAuthoritative()) { setAuthoritative(other.getAuthoritative()); } if (other.hasOriginalPrincipal()) { setOriginalPrincipal(other.getOriginalPrincipal()); } if (other.hasOriginalAuthData()) { setOriginalAuthData(other.getOriginalAuthData()); } if (other.hasOriginalAuthMethod()) { setOriginalAuthMethod(other.getOriginalAuthMethod()); } return this; }