java.lang.Object
test.de.iip_ecosphere.platform.services.spring.TestServer
All Implemented Interfaces:
de.iip_ecosphere.platform.support.Server

public class TestServer extends Object implements de.iip_ecosphere.platform.support.Server
A simple server for testing.
Author:
Holger Eichelberger, SSE
  • Field Details

    • created

      private static int created
    • stopped

      private static int stopped
    • runnable

      private TestServer.TestRunnable runnable
  • Constructor Details

    • TestServer

      public TestServer()
      Creates the server instance.
  • Method Details

    • start

      public de.iip_ecosphere.platform.support.Server start()
      Specified by:
      start in interface de.iip_ecosphere.platform.support.Server
    • stop

      public void stop(boolean dispose)
      Specified by:
      stop in interface de.iip_ecosphere.platform.support.Server
    • getAndResetCreatedCount

      public static int getAndResetCreatedCount()
      Returns the counter for the number of created instances and resets the counter.
      Returns:
      the number of created instances since the last call
    • getAndResetStoppedCount

      public static int getAndResetStoppedCount()
      Returns the counter for the number of stopped instances and resets the counter.
      Returns:
      the number of stopped instances since the last call