Package org.apache.dubbo.rpc.support
Class AccessLogData
java.lang.Object
org.apache.dubbo.rpc.support.AccessLogData
AccessLogData is a container for log event data. In internally uses map and store each field of log as value. It
does not generate any dynamic value e.g. time stamp, local jvm machine host address etc. It does not allow any null
or empty key.
-
Method Summary
Modifier and TypeMethodDescriptionvoidbuildAccessLogData(Invoker<?> invoker, Invocation inv) Return gthe service of access log entrystatic AccessLogDataGet new instance of log data.voidsetArguments(Object[] arguments) Sets invocation argumentsvoidAdd group namevoidsetInvocationTime(Date invocationTime) Set the invocation date.voidsetMethodName(String methodName) Set target method name.voidsetOutTime(Date outTime) Set the out date.voidsetServiceName(String serviceName) Add service name.voidSet invocation's method's input parameter's typesvoidsetVersion(String version) Add version information.
-
Method Details
-
newLogData
Get new instance of log data.- Returns:
- instance of AccessLogData
-
setVersion
Add version information.- Parameters:
version-
-
setServiceName
Add service name.- Parameters:
serviceName-
-
setGroup
Add group name- Parameters:
group-
-
setInvocationTime
Set the invocation date. As an argument it accept date string.- Parameters:
invocationTime-
-
setOutTime
Set the out date. As an argument it accept date string.- Parameters:
outTime-
-
setMethodName
Set target method name.- Parameters:
methodName-
-
setTypes
Set invocation's method's input parameter's types- Parameters:
types-
-
setArguments
Sets invocation arguments- Parameters:
arguments-
-
getServiceName
Return gthe service of access log entry- Returns:
-
getLogMessage
-
buildAccessLogData
-