Class LogRecordDetails

java.lang.Object
org.netxms.client.log.LogRecordDetails

public class LogRecordDetails extends Object
Log record details
  • Constructor Details

    • LogRecordDetails

      protected LogRecordDetails(long id, NXCPMessage msg)
      Create new object from server response.
      Parameters:
      id - record ID
      msg - 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

      public List<LogColumn> getColumnDefinitions()
      Get definitions for "details" columns.
      Returns:
      definitions for "details" columns
    • getColumnIndex

      public int getColumnIndex(String name)
      Get index of column with given name.
      Parameters:
      name - column name
      Returns:
      column index or -1
    • getValues

      public List<String> getValues()
      Get values in "details" columns.
      Returns:
      values in "details" columns
    • getValue

      public String getValue(int index)
      Get value for column with given index.
      Parameters:
      index - column index
      Returns:
      value for column with given index or null
    • getValue

      public String getValue(String columnName)
      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

      public long getValueAsLong(String columnName)
      Get value for column with given name as long integer.
      Parameters:
      columnName - column name
      Returns:
      value for column with given index or 0
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: