*/
public Task(String name, double flopsAmount, double bytesAmount) {
create(name, flopsAmount, bytesAmount);
+ this.name = name;
this.messageSize = bytesAmount;
}
/**
*/
private final native void create(String name,
double flopsAmount,
- double bytesAmount)
- throws IllegalArgumentException;
+ double bytesAmount);
/**
* The natively implemented method to create a MSG parallel task.
*
private final native void parallelCreate(String name,
Host[]hosts,
double[]flopsAmount,
- double[]bytesAmount)
- throws NullPointerException, IllegalArgumentException;
+ double[]bytesAmount);
/* * * *
* * Getters / Setters * *
* * * */
public native void cancel();
/** Deletes a task once the garbage collector reclaims it */
+ @Override
protected void finalize() throws Throwable{
nativeFinalize();
bind=0; // to avoid segfaults if the impossible happens yet again making this task surviving its finalize()