diff --git a/core/src/main/java/com/flipkart/gjex/core/filter/grpc/AccessLogGrpcFilter.java b/core/src/main/java/com/flipkart/gjex/core/filter/grpc/AccessLogGrpcFilter.java index 6a419879..9b278353 100644 --- a/core/src/main/java/com/flipkart/gjex/core/filter/grpc/AccessLogGrpcFilter.java +++ b/core/src/main/java/com/flipkart/gjex/core/filter/grpc/AccessLogGrpcFilter.java @@ -14,10 +14,6 @@ public class AccessLogGrpcFilter extends GrpcFilter { private long startTime = 0; private RequestParams requestParams; - @Override - public GrpcFilter getInstance(){ - return new AccessLogGrpcFilter<>(); - } @Override public void doProcessRequest(RequestParams requestParams) { @@ -41,4 +37,26 @@ public void doProcessResponse(ResponseParams responseParams) { .append(System.currentTimeMillis()-startTime); info("access-log", sb.toString()); } + + @Override + public GrpcFilter getInstance(){ + return new AccessLogGrpcFilter<>(); + } + + public long getStartTime() { + return startTime; + } + + public void setStartTime(long startTime) { + this.startTime = startTime; + } + + public RequestParams getRequestParams() { + return requestParams; + } + + public void setRequestParams(RequestParams requestParams) { + this.requestParams = requestParams; + } + } diff --git a/core/src/main/java/com/flipkart/gjex/core/filter/http/AccessLogHttpFilter.java b/core/src/main/java/com/flipkart/gjex/core/filter/http/AccessLogHttpFilter.java index 2abab210..de982a33 100644 --- a/core/src/main/java/com/flipkart/gjex/core/filter/http/AccessLogHttpFilter.java +++ b/core/src/main/java/com/flipkart/gjex/core/filter/http/AccessLogHttpFilter.java @@ -54,4 +54,20 @@ public void doProcessResponse(ResponseParams response) { @Override public void init(FilterConfig filterConfig) throws ServletException {} + + public long getStartTime() { + return startTime; + } + + public void setStartTime(long startTime) { + this.startTime = startTime; + } + + public StringBuilder getSb() { + return sb; + } + + public void setSb(StringBuilder sb) { + this.sb = sb; + } }