|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eurotech.framework.protocol.pcn.LogEntry
public class LogEntry
Defines Log entry.
| Constructor Summary | |
|---|---|
LogEntry()
LogEntry default constructor. |
|
LogEntry(String vehicleID,
Calendar timestamp,
String loggingPath,
String publishTopic,
int publishQoS)
LogEntry constructor |
|
| Method Summary | |
|---|---|
String |
formLogFilename()
Forms an absolute path to a log filename. |
protected String |
generateHHMMSS()
Generates time log in the form HHMMSS. |
protected String |
generateHHMMSS(Calendar calendar)
Generates time log in the form HHMMSS. |
protected String |
generateYYYYMMDD()
Generates date log in the form YYYYMMDD |
protected String |
generateYYYYMMDD(Calendar calendar)
Generates date log in the form YYYYMMDD |
String |
getLoggingPath()
Reports absolute logging path. |
int |
getPublishQoS()
Reports publish QoS. |
String |
getPublishTopic()
Reports publish topic. |
Calendar |
getTimestamp()
Reports time stamp. |
String |
getVehicleID()
Reports vehicle ID. |
boolean |
isPublished()
Reports if log entry has been published |
void |
setLoggingPath(String loggingPath)
Sets absolute logging path. |
void |
setPublished(boolean published)
Sets 'published' flag |
void |
setTimestamp(Calendar timestamp)
Sets time stamp |
void |
setVehicleID(String vehicleID)
Sets vehicle ID. |
String |
toMQttPayload()
Reports MQtt payload representation of this object |
String |
toString()
Reports string representation of this object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LogEntry()
public LogEntry(String vehicleID,
Calendar timestamp,
String loggingPath,
String publishTopic,
int publishQoS)
vehicleID - - vehicle IS as Stringtimestamp - - time stamp as CalendarloggingPath - - absolute logging path as StringpublishTopic - - publish topic as StringpublishQoS - - publish QoS as int| Method Detail |
|---|
public String getVehicleID()
Stringpublic void setVehicleID(String vehicleID)
vehicleID - - vehicle ID as Stringpublic Calendar getTimestamp()
Calendarpublic String getLoggingPath()
Stringpublic void setLoggingPath(String loggingPath)
loggingPath - - absolute logging path as Stringpublic void setTimestamp(Calendar timestamp)
timestamp - - time stamp as Calendarpublic String toString()
toString in class ObjectStringpublic String toMQttPayload()
Stringpublic String formLogFilename()
public boolean isPublished()
booleanpublic void setPublished(boolean published)
published - - 'published' flag as booleanpublic String getPublishTopic()
Stringpublic int getPublishQoS()
intprotected String generateYYYYMMDD()
Stringprotected String generateYYYYMMDD(Calendar calendar)
calendar - - time stamp as Calendar
Stringprotected String generateHHMMSS()
protected String generateHHMMSS(Calendar calendar)
calendar - - time stamp as Calendar
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||