|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpl.mipl.mdms.FileService.komodo.services.query.server.QSessionData
public class QSessionData
Purpose: This class encapsulates the data used for a FEIq session. This includes the user information, filetype capabilities, query blob, and a results collection.
Copyright 2007, California Institute of Technology. ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledge. 2007.
============================================================================ Modification History : ---------------------- Date Who What ---------------------------------------------------------------------------- 05/31/2007 Nick Initial Release ============================================================================
Field Summary | |
---|---|
protected long |
creationTime
|
protected java.util.Map<java.lang.String,Capability> |
filetypeCaps
|
protected java.util.List<java.lang.String> |
filetypes
|
protected java.lang.String |
id
|
protected int |
maximumResultCount
|
protected java.lang.String |
password
|
protected QueryList |
queryBlob
|
protected java.lang.Object |
queryServiceObject
|
protected QResultQueueManager |
resultsMap
|
protected java.lang.String |
serverGroup
|
protected QSession |
session
|
protected boolean |
subscribe
|
protected QueryConstraints |
systemQuery
|
protected java.lang.String |
user
|
Method Summary | |
---|---|
protected void |
_setFiletypes(java.lang.String[] filetypes)
|
boolean |
addResult(QResult result)
|
protected void |
addResultNoWait(QResult result)
Adds a result to the result queue based on the filetype of the result. |
long |
getCreationTime()
|
Capability |
getFiletypeCapability(java.lang.String filetype)
|
java.lang.String[] |
getFiletypes()
Returns an array of filetype names |
java.lang.Long |
getFiletypeTime(java.lang.String filetype)
|
java.lang.String |
getId()
Returns the session identifier |
int |
getMaximumResultCount()
Returns the current maximum result count. |
java.lang.String |
getPassword()
|
QueryList |
getQueryBlob()
|
java.lang.Object |
getQueryServiceObject()
|
QResultQueueManager |
getResultsManager()
|
java.lang.String |
getServerGroup()
|
QSession |
getSession()
|
QueryConstraints |
getSystemQuery()
|
java.lang.String |
getUser()
|
boolean |
ingestResult(QResult result,
Closeable caller)
Adds a result to the result queue based on the filetype of the result. |
protected void |
init()
|
boolean |
isSubscribe()
|
void |
reset()
|
void |
setFiletypeCapability(java.lang.String filetype,
Capability capability)
|
void |
setFiletypes(java.lang.String[] filetypes)
Assigns an array of filetype names for this session. |
void |
setFiletypeTime(java.lang.String filetype,
java.lang.Long time)
|
void |
setMaximumResultCount(int maximumResultCount)
Sets the maximum result count. |
void |
setQueryBlob(QueryList queryBlob)
|
void |
setQueryServiceObject(java.lang.Object queryServiceObject)
|
void |
setSession(QSession session)
|
void |
setSubscribe(boolean subscribe)
|
void |
setSystemQuery(QueryConstraints systemQuery)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String id
protected java.util.List<java.lang.String> filetypes
protected java.util.Map<java.lang.String,Capability> filetypeCaps
protected QResultQueueManager resultsMap
protected QueryList queryBlob
protected QueryConstraints systemQuery
protected java.lang.Object queryServiceObject
protected QSession session
protected java.lang.String serverGroup
protected java.lang.String user
protected java.lang.String password
protected long creationTime
protected boolean subscribe
protected int maximumResultCount
Method Detail |
---|
protected void init()
public java.lang.String getId()
public java.lang.String[] getFiletypes()
public void setFiletypes(java.lang.String[] filetypes)
filetypes
- the filetypes to setprotected void _setFiletypes(java.lang.String[] filetypes)
public java.lang.Long getFiletypeTime(java.lang.String filetype)
public void setFiletypeTime(java.lang.String filetype, java.lang.Long time)
filetypeTimes
- the filetypeTimes to setpublic Capability getFiletypeCapability(java.lang.String filetype)
public void setFiletypeCapability(java.lang.String filetype, Capability capability)
filetypeTimes
- the filetypeTimes to setpublic QueryList getQueryBlob()
public void setQueryBlob(QueryList queryBlob)
queryBlob
- the queryBlob to setpublic QueryConstraints getSystemQuery()
public void setSystemQuery(QueryConstraints systemQuery)
systemQuery
- the internal system querypublic java.lang.Object getQueryServiceObject()
public void setQueryServiceObject(java.lang.Object queryServiceObject)
queryServiceObject
- the queryServiceObject to setpublic long getCreationTime()
public java.lang.String getPassword()
public java.lang.String getServerGroup()
public java.lang.String getUser()
public void reset()
public void setSession(QSession session)
public QSession getSession()
protected void addResultNoWait(QResult result)
result
- Result to be addedpublic boolean ingestResult(QResult result, Closeable caller)
result
- Result to be addedcaller
- Closeable impl that, when closed, signals that
result ingestion should be abortedpublic boolean addResult(QResult result)
public int getMaximumResultCount()
public void setMaximumResultCount(int maximumResultCount) throws java.lang.IllegalArgumentException
maximumResultCount
- the maximumResultCount to set
java.lang.IllegalArgumentException
public boolean isSubscribe()
public void setSubscribe(boolean subscribe)
subscribe
- the subscribe to setpublic QResultQueueManager getResultsManager()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |