Class TestServer
- java.lang.Object
-
- test.de.iip_ecosphere.platform.services.spring.TestServer
-
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.Server
public class TestServer extends java.lang.Object implements de.iip_ecosphere.platform.support.ServerA simple server for testing.- Author:
- Holger Eichelberger, SSE
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classTestServer.TestRunnable
-
Field Summary
Fields Modifier and Type Field Description private static intcreatedprivate TestServer.TestRunnablerunnableprivate static intstopped
-
Constructor Summary
Constructors Constructor Description TestServer()Creates the server instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intgetAndResetCreatedCount()Returns the counter for the number of created instances and resets the counter.static intgetAndResetStoppedCount()Returns the counter for the number of stopped instances and resets the counter.de.iip_ecosphere.platform.support.Serverstart()voidstop(boolean dispose)
-
-
-
Field Detail
-
created
private static int created
-
stopped
private static int stopped
-
runnable
private TestServer.TestRunnable runnable
-
-
Method Detail
-
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
-
-