Package de.presti.ree6.main
Class Main
java.lang.Object
de.presti.ree6.main.Main
Main Application class, used to store Instances of System Relevant classes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Method creates a Thread used to create a Checker Thread.void
Method creates a Thread which sends a heartbeat to a URL in an x seconds interval.org.slf4j.Logger
Retrieve the Instance of the Analytics Logger.static Main
Retrieve the Instance of the Main class.void
logAnalytic
(String message, Object... args) Method used to log analytics.static void
Main methode called when Application starts.
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
Main methode called when Application starts.- Parameters:
args
- Start Arguments.
-
createCheckerThread
public void createCheckerThread()Method creates a Thread used to create a Checker Thread. -
createHeartbeatThread
public void createHeartbeatThread()Method creates a Thread which sends a heartbeat to a URL in an x seconds interval. -
logAnalytic
Method used to log analytics.- Parameters:
message
- the message that should be logged.args
- the arguments for the message that should be logged.
-
getAnalyticsLogger
public org.slf4j.Logger getAnalyticsLogger()Retrieve the Instance of the Analytics Logger.- Returns:
Logger
Instance of the Analytics Logger.
-
getInstance
Retrieve the Instance of the Main class.- Returns:
Main
Instance of the Main class.
-