public void resetStats() { num_heartbeats=num_suspect_events=0; suspect_history.removeAll(); }
public void resetStats() { num_heartbeats_sent=num_heartbeats_received=num_suspect_events=0; suspect_history.removeAll(); }
public void resetStats() { super.resetStats(); num_blockings=0; num_credit_responses_sent=num_credit_responses_received=num_credit_requests_received=num_credit_requests_sent=0; total_time_blocking=0; last_blockings.removeAll(); }
public void resetStats() { super.resetStats(); num_views=0; prev_views.removeAll(); }
public void resetStats() { super.resetStats(); num_suspect_events=0; suspect_history.removeAll(); }
public void resetStats() { super.resetStats(); num_blockings=total_block_time=num_replenishments_received=num_credit_requests_sent=num_bytes_sent=0; num_replenishments_sent=num_credit_requests_received=0; blockings.removeAll(); }
public void stop() { view_handler.stop(true); if(impl != null) impl.stop(); if(prev_members != null) prev_members.removeAll(); }
protected Object handleDownEvent(Event evt) { Object ret=super.handleDownEvent(evt); if(evt.getType() == Event.VIEW_CHANGE) { suspected_mbrs.removeAll(); View v=(View)evt.getArg(); Vector tmp_mbrs=v != null? v.getMembers() : null; if(tmp_mbrs != null) { retainAll(tmp_mbrs); // remove all connections from the ConnectionTable which are not members } } else if(evt.getType() == Event.UNSUSPECT) { suspected_mbrs.removeElement(evt.getArg()); } return ret; } }
@Override public Object down(Event evt) { Object retval = super.down(evt); switch (evt.getType()) { case Event.VIEW_CHANGE: for (Address logical_addr : view.getMembersRaw()) { PhysicalAddress physical_addr = (PhysicalAddress) down_prot .down(new Event(Event.GET_PHYSICAL_ADDRESS, logical_addr)); if (physical_addr != null) { discovered_hosts.addIfAbsent(physical_addr); } } break; case Event.SUSPECT: Collection<Address> addresses = evt.getArg() instanceof Address ? Collections.singletonList(evt.arg()) : evt.arg(); discovered_hosts.removeAll(addresses); break; case Event.ADD_PHYSICAL_ADDRESS: Tuple<Address, PhysicalAddress> tuple = evt.getArg(); PhysicalAddress physical_addr = tuple.getVal2(); if (physical_addr != null) discovered_hosts.addIfAbsent(physical_addr); break; } return retval; }