public class LogItem extends Object implements LabelElement, BusinessLog
| 限定符和类型 | 字段和说明 |
|---|---|
protected BusinessLog |
m_Log
原日志对象
|
protected int |
m_Ordinal
日志在集合中的序号
|
protected String |
m_ServerId
所属服务器标识(0x01~0xFF)
|
| 构造器和说明 |
|---|
LogItem(BusinessLog l,
String serverId,
int ordinal) |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
genId(long timestamp,
int ordinal,
String serverId)
生成日志ID
|
String |
getAction()
取动作(部分)
|
String |
getAuthor()
作者
|
String |
getId()
日志ID,由所记录对象的ID、时间及所属服务器标识组成
|
String |
getIdForLabel()
相对于标签的项ID
|
BusinessLog |
getLog() |
String |
getNote()
备注
|
String |
getTarget()
记录的对象ID
|
Date |
getTime()
日志时间
|
String |
getWhat()
取什么(部分)
|
protected BusinessLog m_Log
protected String m_ServerId
protected int m_Ordinal
public LogItem(BusinessLog l, String serverId, int ordinal)
public static String genId(long timestamp, int ordinal, String serverId)
timestamp - 时间ordinal - 序号serverId - 服务器ID(0~255)public String getIdForLabel()
LabelElementgetIdForLabel 在接口中 LabelElementpublic BusinessLog getLog()
public String getId()
BusinessLoggetId 在接口中 BusinessLogpublic Date getTime()
BusinessLoggetTime 在接口中 BusinessLogpublic String getTarget()
BusinessLoggetTarget 在接口中 BusinessLogpublic String getAuthor()
BusinessLoggetAuthor 在接口中 BusinessLogpublic String getAction()
BusinessLoggetAction 在接口中 BusinessLogpublic String getWhat()
BusinessLoggetWhat 在接口中 BusinessLogpublic String getNote()
BusinessLoggetNote 在接口中 BusinessLogCopyright © 2021. All rights reserved.