|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.object.PersistentObject
com.waveset.object.SyslogRecord
Type.LOG rides again!
Wraps a LogRecord instance in a PersistentObject so the log record can be written to the Repository.
Nested Class Summary |
Nested classes inherited from class com.waveset.object.PersistentObject |
PersistentObject.Comparator, PersistentObject.InitialInstance |
Field Summary | |
static java.lang.String |
code_id
|
Fields inherited from class com.waveset.object.PersistentObject |
_trace, trace |
Constructor Summary | |
SyslogRecord()
|
|
SyslogRecord(org.w3c.dom.Element e)
|
|
SyslogRecord(java.util.Map record)
Constructor used by AuditEventHandler to convert AuditEvents over to a persistent object. |
Method Summary | |
protected void |
addSubclassAttributes(java.lang.StringBuffer b)
Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist). |
protected void |
addSubclassElements(java.lang.StringBuffer b)
Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist). |
protected WSAttribute |
getAttributeValues(java.lang.String attrName)
|
ResultError |
getCause()
|
java.lang.String |
getComponent()
|
java.lang.String |
getErrorCode()
|
java.lang.String |
getEvent()
|
Message |
getMessage()
Get the descriptive message associated with this log record. |
java.lang.String |
getServer()
|
java.lang.String |
getSeverity()
Which object was affected? |
long |
getTimeStamp()
Gets the time at which this record was created. |
Type |
getType()
Return the type of this object. |
java.util.List |
listQueryableAttributes()
|
java.util.List |
listSummaryAttributes()
Returns the complete list of defined attributes
that this type of persistent object exposes as summary attributes
(regardless of whether this particular object has a value for each). |
protected void |
parseSubclassAttributes(org.w3c.dom.Element e)
Each concrete subclass should parse from the XML buffer any persisted subclass-specific fields (generally, the same ones that it writes into the buffer). |
protected void |
parseSubclassElements(org.w3c.dom.Element e)
Each concrete subclass should parse from the XML buffer any persisted subclass-specific elements (generally, the same ones that it writes into the buffer). |
void |
set(Attribute attr,
java.lang.String attrVal)
Used by the repository to stuff LOG_COLUMN_ATTRS into LogRecord. |
void |
setComponent(java.lang.String component)
|
void |
setErrorCode(java.lang.String errorCode)
|
void |
setMessage(Message msg)
|
void |
setServer(java.lang.String server)
|
void |
setSeverity(java.lang.String severity)
|
void |
setTimeStamp(long millis)
|
java.util.Map |
toMap()
Converts a record back into map form. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
Constructor Detail |
public SyslogRecord()
public SyslogRecord(org.w3c.dom.Element e) throws WavesetException
public SyslogRecord(java.util.Map record)
Method Detail |
public long getTimeStamp()
public void setTimeStamp(long millis)
public java.lang.String getSeverity()
public void setSeverity(java.lang.String severity)
public java.lang.String getComponent()
public void setComponent(java.lang.String component)
public java.lang.String getServer()
public void setServer(java.lang.String server)
public java.lang.String getErrorCode()
public void setErrorCode(java.lang.String errorCode)
public Message getMessage()
public void setMessage(Message msg)
public ResultError getCause()
public java.lang.String getEvent()
public void set(Attribute attr, java.lang.String attrVal) throws InvalidArgument
InvalidArgument
public Type getType()
PersistentObject
getType
in class PersistentObject
public java.util.List listQueryableAttributes()
listQueryableAttributes
in class PersistentObject
defined attributes
that this type of persistent object exposes as queryable attributes
regardless of whether this object has a value for each.
Any subclass of PersistentObject that overrides this method should first invoke super.listQueryableAttributes() to ensure that the subclass includes queryable attributes common to all PersistentObjects.
public java.util.List listSummaryAttributes()
PersistentObject
defined attributes
that this type of persistent object exposes as summary attributes
(regardless of whether this particular object has a value for each).
Any subclass of PersistentObject that overrides this method
should first invoke super.listSummaryAttributes()
to ensure that the subclass includes summary attributes
that are common to all PersistentObjects.
Any subclass that overrides this implementation must also consider the length of the summary string that will be generated from these attributes.
listSummaryAttributes
in class PersistentObject
defined attributes
that this type of persistent object exposes as summary attributes
regardless of whether this particular object has a value for each.
Any subclass of PersistentObject that overrides this method
should first invoke super.listSummaryAttributes()
to ensure that the subclass includes summary attributes
that are common to all PersistentObjects.
Constants.MAX_SUMMARY_STRING_LENGTH
,
PersistentObject.getSummaryString()
protected WSAttribute getAttributeValues(java.lang.String attrName)
getAttributeValues
in class PersistentObject
attrName
- - the name of the attribute for which to return values.
WSAttribute
that represents the value (or values)
that this object contains for the specified attribute.
protected void addSubclassAttributes(java.lang.StringBuffer b)
PersistentObject
NOTE: Any subclass that overrides this method must similarly override parseSubclassAttributes() so that the subclass attributes are restored.
addSubclassAttributes
in class PersistentObject
protected void addSubclassElements(java.lang.StringBuffer b)
PersistentObject
NOTE: Any subclass that overrides this method must similarly override parseSubclassElements() so that the subclass elements are restored.
addSubclassElements
in class PersistentObject
protected void parseSubclassAttributes(org.w3c.dom.Element e) throws WavesetException
PersistentObject
parseSubclassAttributes
in class PersistentObject
WavesetException
PersistentObject's default implementation is a no-op.
,
PersistentObject.parseXml(Element)
protected void parseSubclassElements(org.w3c.dom.Element e) throws WavesetException
PersistentObject
parseSubclassElements
in class PersistentObject
WavesetException
PersistentObject's default implementation is a no-op.
,
PersistentObject.parseXml(Element)
public java.util.Map toMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |