public static ViewData create(View remote_view, View global_view) { Map<Address,String> tmp=NameCache.getContents(); return new ViewData(remote_view, global_view, tmp); }
@ManagedOperation public void suspect(String suspected_member) { if(suspected_member == null) return; Map<Address,String> contents=NameCache.getContents(); for(Map.Entry<Address,String> entry: contents.entrySet()) { String logical_name=entry.getValue(); if(Objects.equals(logical_name, suspected_member)) { Address suspect=entry.getKey(); if(suspect != null) up(new Event(Event.SUSPECT, Collections.singletonList(suspect))); } } }
for( Map.Entry<Address, String> entry : NameCache.getContents().entrySet() ) { if( nodeName.equals(entry.getValue()) ){ log.debug("[channel: %s] Found name: <%s> for address: <%s>", entry.getValue(), entry.getKey().toString());
public static ViewData create(View remote_view, View global_view) { Map<Address,String> tmp=NameCache.getContents(); return new ViewData(remote_view, global_view, tmp); }
@ManagedOperation public void suspect(String suspected_member) { if(suspected_member == null) return; Map<Address,String> contents=NameCache.getContents(); for(Map.Entry<Address,String> entry: contents.entrySet()) { String logical_name=entry.getValue(); if(Objects.equals(logical_name, suspected_member)) { Address suspect=entry.getKey(); if(suspect != null) up(new Event(Event.SUSPECT, Collections.singletonList(suspect))); } } }
for( Map.Entry<Address, String> entry : NameCache.getContents().entrySet() ) { if( nodeName.equals(entry.getValue()) ){ log.debug("[channel: %s] Found name: <%s> for address: <%s>", entry.getValue(), entry.getKey().toString());