|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.hwi.HWISessionManager
public class HWISessionManager
HiveSessionManager is a Runnable started inside a web application context. It's basic function is to hold a collection of SessionItem(s). It also works as a facade, as jsp clients can not create a Hive Session directly. Hive Sessions are long lived, unlike a traditional Query and Block system clients set up the query to be started with an instance of this class.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
l4j
|
Constructor Summary | |
---|---|
protected |
HWISessionManager()
|
Method Summary | |
---|---|
HWISessionItem |
createSession(HWIAuth a,
String sessionName)
Here we handle creating the SessionItem, we do this for the JSP client because we need to set parameters the client is not aware of. |
ArrayList<HWISessionItem> |
findAllSessionItems()
Rather then return the actual items we return a list copies. |
Set<HWISessionItem> |
findAllSessionsForUser(HWIAuth auth)
Used to list all the sessions of a user. |
Set<HWIAuth> |
findAllUsersWithSessions()
Used to list all users that have at least one session. |
HWISessionItem |
findSessionItemByName(HWIAuth auth,
String sessionname)
Helper method useful when you know the session name you wish to reference. |
protected TreeMap<HWIAuth,Set<HWISessionItem>> |
getItems()
|
protected boolean |
isGoOn()
|
void |
run()
This method scans the SessionItem collection. |
protected void |
setGoOn(boolean goOn)
|
protected void |
setItems(TreeMap<HWIAuth,Set<HWISessionItem>> items)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log l4j
Constructor Detail |
---|
protected HWISessionManager()
Method Detail |
---|
public void run()
run
in interface Runnable
protected boolean isGoOn()
protected void setGoOn(boolean goOn)
protected TreeMap<HWIAuth,Set<HWISessionItem>> getItems()
protected void setItems(TreeMap<HWIAuth,Set<HWISessionItem>> items)
public ArrayList<HWISessionItem> findAllSessionItems()
public HWISessionItem createSession(HWIAuth a, String sessionName)
a
- Authenticated usersessionName
- Represents the session name
public HWISessionItem findSessionItemByName(HWIAuth auth, String sessionname)
sessionname
-
public Set<HWIAuth> findAllUsersWithSessions()
public Set<HWISessionItem> findAllSessionsForUser(HWIAuth auth)
auth
- the user being enquired about
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |