it.unipd.dei.ims.nestor.experiment.threads
Class Task

java.lang.Object
  extended by it.unipd.dei.ims.nestor.experiment.threads.Task
All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Long>

public class Task
extends java.lang.Object
implements java.util.concurrent.Callable<java.lang.Long>


Constructor Summary
Task(java.lang.String t, java.lang.String m, java.lang.Object... args)
           
 
Method Summary
 java.lang.Long call()
           
 java.lang.String getMethod()
           
 java.lang.String getTask()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Task

public Task(java.lang.String t,
            java.lang.String m,
            java.lang.Object... args)
Parameters:
t -
m - the method to be called
args - the arguments to be passed to method m, the order must be the one required by m
Method Detail

getTask

public java.lang.String getTask()

getMethod

public java.lang.String getMethod()

call

public java.lang.Long call()
                    throws java.lang.Exception
Specified by:
call in interface java.util.concurrent.Callable<java.lang.Long>
Throws:
java.lang.Exception