computingsNodes.set( i , _new ) ;
return 0 ;
}
-
- System.err.println( "Dead computing client not found. Unable to replace it!" ) ;
}
+
+ System.err.println( "Dead computing client not found. Unable to replace it!" ) ;
+ return 1 ;
}
+ System.err.println( "Dead or new computing client is null! Unable to replace one of them!" ) ;
+
return 1 ;
}
if( computingClients.get( i ).getClient().getIP().equalsIgnoreCase( _ip ) )
{
computingClients.get( i ).setLastSave( _saveName ) ;
- System.out.println( "Save name successfully changed on " + _ip ) ;
+ System.out.println( "Save name successfully changed on " + computingClients.get( i ).getClient().getName() ) ;
return 0 ;
}
}
+
+ System.err.println( "Unable to found computing client with IP " + _ip + "!" ) ;
+ return 1 ;
}
+ System.err.println( "Unable to change save name. IP or save name empty ! (IP: " + _ip + " ; save name: " + _saveName +")" ) ;
+
return 1 ;
}
if( applications.size() > 0 && _ip != null && _ip.length() > 0 )
{
System.out.println( "Client " + _ip + " has finished to restart ("+applications.get( ind ).getComputingClients().size()+") ... " ) ;
- if( (System.currentTimeMillis() - applications.get( ind ).getLastSaveDate()) > save_interleave )
+// if( (System.currentTimeMillis() - applications.get( ind ).getLastSaveDate()) > save_interleave )
{
// Has it already finished?
for( int i = 0 ; i < applications.get( ind ).getComputingClients().size() ; i++ )
}
}
- // Is every body ok?
+ // Is everybody ok?
boolean ok = false ;
for( int i = 0 ; i < applications.get( ind ).getComputingClients().size() ; i++ )
{