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) String
Returns a string representation of the server start time.(package private) String
Returns a string representation of the current time and date.(package private) long
Returns a string representation of the elapsed time since the server started.void
reset()
Resets the statistics.
-
Constructor Details
-
ServerStatistics
public ServerStatistics()Creates a new instance.
-
-
Method Details
-
get
Description copied from interface:StatisticsCollectable
Returns the statistics associated with the collectable.- Specified by:
get
in interfaceStatisticsCollectable
- Returns:
- the statistics.
-
reset
public void reset()Description copied from interface:StatisticsCollectable
Resets the statistics.- Specified by:
reset
in 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.
-