jist.minisim
Class cont.entity

java.lang.Object
  extended by jist.minisim.cont.entity
All Implemented Interfaces:
JistAPI.Entity, JistAPI.Timeless
Enclosing class:
cont

public static class cont.entity
extends java.lang.Object
implements JistAPI.Entity

Entity to test continuation entity calls.


Field Summary
private  int mode
          benchmark type.
private  long nevents
          number of continuation events.
private  long nwarm
          number of warm-up events.
 
Constructor Summary
cont.entity(int mode, long nevents, long nwarm)
          Create new continuation event benchmarking entity.
 
Method Summary
private  void call()
          Perform single continuation call.
 void go()
          Perform benchmark.
 byte[] operation_array(byte[] b)
          Blocking operation with array parameter.
 void operation_double(double d)
          Blocking operation with primitive double parameter.
 void operation_int(int i)
          Blocking operation with primitive integer parameter.
 void operation_null()
          Blocking operation with no parameters.
 void operation_show()
          Blocking operation that displays time.
 void operation_string(java.lang.String s)
          Blocking operation with String parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mode

private int mode
benchmark type.


nevents

private long nevents
number of continuation events.


nwarm

private long nwarm
number of warm-up events.

Constructor Detail

cont.entity

public cont.entity(int mode,
                   long nevents,
                   long nwarm)
Create new continuation event benchmarking entity.

Parameters:
mode - benchmark type
nevents - number of continuation events
nwarm - number of warm-up events
Method Detail

call

private void call()
Perform single continuation call.


go

public void go()
Perform benchmark.


operation_show

public void operation_show()
                    throws JistAPI.Continuation
Blocking operation that displays time.

Throws:
JistAPI.Continuation - never; blocking event

operation_null

public void operation_null()
                    throws JistAPI.Continuation
Blocking operation with no parameters.

Throws:
JistAPI.Continuation - never; blocking event

operation_int

public void operation_int(int i)
                   throws JistAPI.Continuation
Blocking operation with primitive integer parameter.

Parameters:
i - dummy int parameter
Throws:
JistAPI.Continuation - never; blocking event

operation_double

public void operation_double(double d)
                      throws JistAPI.Continuation
Blocking operation with primitive double parameter.

Parameters:
d - dummy double parameter
Throws:
JistAPI.Continuation - never; blocking event

operation_string

public void operation_string(java.lang.String s)
                      throws JistAPI.Continuation
Blocking operation with String parameter.

Parameters:
s - dummy string parameter
Throws:
JistAPI.Continuation - never; blocking event

operation_array

public byte[] operation_array(byte[] b)
                       throws JistAPI.Continuation
Blocking operation with array parameter.

Parameters:
b - dummy array parameter
Returns:
dummy return
Throws:
JistAPI.Continuation - never; blocking event