|
|||||||||
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 Map<String,Capability> |
filetypeCaps
|
protected List<String> |
filetypes
|
protected String |
id
|
protected int |
maximumResultCount
|
protected String |
password
|
protected QueryList |
queryBlob
|
protected Object |
queryServiceObject
|
protected QResultQueueManager |
resultsMap
|
protected String |
serverGroup
|
protected QSession |
session
|
protected boolean |
subscribe
|
protected QueryConstraints |
systemQuery
|
protected String |
user
|
Method Summary | |
---|---|
protected void |
_setFiletypes(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(String filetype)
|
String[] |
getFiletypes()
Returns an array of filetype names |
Long |
getFiletypeTime(String filetype)
|
String |
getId()
Returns the session identifier |
int |
getMaximumResultCount()
Returns the current maximum result count. |
String |
getPassword()
|
QueryList |
getQueryBlob()
|
Object |
getQueryServiceObject()
|
QResultQueueManager |
getResultsManager()
|
String |
getServerGroup()
|
QSession |
getSession()
|
QueryConstraints |
getSystemQuery()
|
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(String filetype,
Capability capability)
|
void |
setFiletypes(String[] filetypes)
Assigns an array of filetype names for this session. |
void |
setFiletypeTime(String filetype,
Long time)
|
void |
setMaximumResultCount(int maximumResultCount)
Sets the maximum result count. |
void |
setQueryBlob(QueryList queryBlob)
|
void |
setQueryServiceObject(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 String id
protected List<String> filetypes
protected Map<String,Capability> filetypeCaps
protected QResultQueueManager resultsMap
protected QueryList queryBlob
protected QueryConstraints systemQuery
protected Object queryServiceObject
protected QSession session
protected String serverGroup
protected String user
protected String password
protected long creationTime
protected boolean subscribe
protected int maximumResultCount
Method Detail |
---|
protected void init()
public String getId()
public String[] getFiletypes()
public void setFiletypes(String[] filetypes)
filetypes
- the filetypes to setprotected void _setFiletypes(String[] filetypes)
public Long getFiletypeTime(String filetype)
public void setFiletypeTime(String filetype, Long time)
filetypeTimes
- the filetypeTimes to setpublic Capability getFiletypeCapability(String filetype)
public void setFiletypeCapability(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 Object getQueryServiceObject()
public void setQueryServiceObject(Object queryServiceObject)
queryServiceObject
- the queryServiceObject to setpublic long getCreationTime()
public String getPassword()
public String getServerGroup()
public 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 IllegalArgumentException
maximumResultCount
- the maximumResultCount to set
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 |