类 InterfaceLogBean

java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.log.InterfaceLogBean

public class InterfaceLogBean extends Object
Interface log class, which is used to format logs.
  • 字段详细资料

    • DATE_FMT_YYYYMMDDHHMMSS

      private static final String DATE_FMT_YYYYMMDDHHMMSS
      另请参阅:
    • transactionId

      private String transactionId
      Unique ID of the transaction to which an interface message belongs. If no transaction ID exists, this parameter is left empty.
    • product

      private String product
      Enter the interface product. For example, enter UC for the UC interface. The products include UC, IVS, TP, FusionSphere, and Storage.
    • interfaceType

      private String interfaceType
      Interface type. The value can be 1 or 2. 1: northbound interface. 2: southbound interface
    • protocolType

      private String protocolType
      Protocol type. The options are SOAP (ParlayX), Rest, COM, Native, HTTP+XML, and SMPP.
    • name

      private String name
      Interface name
    • sourceAddr

      private String sourceAddr
      Source device. The client API class is empty. The parameter is not displayed externally.
    • targetAddr

      private String targetAddr
      Sink device. The API class of the client is empty. The parameter is not displayed externally.
    • reqTime

      private Date reqTime
      Time when the northbound interface receives a request and time when the southbound interface sends a request.
    • reqTimeAsString

      private String reqTimeAsString
      Time format: yyyy-MM-dd HH:mm:ss
    • respTime

      private Date respTime
      Response time of the northbound interface, and time when the southbound interface receives the response.
    • respTimeAsString

      private String respTimeAsString
      Time format: yyyy-MM-dd HH:mm:ss
    • reqParams

      private String reqParams
      Request parameter. The keyword needs to be replaced with *.
    • resultCode

      private String resultCode
      Result code returned by the interface
    • respParams

      private String respParams
      Response parameter. The keyword needs to be replaced with *.
  • 构造器详细资料

    • InterfaceLogBean

      public InterfaceLogBean(String name, String targetAddr, String reqParams)
      Default InterfaceType 1, Product Storage, ProtocolType HTTP+XML, ReqTime Construction time, sourceAddr Local IP address, transactionId Request ID, which can be the currently generated UUID. Response information needs to be set when the response is returned.
      参数:
      name - Interface name
      targetAddr - IP address of the target host
      requestParams - Request parameters
  • 方法详细资料

    • setResponseInfo

      public void setResponseInfo(String respParams, String resultCode)
      Configure the response information.
      The default response time is the time when the method is called. You can also call the setRespTime method to specify the response time.
      参数:
      respParams - Response parameters
      resultCode - Result code
    • getTransactionId

      public String getTransactionId()
    • setTransactionId

      public void setTransactionId(String transactionId)
    • getProduct

      public String getProduct()
    • setProduct

      public void setProduct(String product)
    • getInterfaceType

      public String getInterfaceType()
    • setInterfaceType

      public void setInterfaceType(String interfaceType)
    • getProtocolType

      public String getProtocolType()
    • setProtocolType

      public void setProtocolType(String protocolType)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getSourceAddr

      public String getSourceAddr()
    • setSourceAddr

      public void setSourceAddr(String sourceAddr)
    • getTargetAddr

      public String getTargetAddr()
    • setTargetAddr

      public void setTargetAddr(String targetAddr)
    • getReqTime

      public Date getReqTime()
    • setReqTime

      public void setReqTime(Date reqTime)
    • getReqTimeAsString

      public String getReqTimeAsString()
    • setReqTimeAsString

      public void setReqTimeAsString(String reqTimeAsString)
    • getRespTime

      public Date getRespTime()
    • setRespTime

      public void setRespTime(Date respTime)
    • getRespTimeAsString

      public String getRespTimeAsString()
    • setRespTimeAsString

      public void setRespTimeAsString(String respTimeAsString)
    • getReqParams

      public String getReqParams()
    • setReqParams

      public void setReqParams(String reqParams)
    • getResultCode

      public String getResultCode()
    • setResultCode

      public void setResultCode(String resultCode)
    • getRespParams

      public String getRespParams()
    • setRespParams

      public void setRespParams(String respParams)
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object