Class TestServer
java.lang.Object
test.de.iip_ecosphere.platform.services.spring.TestServer
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.Server
A simple server for testing.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static intprivate TestServer.TestRunnableprivate static int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
created
private static int created -
stopped
private static int stopped -
runnable
-
-
Constructor Details
-
TestServer
public TestServer()Creates the server instance.
-
-
Method Details
-
start
public de.iip_ecosphere.platform.support.Server start()- Specified by:
startin interfacede.iip_ecosphere.platform.support.Server
-
stop
public void stop(boolean dispose) - Specified by:
stopin interfacede.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
-