Package ch.psi.wica
Class ServerStatistics
java.lang.Object
ch.psi.wica.ServerStatistics
- All Implemented Interfaces:
StatisticsCollectable
Provides the statistics directly associated with the server.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.psi.wica.model.app.StatisticsCollectable
StatisticsCollectable.Statistics, StatisticsCollectable.StatisticsItem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Returns the statistics associated with the collectable.(package private) StringReturns a string representation of the server start time.(package private) StringReturns a string representation of the current time and date.(package private) longReturns a string representation of the elapsed time since the server started.voidreset()Resets the statistics.
-
Constructor Details
-
ServerStatistics
public ServerStatistics()Creates a new instance.
-
-
Method Details
-
get
Description copied from interface:StatisticsCollectableReturns the statistics associated with the collectable.- Specified by:
getin interfaceStatisticsCollectable- Returns:
- the statistics.
-
reset
public void reset()Description copied from interface:StatisticsCollectableResets the statistics.- Specified by:
resetin interfaceStatisticsCollectable
-
getTimeAndDateNow
String getTimeAndDateNow()Returns a string representation of the current time and date.- Returns:
- the result.
-
getServerStartTime
String getServerStartTime()Returns a string representation of the server start time.- Returns:
- the result.
-
getUpTimeInSeconds
long getUpTimeInSeconds()Returns a string representation of the elapsed time since the server started.- Returns:
- the result.
-