public class Core
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Core |
createCore()
Creates the Core object for the application.
|
DbConfig |
getDbConfig()
Makes the config data available to all
|
DataDbLogger |
getDbLogger()
Returns the DataDbLogger for logging data to db.
|
static Core |
getInstance()
For obtaining singleton Core object
|
static org.slf4j.Logger |
getLogger()
Returns the Core logger so that each class doesn't need to create
its own and have it be configured properly.
|
ServiceUtils |
getServiceUtils()
Returns the ServiceUtils object that can be reused for efficiency.
|
java.util.Date |
getSystemDate()
For when need system time but might be in playback mode.
|
long |
getSystemTime()
For when need system time but might be in playback mode.
|
Time |
getTime()
For when want to use methods in Time.
|
TimeoutHandlerModule |
getTimeoutHandlerModule()
Returns the timeout handler module
|
static void |
main(java.lang.String[] args)
The main program that runs the entire Transitime application.!
|
void |
setSystemTime(long systemEpochTime)
For setting the system time when in playback or batch mode.
|
public static Core createCore()
Usually doesn't need to be called directly because can simply use Core.getInstance().
Synchronized to ensure that don't create more than a single Core.
public static Core getInstance()
public DbConfig getDbConfig()
public ServiceUtils getServiceUtils()
public Time getTime()
public long getSystemTime()
public java.util.Date getSystemDate()
public void setSystemTime(long systemEpochTime)
systemTime
- public static final org.slf4j.Logger getLogger()
public DataDbLogger getDbLogger()
public TimeoutHandlerModule getTimeoutHandlerModule()
public static void main(java.lang.String[] args)
args
-