Class
Tree
          
PREV CLASS NEXT CLASS
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
 

com.newstep.solid.test.processor.performance.core
Class ClearingPoint

public final class ClearingPoint      
This class is the point through which all event handlers and test cases communicate
Final.
 
Links:
Kernel Association Association Link
to Class ClearingPoint
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 static ClearingPoint
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 static ClearingPoint
public ArrayList
public void
public void
setNumberOfEvents(EVENT_TYPE eventType, Long number, Boolean doneSets)
Field Detail
handledEvents
private ArrayList handledEvents
Multiplicity:
1
 

instance
private static ClearingPoint instance
Multiplicity:
1
Static.
 

latch
private CountDownLatch latch
Multiplicity:
1
 

lock
private ReentrantLock lock
Multiplicity:
1
 

logger
private Logger logger
Multiplicity:
1
 

numEvents
private long[] numEvents
Multiplicity:
1
 

processingFuture
private Future processingFuture
Multiplicity:
1
 

runner
private ExecutorService runner
Multiplicity:
1
 

testNumber
private int testNumber
Multiplicity:
1
 
Method Detail
addHandledEvent
public void addHandledEvent (TestEvent event)
 
Allows an event handler to add an event that was just handled
Parameters:
event TestEvent representing the handled event
 

getInstance
public static ClearingPoint getInstance ()
 
Returns a singleton instance of a clearing point
Return:
ClearingPoint
Static.
 

getResults
public ArrayList getResults ()
 
Returns the results returned by the event handlers
Return:
ArrayList
Throws:
ExecutionException,InterruptedException
 

reset
public void reset ()
 
Resets the singleton ClearingPoint to the default values
 

setNumberOfEvents
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
 

Class
Tree
          
PREV CLASS NEXT CLASS
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD