Class ThreadTest

java.lang.Object
com.martiansoftware.nailgun.examples.ThreadTest
All Implemented Interfaces:
Runnable

public class ThreadTest extends Object implements Runnable
A very silly test to verify that the System.in/out/err overrides are inherited by child threads. A bunch of numbers and thread ids are displayed to the client's stdout. The important thing is that all threads launched by the nail are writing to the same client.
  • Field Details

  • Constructor Details

    • ThreadTest

      public ThreadTest(String name)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • main

      public static void main(String[] args)