Class ThreadTest
- java.lang.Object
-
- com.martiansoftware.nailgun.examples.ThreadTest
-
- All Implemented Interfaces:
java.lang.Runnable
public class ThreadTest extends java.lang.Object implements java.lang.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 Summary
Fields Modifier and Type Field Description private java.lang.String
name
-
Constructor Summary
Constructors Constructor Description ThreadTest(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
void
run()
-