|
|||||||||
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.client.QueryClient
public class QueryClient
Client-end to the FeiQ web service
Field Summary | |
---|---|
protected Random |
_random
|
protected int |
max_size
|
Constructor Summary | |
---|---|
QueryClient(QLoginInfo loginInfo,
Map options)
|
|
QueryClient(String serviceUrl,
QLoginInfo loginInfo,
Map options)
Constructor |
Method Summary | |
---|---|
protected Map<String,ClientRestartCache> |
attemptLoadCrcMap(boolean forceLoad)
Will attempt to load the map of CRC's based on whether the RESTART option appears in the options map. |
int |
close()
Method to close this admin channel. |
protected void |
completeSystemQuery(Map<String,ClientRestartCache> crcMap)
Called prior to a query creation. |
protected Date |
getDateFromCacheMap(String filetype,
Map<String,ClientRestartCache> restartCacheMap)
Extracts the Date associated with a filetype from the map if found. |
QLoginInfo |
getLoginInfo()
|
String |
getServerGroup()
|
String |
getServiceUrlString()
Accessor method to get the service URL as string |
int |
getTransactionCount()
|
int |
getTransactionId()
Get new transaction id. |
protected void |
init()
|
protected void |
initSystemQuery()
|
boolean |
isAlive()
|
boolean |
isQueryActive()
|
Result |
result()
Read next result from this client. |
int |
sendQuery()
Sends single query. |
void |
setUserQuery(QueryList query)
|
int |
subscribeQuery()
Subscribes a query. |
int |
unsubscribeQuery()
Kills a query subscription. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int max_size
protected Random _random
Constructor Detail |
---|
public QueryClient(QLoginInfo loginInfo, Map options) throws SessionException
SessionException
public QueryClient(String serviceUrl, QLoginInfo loginInfo, Map options) throws SessionException
serviceUrl
- The query service URLloginInfo
- Session login information for serviceoptions
- Map of options, can contain output, restart,
date filters, date format, file expressions
SessionException
- when failed to initializeMethod Detail |
---|
protected void init() throws SessionException
SessionException
protected void initSystemQuery() throws SessionException
SessionException
public final String getServiceUrlString()
public final String getServerGroup()
public final QLoginInfo getLoginInfo()
public void setUserQuery(QueryList query)
public int sendQuery() throws SessionException
SessionException
- if error occurspublic int subscribeQuery() throws SessionException
SessionException
- if error occurspublic int unsubscribeQuery() throws SessionException
SessionException
- if error occurspublic Result result() throws SessionException
getTransactionCount()
returns 0.
SessionException
- if error occurspublic boolean isQueryActive()
public final int close()
close
in interface Closable
public int getTransactionId()
public int getTransactionCount()
public boolean isAlive()
protected Map<String,ClientRestartCache> attemptLoadCrcMap(boolean forceLoad) throws SessionException
forceLoad
- Forces caches to be loaded
SessionException
- if error occursprotected Date getDateFromCacheMap(String filetype, Map<String,ClientRestartCache> restartCacheMap) throws SessionException
filetype
- Name of the file type for which a date is requestedrestartCacheMap
- Map of ClientRestartCache instances that contain
restart info
SessionException
- if error occursprotected void completeSystemQuery(Map<String,ClientRestartCache> crcMap) throws SessionException
crcMap
- Map of client restart caches for filetypes
SessionException
- if error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |