Package info.caiiiycuk.stail.impl

Examples of info.caiiiycuk.stail.impl.ProcessHolder


   
    String[] command = new String[] {
        "tail", "-f", "-n 1000", testFile
    };
   
    processHolderFull = new ProcessHolder(command);
    processHolderFive = new ProcessHolder(command, 5);
   
    try {
      Thread.sleep(1000);
    } catch (InterruptedException e) {
    }
View Full Code Here


   
    String[] command = new String[] {
        "tail", "-f", "-n 1000", testFile
    };
   
    ProcessHolder processHolderFive = new ProcessHolder(command, 5);
   
    try {
      Thread.sleep(1000);
    } catch (InterruptedException e) {
    }
   
    processHolderFive.cancle();
   
    try {
      Thread.sleep(100);
    } catch (InterruptedException e) {
    }
   
    processHolderFive.cancle();
   
    while (!processHolderFive.isDone()) {
      try {
        Thread.sleep(100);
      } catch (InterruptedException e) {
      }
    }
   
    Marker marker = new IndexedMarkerState(25).applyState(processHolderFive.makeMarker());
   
    if (marker.next()) {
      assertEquals('M', marker.toString().charAt(0));
    }
   
View Full Code Here

    cancleHolders();
  }

  @Test
  public void testStackTrace() {
    ProcessHolder ph = new ProcessHolder(null, 0);
   
    assertNotSame(0, ph.linesCount());
  }
View Full Code Here

TOP

Related Classes of info.caiiiycuk.stail.impl.ProcessHolder

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.