Class: TestConnector
| Defined in: | lib/Connectors/TestConnector.coffee | 
Overview
A trivial Connector that simulates network delay.
Instance Method Summary
- # (void) getOpsInExecutionOrder() This engine applied operations in a specific order.
 - # (void) send(o) This function is called whenever an operation was executed.
 - # (void) receive(o) This function is called whenever an operation was received from another peer.
 - # (void) flushOne(user) Flush one operation from the line of a specific user.
 - # (void) flushOneRandom() Flush one operation on a random line.
 - # (void) flushAll() Flush all operations on every line.
 
Constructor Details
      #
(void)
constructor(engine, HB, execution_listener)
      
    
Instance Method Details
      #
(void)
getOpsInExecutionOrder()
      
    
This engine applied operations in a specific order. Get the ops in the right order.
      #
(void)
send(o)
      
    
This function is called whenever an operation was executed.
      #
(void)
receive(o)
      
    
This function is called whenever an operation was received from another peer.
      #
(void)
flushOne(user)
      
    
Flush one operation from the line of a specific user.
      #
(void)
flushOneRandom()
      
    
Flush one operation on a random line.
      #
(void)
flushAll()
      
    
Flush all operations on every line.