deniskuzZ commented on code in PR #5319: URL: https://github.com/apache/hive/pull/5319#discussion_r1890186492
########## ql/src/java/org/apache/hadoop/hive/ql/session/ProcessListInfo.java: ########## @@ -0,0 +1,142 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.hadoop.hive.ql.session; + +/** + * The class to store query and associated session level info to be used for ProcessListProcessor. + */ +public class ProcessListInfo { + private final String sessionId; + private final String userName; + private final String ipAddr; + private final long sessionActiveTime; + private final long sessionIdleTime; + private final String executionEngine; + private final String queryId; + private final String beginTime; + private final String runtime; // tracks only running portion of the query. + private final long elapsedTime; + private final String state; + + private ProcessListInfo( String userName, String ipAddr, String sessionId, long sessionActiveTime, + long sessionIdleTime,String queryId, String executionEngine, String beginTime, + String runtime, long elapsedTime, String state ) { + this.userName = userName; + this.ipAddr = ipAddr; + this.sessionId = sessionId; + this.sessionActiveTime = sessionActiveTime; + this.sessionIdleTime = sessionIdleTime; + this.queryId = queryId; + this.executionEngine = executionEngine; + this.beginTime = beginTime; + this.runtime= runtime; + this.elapsedTime = elapsedTime; + this.state = state; + } + + public String getSessionId() { return sessionId; } + public String getUserName() { + return userName; + } + public String getIpAddr() { + return ipAddr; + } + public long getSessionActiveTime() { return sessionActiveTime; } + public long getSessionIdleTime() { return sessionIdleTime; } + public String getExecutionEngine() { return executionEngine; } + public String getBeginTime() { return beginTime; } + public String getQueryId() { return queryId; } + public String getRuntime() { return runtime; } + public long getElapsedTime() { return elapsedTime; } + public String getState() { return state; } + public static class Builder { Review Comment: new line -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org