Class ThriftStructuredLog
- java.lang.Object
-
- com.linecorp.armeria.server.logging.structured.StructuredLog
-
- com.linecorp.armeria.server.thrift.ThriftStructuredLog
-
public class ThriftStructuredLog extends com.linecorp.armeria.server.logging.structured.StructuredLogA representation and constructor of a service log which holds Apache Thrift based RPC invocation oriented information.
-
-
Constructor Summary
Constructors Constructor Description ThriftStructuredLog(com.linecorp.armeria.common.logging.RequestLog reqLog)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThriftCallthriftCall()Returns theThriftCallobject which includes Thrift call information of the log.StringthriftMethodName()Returns the Thrift method name which was called in the context of the log.ThriftReplythriftReply()Returns theThriftReplyobject which includes Thrift reply information of the log.StringthriftServiceName()Returns the fully qualified Thrift service name which is associated to the log.StringtoString()
-
-
-
Constructor Detail
-
ThriftStructuredLog
public ThriftStructuredLog(com.linecorp.armeria.common.logging.RequestLog reqLog)
ConstructsThriftStructuredLogfromRequestContextandRequestLog. Can be used asStructuredLogBuilder.
-
-
Method Detail
-
thriftServiceName
@Nullable public String thriftServiceName()
Returns the fully qualified Thrift service name which is associated to the log.- Returns:
- fully qualified Thrift service name
-
thriftMethodName
@Nullable public String thriftMethodName()
Returns the Thrift method name which was called in the context of the log.- Returns:
- Thrift method name
-
thriftCall
@Nullable public ThriftCall thriftCall()
Returns theThriftCallobject which includes Thrift call information of the log.- Returns:
- an instance of
ThriftCallwhich is associated to the log
-
thriftReply
@Nullable public ThriftReply thriftReply()
Returns theThriftReplyobject which includes Thrift reply information of the log.- Returns:
- an instance of
ThriftReplywhich is associated to the log
-
toString
public String toString()
- Overrides:
toStringin classcom.linecorp.armeria.server.logging.structured.StructuredLog
-
-