|
||||
0001 /** 0002 * Licensed to the Apache Software Foundation (ASF) under one 0003 * or more contributor license agreements. See the NOTICE file 0004 * distributed with this work for additional information 0005 * regarding copyright ownership. The ASF licenses this file 0006 * to you under the Apache License, Version 2.0 (the 0007 * "License"); you may not use this file except in compliance 0008 * with the License. You may obtain a copy of the License at 0009 * 0010 * http://www.apache.org/licenses/LICENSE-2.0 0011 * 0012 * Unless required by applicable law or agreed to in writing, software 0013 * distributed under the License is distributed on an "AS IS" BASIS, 0014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0015 * See the License for the specific language governing permissions and 0016 * limitations under the License. 0017 */ 0018 0019 package org.apache.hive.service.cli.session; 0020 0021 import org.apache.hadoop.hive.conf.HiveConf; 0022 import org.apache.hadoop.hive.ql.session.SessionState; 0023 import org.apache.hive.service.cli.SessionHandle; 0024 import org.apache.hive.service.cli.operation.OperationManager; 0025 import org.apache.hive.service.rpc.thrift.TProtocolVersion; 0026 0027 import java.io.File; 0028 0029 /** 0030 * Methods that don't need to be executed under a doAs 0031 * context are here. Rest of them in HiveSession interface 0032 */ 0033 public interface HiveSessionBase { 0034 0035 TProtocolVersion getProtocolVersion(); 0036 0037 /** 0038 * Set the session manager for the session 0039 * @param sessionManager 0040 */ 0041 void setSessionManager(SessionManager sessionManager); 0042 0043 /** 0044 * Get the session manager for the session 0045 */ 0046 SessionManager getSessionManager(); 0047 0048 /** 0049 * Set operation manager for the session 0050 * @param operationManager 0051 */ 0052 void setOperationManager(OperationManager operationManager); 0053 0054 /** 0055 * Check whether operation logging is enabled and session dir is created successfully 0056 */ 0057 boolean isOperationLogEnabled(); 0058 0059 /** 0060 * Get the session dir, which is the parent dir of operation logs 0061 * @return a file representing the parent directory of operation logs 0062 */ 0063 File getOperationLogSessionDir(); 0064 0065 /** 0066 * Set the session dir, which is the parent dir of operation logs 0067 * @param operationLogRootDir the parent dir of the session dir 0068 */ 0069 void setOperationLogSessionDir(File operationLogRootDir); 0070 0071 SessionHandle getSessionHandle(); 0072 0073 String getUsername(); 0074 0075 String getPassword(); 0076 0077 HiveConf getHiveConf(); 0078 0079 SessionState getSessionState(); 0080 0081 String getUserName(); 0082 0083 void setUserName(String userName); 0084 0085 String getIpAddress(); 0086 0087 void setIpAddress(String ipAddress); 0088 0089 long getLastAccessTime(); 0090 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |