/** * Replicate the <em>ASG status</em> updates to peer eureka nodes. If this * event is a replication from other nodes, then it is not replicated to * other nodes. * * @param asgName the asg name for which the status needs to be replicated. * @param newStatus the {@link ASGStatus} information that needs to be replicated. * @param isReplication true if this is a replication event from other nodes, false otherwise. */ @Override public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) { // If this is replicated from an other node, do not try to replicate again. if (isReplication) { return; } for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) { replicateASGInfoToReplicaNodes(asgName, newStatus, node); } }
/** * Replicate the <em>ASG status</em> updates to peer eureka nodes. If this * event is a replication from other nodes, then it is not replicated to * other nodes. * * @param asgName the asg name for which the status needs to be replicated. * @param newStatus the {@link ASGStatus} information that needs to be replicated. * @param isReplication true if this is a replication event from other nodes, false otherwise. */ @Override public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) { // If this is replicated from an other node, do not try to replicate again. if (isReplication) { return; } for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) { replicateASGInfoToReplicaNodes(asgName, newStatus, node); } }