类 AccessLogData


  • public final class AccessLogData
    extends Object
    AccessLogData is a container for log event data. In internally uses map and store each filed of log as value. It does not generate any dynamic value e.g. time stamp, local jmv machine host address etc. It does not allow any null or empty key. Note: since its date formatter is a singleton, make sure to run it in single thread only.
    • 方法详细资料

      • newLogData

        public static AccessLogData newLogData()
        Get new instance of log data.
        返回:
        instance of AccessLogData
      • setVersion

        public void setVersion​(String version)
        Add version information.
        参数:
        version -
      • setServiceName

        public void setServiceName​(String serviceName)
        Add service name.
        参数:
        serviceName -
      • setGroup

        public void setGroup​(String group)
        Add group name
        参数:
        group -
      • setInvocationTime

        public void setInvocationTime​(Date invocationTime)
        Set the invocation date. As an argument it accept date string.
        参数:
        invocationTime -
      • setMethodName

        public void setMethodName​(String methodName)
        Set target method name.
        参数:
        methodName -
      • setTypes

        public void setTypes​(Class[] types)
        Set invocation's method's input parameter's types
        参数:
        types -
      • setArguments

        public void setArguments​(Object[] arguments)
        Sets invocation arguments
        参数:
        arguments -
      • getServiceName

        public String getServiceName()
        Return gthe service of access log entry
        返回:
      • getLogMessage

        public String getLogMessage()
      • buildAccessLogData

        public void buildAccessLogData​(Invoker<?> invoker,
                                       Invocation inv)