com.newstep.solid.test.processor.performance.core
public final class ClearingPoint
This class is the point through which all event handlers and test cases communicate
Final.
Links:
Kernel Association Association Link
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
| Field Summary |
public long |
avDecoderToHandlerTime |
public long |
eventID |
public long |
hiDecoderToHandlerTime |
public long |
loDecoderToHandlerTime |
public long |
totalTimes |
public long |
avHandlerCompletionTime |
public long |
eventID |
public long |
hiHandlerCompletionTime |
public long |
loHandlerCompletionTime |
public long |
totalTimes |
public long |
avProducerToDecoderTime |
public long |
eventID |
public long |
hiProducerToDecoderTime |
public long |
loProducerToDecoderTime |
public long |
totalTimes |
private long |
totalEvents |
private ArrayList |
|
|
|
private CountDownLatch |
|
private ReentrantLock |
|
private Logger |
|
private long[] |
|
private Future |
|
private ExecutorService |
|
private int |
|
| Constructor Summary |
public void |
ClearingPointRunner(Long totalEvents) |
| Method Summary |
public void |
|
public ArrayList |
call() |
private String |
prettyPrintElapsedTime(Long time) |
private void |
printInfo(ClearingPoint.ClearingPointRunner.ProducerToDecoderInfo info1, ClearingPoint.ClearingPointRunner.DecoderToHandlerInfo info2, ClearingPoint.ClearingPointRunner.HandlerCompletionInfo info3) |
|
|
public ArrayList |
|
public void |
|
public void |
|
private ArrayList handledEvents
Multiplicity:
1
Multiplicity:
1
Static.
private CountDownLatch latch
Multiplicity:
1
private ReentrantLock lock
Multiplicity:
1
private Logger logger
Multiplicity:
1
private long[] numEvents
Multiplicity:
1
private Future processingFuture
Multiplicity:
1
private ExecutorService runner
Multiplicity:
1
private int testNumber
Multiplicity:
1
public void addHandledEvent (TestEvent event)
Allows an event handler to add an event that was just handled
Parameters:
event TestEvent representing the handled event
Returns a singleton instance of a clearing point
Return:
ClearingPoint
Static.
public ArrayList getResults ()
Returns the results returned by the event handlers
Return:
ArrayList
Throws:
ExecutionException,InterruptedException
public void reset ()
Resets the singleton ClearingPoint to the default values
public void setNumberOfEvents (EVENT_TYPE eventType, Long number, Boolean doneSets)
Sets the number of events that have been created for each event type
Parameters:
eventType Constants.EVENT_TYPE representing the type of event that was created
number Long representing the number of events created