org.ourgrid.test.threadServices
Class InnerRunnable

java.lang.Object
  extended by org.ourgrid.test.threadServices.InnerRunnable
All Implemented Interfaces:
java.lang.Runnable

public class InnerRunnable
extends java.lang.Object
implements java.lang.Runnable

This class is a Runnable used just for tests.


Constructor Summary
InnerRunnable(java.lang.Object toNotify, java.lang.String name)
          Constructor.
 
Method Summary
 void run()
          Prints 10 messages and notifies the threads waiting on toNotify object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InnerRunnable

public InnerRunnable(java.lang.Object toNotify,
                     java.lang.String name)
Constructor.

Parameters:
toNotify - The object to be notified.
name - A string to be used in a thread related to this runnable.
Method Detail

run

public void run()
Prints 10 messages and notifies the threads waiting on toNotify object.

Specified by:
run in interface java.lang.Runnable