Class LogRecordRequestBody

java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.LogRecordRequestBody

public class LogRecordRequestBody extends Object
LogRecordRequestBody provides a structure for passing a log record as a request body over a REST API.
  • Constructor Details

    • LogRecordRequestBody

      public LogRecordRequestBody()
      Default constructor
    • LogRecordRequestBody

      public LogRecordRequestBody(LogRecordRequestBody template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getConnectorInstanceId

      public String getConnectorInstanceId()
      Return the instance id of the connector making the log record.
      Returns:
      unique instance id
    • setConnectorInstanceId

      public void setConnectorInstanceId(String connectorInstanceId)
      Set up the instance id of the connector making the log record.
      Parameters:
      connectorInstanceId - unique instance id
    • getConnectionName

      public String getConnectionName()
      Return the name of the connection used to create the connector making the log request.
      Returns:
      connection name
    • setConnectionName

      public void setConnectionName(String connectionName)
      Set up the name of the connection used to create the connector making the log request.
      Parameters:
      connectionName - connection name
    • getConnectorType

      public String getConnectorType()
      Return the type of connector making the log record.
      Returns:
      connector type
    • setConnectorType

      public void setConnectorType(String connectorType)
      Set up the type of connector making the log record.
      Parameters:
      connectorType - connector type
    • getContextId

      public String getContextId()
      Return the function name, or processId of the activity that the caller is performing.
      Returns:
      context id
    • setContextId

      public void setContextId(String contextId)
      Set up the function name, or processId of the activity that the caller is performing.
      Parameters:
      contextId - context id
    • getMessage

      public String getMessage()
      Return the actual log message.
      Returns:
      text
    • setMessage

      public void setMessage(String message)
      Set up the actual log message.
      Parameters:
      message - text
    • toString

      public String toString()
      JSON-style toString.
      Overrides:
      toString in class Object
      Returns:
      list of properties and their values.
    • equals

      public boolean equals(Object objectToCompare)
      Equals method that returns true if containing properties are the same.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - object to compare
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class Object
      Returns:
      int hash code