Package com.whatevernot.engine

Examples of com.whatevernot.engine.IEngine


   */
  public void testSocket() throws Exception
  {
    ITimer timer = StopWatch.getTimer();
   
    IEngine engine = EngineFactory.makeEngine(timer);
    engine.trace(true);
   
    engine.add(this.getClass());
   
    timer.start(this, "request.split");
   
    engine.inject(new ServerSocket(port_));

    Thread.sleep(alive_);
   
    engine.idleHalt();
   
    StopWatch.stopAll();
   
    Log.info(this, "testSocket", "\n" + StopWatch.convertToString() + "\n");
 
View Full Code Here


   */
  public void testSimple() throws Exception
  {
    Log.info(this, "testSimple", "Start.");
   
    IEngine engine = EngineFactory.makeEngine();
   
    engine.add(this.getClass());
   
    engine.inject(new TestMachine1.StartState());
   
    // Let the engine finish on its own, so give it enough time.
    Thread.sleep(1);
 
View Full Code Here

   */
  public void testPingPong() throws Exception
  {
    Log.info(this, "testPingPong", "Start.");
   
    IEngine engine = EngineFactory.makeEngine();
   
    engine.add(this.getClass());
   
    engine.inject(new Boolean(true));

    Thread.sleep(10);
   
    engine.idleHalt();
 
View Full Code Here

TOP

Related Classes of com.whatevernot.engine.IEngine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.