类 InterfaceLogBean
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.log.InterfaceLogBean
Interface log class, which is used to format logs.
-
字段概要
字段修饰符和类型字段说明private static final Stringprivate StringInterface type.private StringInterface nameprivate StringEnter the interface product.private StringProtocol type.private StringRequest parameter.private DateTime when the northbound interface receives a request and time when the southbound interface sends a request.private StringTime format: yyyy-MM-dd HH:mm:ssprivate StringResponse parameter.private DateResponse time of the northbound interface, and time when the southbound interface receives the response.private StringTime format: yyyy-MM-dd HH:mm:ssprivate StringResult code returned by the interfaceprivate StringSource device.private StringSink device.private StringUnique ID of the transaction to which an interface message belongs. -
构造器概要
构造器构造器说明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. -
方法概要
修饰符和类型方法说明getName()voidsetInterfaceType(String interfaceType) voidvoidsetProduct(String product) voidsetProtocolType(String protocolType) voidsetReqParams(String reqParams) voidsetReqTime(Date reqTime) voidsetReqTimeAsString(String reqTimeAsString) voidsetResponseInfo(String respParams, String resultCode) Configure the response information.
The default response time is the time when the method is called.voidsetRespParams(String respParams) voidsetRespTime(Date respTime) voidsetRespTimeAsString(String respTimeAsString) voidsetResultCode(String resultCode) voidsetSourceAddr(String sourceAddr) voidsetTargetAddr(String targetAddr) voidsetTransactionId(String transactionId) toString()
-
字段详细资料
-
DATE_FMT_YYYYMMDDHHMMSS
- 另请参阅:
-
transactionId
Unique ID of the transaction to which an interface message belongs. If no transaction ID exists, this parameter is left empty. -
product
Enter the interface product. For example, enter UC for the UC interface. The products include UC, IVS, TP, FusionSphere, and Storage. -
interfaceType
Interface type. The value can be 1 or 2. 1: northbound interface. 2: southbound interface -
protocolType
Protocol type. The options are SOAP (ParlayX), Rest, COM, Native, HTTP+XML, and SMPP. -
name
Interface name -
sourceAddr
Source device. The client API class is empty. The parameter is not displayed externally. -
targetAddr
Sink device. The API class of the client is empty. The parameter is not displayed externally. -
reqTime
Time when the northbound interface receives a request and time when the southbound interface sends a request. -
reqTimeAsString
Time format: yyyy-MM-dd HH:mm:ss -
respTime
Response time of the northbound interface, and time when the southbound interface receives the response. -
respTimeAsString
Time format: yyyy-MM-dd HH:mm:ss -
reqParams
Request parameter. The keyword needs to be replaced with *. -
resultCode
Result code returned by the interface -
respParams
Response parameter. The keyword needs to be replaced with *.
-
-
构造器详细资料
-
InterfaceLogBean
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 nametargetAddr- IP address of the target hostrequestParams- Request parameters
-
-
方法详细资料
-
setResponseInfo
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 parametersresultCode- Result code
-
getTransactionId
-
setTransactionId
-
getProduct
-
setProduct
-
getInterfaceType
-
setInterfaceType
-
getProtocolType
-
setProtocolType
-
getName
-
setName
-
getSourceAddr
-
setSourceAddr
-
getTargetAddr
-
setTargetAddr
-
getReqTime
-
setReqTime
-
getReqTimeAsString
-
setReqTimeAsString
-
getRespTime
-
setRespTime
-
getRespTimeAsString
-
setRespTimeAsString
-
getReqParams
-
setReqParams
-
getResultCode
-
setResultCode
-
getRespParams
-
setRespParams
-
toString
-