plugins
Class PingTasklet

java.lang.Object
java.lang.Thread
musli.aorta.Moblet
musli.aorta.Tasklet
plugins.PingTasklet
- All Implemented Interfaces:
- java.lang.Runnable, java.io.Serializable
- public class PingTasklet
- extends musli.aorta.Tasklet
This is the algoritm part.
Can be used to "fire" a test in the cluster, as the PingTasklet returns with
all the worker clients that where visited during the Task Compute.
| Nested classes inherited from class java.lang.Thread |
java.lang.Thread.UncaughtExceptionHandler |
|
Field Summary |
protected long |
floatNo
|
| Fields inherited from class musli.aorta.Tasklet |
|
|
Method Summary |
boolean |
calc()
Compute the task |
boolean |
merge(musli.aorta.Tasklet task)
Merge the original task with the delegated sub task. |
boolean |
needJDBC()
Gives information if the task needs jdbc |
boolean |
needNET()
Gives information if the task needs net. |
long |
needRamSize()
Gives information if the task needs MBRam |
float |
needTotFloatOps()
Gives amount of "multiplications/additions" in total for this task (Mega) |
void |
setFloatNo(long floatNo)
|
void |
spendTime(float javaMegaFlops)
Silly function does the actual calculations that this client has decided to to. |
musli.aorta.Tasklet |
split(musli.aorta.Benchmark rate)
Split a task in one remote and a local part, depending on the workers resources. |
| Methods inherited from class musli.aorta.Moblet |
compute, execute, getAttributes, getID, getNo, getProcessor, getProcessorInstance, getResult, setProcessor, setProcessorInstance, setResult |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
floatNo
protected long floatNo
PingTasklet
public PingTasklet(java.lang.String ID)
- Ping task
calc
public boolean calc()
- Description copied from class:
musli.aorta.Tasklet
- Compute the task
merge
public boolean merge(musli.aorta.Tasklet task)
- Description copied from class:
musli.aorta.Tasklet
- Merge the original task with the delegated sub task.
split
public musli.aorta.Tasklet split(musli.aorta.Benchmark rate)
- Description copied from class:
musli.aorta.Tasklet
- Split a task in one remote and a local part, depending on the workers resources.
needTotFloatOps
public float needTotFloatOps()
- Gives amount of "multiplications/additions" in total for this task (Mega)
needJDBC
public boolean needJDBC()
- Description copied from class:
musli.aorta.Moblet
- Gives information if the task needs jdbc
needNET
public boolean needNET()
- Description copied from class:
musli.aorta.Moblet
- Gives information if the task needs net.
needRamSize
public long needRamSize()
- Description copied from class:
musli.aorta.Moblet
- Gives information if the task needs MBRam
setFloatNo
public void setFloatNo(long floatNo)
spendTime
public void spendTime(float javaMegaFlops)
- Silly function does the actual calculations that this client has decided to to.
Hopfully it takes the amount of time that the Bencmark of this client has calculated !
NOTE: As you can see this function is doing the reverse of the Constructor of Benchmark()