Package org.netxms.client.log
Class LogRecordDetails
java.lang.Object
org.netxms.client.log.LogRecordDetails
Log record details
-
Constructor Summary
ModifierConstructorDescriptionprotected
LogRecordDetails
(long id, NXCPMessage msg) Create new object from server response. -
Method Summary
Modifier and TypeMethodDescriptionint
Get number of "details" columns in this record.Get definitions for "details" columns.int
getColumnIndex
(String name) Get index of column with given name.long
getId()
Get ID of this record.getValue
(int index) Get value for column with given index.Get value for column with given name.long
getValueAsLong
(int index) Get value for column with given index as long integer.long
getValueAsLong
(String columnName) Get value for column with given name as long integer.Get values in "details" columns.toString()
-
Constructor Details
-
LogRecordDetails
Create new object from server response.- Parameters:
id
- record IDmsg
- NXCP message
-
-
Method Details
-
getId
public long getId()Get ID of this record.- Returns:
- ID of this record
-
getColumnCount
public int getColumnCount()Get number of "details" columns in this record.- Returns:
- number of "details" columns in this record
-
getColumnDefinitions
Get definitions for "details" columns.- Returns:
- definitions for "details" columns
-
getColumnIndex
Get index of column with given name.- Parameters:
name
- column name- Returns:
- column index or -1
-
getValues
Get values in "details" columns.- Returns:
- values in "details" columns
-
getValue
Get value for column with given index.- Parameters:
index
- column index- Returns:
- value for column with given index or null
-
getValue
Get value for column with given name.- Parameters:
columnName
- column name- Returns:
- value for column with given name or null
-
getValueAsLong
public long getValueAsLong(int index) Get value for column with given index as long integer.- Parameters:
index
- column index- Returns:
- value for column with given index or 0
-
getValueAsLong
Get value for column with given name as long integer.- Parameters:
columnName
- column name- Returns:
- value for column with given index or 0
-
toString
-