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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod creates a Thread used to create a Checker Thread.voidMethod creates a Thread which sends a heartbeat to a URL in an x seconds interval.org.slf4j.LoggerRetrieve the Instance of the Analytics Logger.static MainRetrieve the Instance of the Main class.voidlogAnalytic(String message, Object... args) Method used to log analytics.static voidMain 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:
LoggerInstance of the Analytics Logger.
-
getInstance
Retrieve the Instance of the Main class.- Returns:
MainInstance of the Main class.
-