public class GlobalLogEntry
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
int |
code |
java.lang.String |
component |
long |
date |
java.lang.String |
level |
java.lang.String |
message |
Constructor and Description |
---|
GlobalLogEntry() |
GlobalLogEntry(GlobalLogEntry o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this GlobalLogEntry.
|
static GlobalLogEntry |
fromString(java.lang.String s)
String representation of this GlobalLogEntry.
|
int |
getCode()
Event code.
Please refer to the list of all error codes. |
java.lang.String |
getComponent()
Component that generated the entry.
|
long |
getDate()
Date of the event (ms since epoch).
|
java.lang.String |
getLevel()
Level.
|
java.lang.String |
getMessage()
Actual log message.
|
GlobalLogEntry |
makeCopy()
Creates and returns a deep copy of this GlobalLogEntry.
|
static GlobalLogEntry |
readFrom(java.io.InputStream is)
Read this GlobalLogEntry from an XML fragment.
|
void |
setCode(int code)
Event code.
Please refer to the list of all error codes. |
void |
setComponent(java.lang.String component)
Component that generated the entry.
|
void |
setDate(long date)
Date of the event (ms since epoch).
|
void |
setLevel(java.lang.String level)
Level.
|
void |
setMessage(java.lang.String message)
Actual log message.
|
java.lang.String |
toString()
String representation of this GlobalLogEntry.
|
GlobalLogEntry |
withCode(int code) |
GlobalLogEntry |
withCode(java.lang.Integer code) |
GlobalLogEntry |
withComponent(java.lang.String component) |
GlobalLogEntry |
withDate(long date) |
GlobalLogEntry |
withDate(java.lang.Long date) |
GlobalLogEntry |
withLevel(java.lang.String level) |
GlobalLogEntry |
withMessage(java.lang.String message) |
void |
writeTo(java.io.OutputStream os)
Write this GlobalLogEntry as an XML fragment
|
public int code
public java.lang.String component
public java.lang.String message
public java.lang.String level
public long date
public GlobalLogEntry()
public GlobalLogEntry(GlobalLogEntry o)
public void setCode(int code)
public int getCode()
public GlobalLogEntry withCode(int code)
public GlobalLogEntry withCode(java.lang.Integer code)
public void setComponent(java.lang.String component)
public java.lang.String getComponent()
public GlobalLogEntry withComponent(java.lang.String component)
public void setMessage(java.lang.String message)
public java.lang.String getMessage()
public GlobalLogEntry withMessage(java.lang.String message)
public void setLevel(java.lang.String level)
public java.lang.String getLevel()
public GlobalLogEntry withLevel(java.lang.String level)
public void setDate(long date)
public long getDate()
public GlobalLogEntry withDate(long date)
public GlobalLogEntry withDate(java.lang.Long date)
public GlobalLogEntry makeCopy()
public static GlobalLogEntry readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static GlobalLogEntry fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.