Class InterProcessConcurrencyTester.MainProcessNotifier

  • Enclosing class:
    InterProcessConcurrencyTester

    public static class InterProcessConcurrencyTester.MainProcessNotifier
    extends java.lang.Object
    Class 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 of MainProcessNotifier.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionStarted()
      Notifies the main process that the current client process starts executing the action under test.
      void processStarted()
      Notifies the main process that the current client process has started execution.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MainProcessNotifier

        public MainProcessNotifier​(int serverSocketPort)
        Creates a new instance of MainProcessNotifier.
        Parameters:
        serverSocketPort - the port of the server socket for client processes to communicate with the main process
    • Method Detail

      • processStarted

        public void processStarted()
                            throws java.io.IOException
        Notifies 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.IOException
        Notifies 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