Class InterProcessConcurrencyTester.MainProcessNotifier
- java.lang.Object
-
- com.android.testutils.concurrency.InterProcessConcurrencyTester.MainProcessNotifier
-
- Enclosing class:
- InterProcessConcurrencyTester
public static class InterProcessConcurrencyTester.MainProcessNotifier extends java.lang.ObjectClass to be used by client processes (which are executing the actions under test) to notify the main process of events happening in the client processes.
-
-
Constructor Summary
Constructors Constructor Description MainProcessNotifier(int serverSocketPort)Creates a new instance ofMainProcessNotifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionStarted()Notifies the main process that the current client process starts executing the action under test.voidprocessStarted()Notifies the main process that the current client process has started execution.
-
-
-
Method Detail
-
processStarted
public void processStarted() throws java.io.IOExceptionNotifies the main process that the current client process has started execution. This method will block until the main process notifies the client process that it can resume execution.- Throws:
java.io.IOException
-
actionStarted
public void actionStarted() throws java.io.IOExceptionNotifies the main process that the current client process starts executing the action under test. This method will block until the main process notifies the client process that it can resume execution.- Throws:
java.io.IOException
-
-