public boolean readyToSend() { for (Endpoint endpoint : getChildren()) { if (endpoint.readyToSend()) { currentEndpoint = endpoint; return true; } } return false; }
public boolean readyToSend() { if (getContext().isState(EndpointContext.ST_OFF)) { return false; } for (Endpoint endpoint : getChildren()) { if (endpoint.readyToSend()) { currentEndpoint = endpoint; return true; } } return false; }
for (Endpoint childEndpoint : failoverEndpoint.getChildren()) { failoverElement.addChild(EndpointSerializer.getElementFromEndpoint(childEndpoint));
for (Endpoint childEndpoint : failoverEndpoint.getChildren()) { failoverElement.addChild(EndpointSerializer.getElementFromEndpoint(childEndpoint));
if (getChildren().isEmpty()) { informFailure(synCtx, SynapseConstants.ENDPOINT_FO_NONE_READY, "FailoverLoadbalance endpoint : " + getName() + " - no child endpoints"); for (Endpoint endpoint : getChildren()) { if (endpoint.readyToSend()) { foundEndpoint = true; currentEndpoint = getChildren().get(0); for (Endpoint endpoint : getChildren()) { if (endpoint.readyToSend()) { foundEndpoint = true;
List addresses = endpoint.getChildren(); assertEquals("There should be 3 leaf level address endpoints", addresses.size(), 3);
List children2 = failoverEndpoint.getChildren();
List addresses = endpoint.getChildren(); assertEquals("There should be 3 leaf level address endpoints", addresses.size(), 3);
List children2 = failoverEndpoint.getChildren();
if (getChildren().isEmpty()) { informFailure(synCtx, SynapseConstants.ENDPOINT_FO_NONE_READY, "FailoverLoadbalance endpoint : " + getName() + " - no child endpoints"); for (Endpoint endpoint : getChildren()) { if (endpoint.readyToSend()) { foundEndpoint = true; currentEndpoint = getChildren().get(0); for (Endpoint endpoint : getChildren()) { if (endpoint.readyToSend()) { foundEndpoint = true;