|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 String
timestamp
- - time stamp as Calendar
loggingPath
- - absolute logging path as String
publishTopic
- - publish topic as String
publishQoS
- - publish QoS as int
Method Detail |
---|
public String getVehicleID()
String
public void setVehicleID(String vehicleID)
vehicleID
- - vehicle ID as String
public Calendar getTimestamp()
Calendar
public String getLoggingPath()
String
public void setLoggingPath(String loggingPath)
loggingPath
- - absolute logging path as String
public void setTimestamp(Calendar timestamp)
timestamp
- - time stamp as Calendar
public String toString()
toString
in class Object
String
public String toMQttPayload()
String
public String formLogFilename()
public boolean isPublished()
boolean
public void setPublished(boolean published)
published
- - 'published' flag as boolean
public String getPublishTopic()
String
public int getPublishQoS()
int
protected String generateYYYYMMDD()
String
protected String generateYYYYMMDD(Calendar calendar)
calendar
- - time stamp as Calendar
String
protected 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 |