351352353354355356357358359360361
protected PasswordAuthentication getPasswordAuthentication() { try{ auth_mon.enter(); PasswordAuthentication res = getAuthentication( getRequestingPrompt(), getRequestingProtocol(),
775776777778779780781782783784785
{ List dispatch_now = null; try{ timer_mon.enter(); // if the list is full kick off a dispatch and reset the list if ( max_queue_size > 0 && max_queue_size == list.size()){
829830831832833834835836837838839
Object obj ) { Object res = null; try{ timer_mon.enter(); res = list.remove( obj )?obj:null; if ( res != null ){
876877878879880881882883884885886
dispatch() { List dispatch_list; try{ timer_mon.enter(); dispatch_list = list; list = new ArrayList();
637638639640641642643644645646647
// now inject any explicit sources addExplicitSources(); try{ potential_contacts_mon.enter(); lookup_complete[0] = true; }finally{
687688689690691692693694695696697
listener.reportActivity( getMessageText( "report.found", contact.getName())); } try{ potential_contacts_mon.enter(); outstanding[0]++; }finally{
714715716717718719720721722723724
listener.reportActivity( getMessageText( alive?"report.alive":"report.dead", contact.getName())); } try{ potential_contacts_mon.enter(); Object[] entry = new Object[]{ new Boolean( alive ), contact}; boolean added = false;
749750751752753754755756757758759
potential_contacts_mon.exit(); } }finally{ try{ potential_contacts_mon.enter(); outstanding[0]--; }finally{
785786787788789790791792793794795
final Object[] secondary_result = { null }; while( remaining > 0 ){ try{ potential_contacts_mon.enter(); if ( lookup_complete[0] && potential_contacts.size() == 0 && outstanding[0] == 0 ){
864865866867868869870871872873874
DistributedDatabaseContact contact; boolean live_contact; try{ potential_contacts_mon.enter(); // System.out.println( "rem=" + remaining + ",pot=" + potential_contacts.size() + ",out=" + outstanding[0] ); if ( potential_contacts.size() == 0 ){