super() ;
}
-
+
+ public void setSaveTime( int _saveTime )
+ {
+ save_interleave = _saveTime * 60 * 1000 ;
+ }
+
@Override
public Integer register( ServicesClient _stub )
{
app.setComputingClients( tmp ) ;
app.setRunning( true ) ;
-// app.setStartTime( System.currentTimeMillis() ) ;
+ app.setStartTime( System.currentTimeMillis() ) ;
int index, index2 ;
/* Choosing save neighbors */
public void goApplication()
{
synchronized( applications ) {
- if( running && applications.get( ind ).getStartTime() != 0 )
- {
- applications.get( ind ).setStartTime( System.currentTimeMillis() ) ;
- applications.get( ind ).setLastSaveDate( System.currentTimeMillis() ) ;
- }}
+ if( running && ! applications.get( ind ).getStartMark() )
+ {
+ System.out.println( "Application is starting." ) ;
+ applications.get( ind ).setStartMark() ;
+ applications.get( ind ).setStartTime( System.currentTimeMillis() ) ;
+ applications.get( ind ).setLastSaveDate( System.currentTimeMillis() ) ;
+ }
+ }
}