Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

plugins
Class PingTasklet  view PingTasklet download PingTasklet.java

java.lang.Object
  extended byjava.lang.Thread
      extended bymusli.aorta.Moblet
          extended bymusli.aorta.Tasklet
              extended byplugins.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 Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  long floatNo
           
 
Fields inherited from class musli.aorta.Tasklet
 
Fields inherited from class musli.aorta.Moblet
ID, no, processor, result
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PingTasklet(java.lang.String ID)
          Ping task
 
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.Tasklet
doMerge, doSplit, run
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

floatNo

protected long floatNo
Constructor Detail

PingTasklet

public PingTasklet(java.lang.String ID)
Ping task

Method Detail

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()