public class TripLogger
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
TripLogger.TimerHandler
class to handle timer events
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATA_LABEL
data label identifying the trip logger
|
protected javax.swing.Timer |
LOG_TIMER
timer which signals a log operation
|
protected TripLogger.TimerHandler |
TIMER_HANDLER
handles timer events
|
protected java.util.List<TripMonitor> |
TRIP_MONITORS
trip monitor filters
|
Constructor and Description |
---|
TripLogger(DataAdaptor adaptor,
java.util.List<TripMonitor> tripMonitors)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
isLogging()
determine if the logger is logging
|
void |
publishTrips()
publish trips to the persistent storage
|
protected void |
publishTrips(java.sql.Connection connection)
publish trips to the persistent storage
|
void |
start()
start the logging
|
void |
stop()
stop the logging
|
public static final java.lang.String DATA_LABEL
protected final javax.swing.Timer LOG_TIMER
protected final TripLogger.TimerHandler TIMER_HANDLER
protected final java.util.List<TripMonitor> TRIP_MONITORS
public TripLogger(DataAdaptor adaptor, java.util.List<TripMonitor> tripMonitors)
public boolean isLogging()
public void start()
public void stop()
public void publishTrips()
protected void publishTrips(java.sql.Connection connection)