|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Observable com.k_int.IR.SearchTask org.vfny.geoserver.zserver.GeoSearchTask
An extension of SearchTask that implements InformationFragmentSource. Thus this class does handles the query, and gets the results. To access the results some form of getInformationFragmentSource must be called.
Field Summary | |
int |
geo_search_status
The status of the search. |
Fields inherited from class com.k_int.IR.SearchTask |
create_time, max_messages, message_log, query, requestedSyntax, requestedSyntaxName, TASK_COMPLETE, TASK_EXECUTING, TASK_FAILURE, task_identifier, TASK_IDLE, TASK_MESSAGE_DIAGNOSTIC, TASK_MESSAGE_ERROR, TASK_MESSAGE_INFO, TASK_MESSAGE_WARNING, task_status_code, TASK_UNDEFINED, user_data |
Fields inherited from interface com.k_int.IR.InformationFragmentSource |
default_spec |
Constructor Summary | |
GeoSearchTask(GeoSearchable source,
com.k_int.IR.IRQuery q)
Constructer to create a search task. |
Method Summary | |
void |
asyncGetFragment(int starting_fragment,
int count,
com.k_int.IR.RecordFormatSpecification spec,
com.k_int.IR.IFSNotificationTarget target)
Needed to conform to SearchTask interface. |
void |
destroy()
Release all resources and shut down the object |
void |
destroyTask()
From SearchTask abstract base class |
com.k_int.IR.AsynchronousEnumeration |
elements()
Enumerate all the items availabe from this fragment source |
int |
evaluate(int timeout)
Performs the evaluation. |
com.k_int.IR.InformationFragment[] |
getFragment(int starting_fragment,
int count,
com.k_int.IR.RecordFormatSpecification spec)
Retrieves an array of records, from the starting fragment to the count. |
com.k_int.IR.InformationFragment |
getFragment(int index,
com.k_int.IR.RecordFormatSpecification spec)
Retrieves the record at the specified index in the specified format. |
int |
getFragmentCount()
gets the fragment count. |
int |
getPrivateTaskStatusCode()
Gets the task status code. |
com.k_int.IR.IRQuery |
getQuery()
|
com.k_int.IR.IRStatusReport |
getStatusReport()
|
com.k_int.IR.InformationFragmentSource |
getTaskResultSet()
|
java.lang.String |
lookupPrivateStatusCode(int code)
Converts an int of a status code to the string representation |
void |
setFragmentCount(int i)
Sets the number of fragments (records) of this task. |
void |
setPrivateTaskStatusCode(int i)
Sets the task status. |
Methods inherited from class com.k_int.IR.SearchTask |
addDiagnosticObserver, addFragmentSourceObserver, broadcastStatusMessage, cancelTask, getLastStatusMessages, getRequestedSyntax, getRequestedSyntaxName, getSubtasks, getTaskCreationTime, getTaskIdentifier, getTaskStatusCode, getUserData, hasSubtasks, logStatusMessage, setDiagnosticStatus, setMaxStatusMessageItems, setQuery, setRequestedSyntax, setRequestedSyntaxName, setTaskStatusCode, setUserData, waitForCondition, waitForStatus |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int geo_search_status
Constructor Detail |
public GeoSearchTask(GeoSearchable source, com.k_int.IR.IRQuery q)
source
- The class that created this task.q
- the query to evaluate.Method Detail |
public int getPrivateTaskStatusCode()
public void setPrivateTaskStatusCode(int i)
i
- the status.public java.lang.String lookupPrivateStatusCode(int code)
code
- the number of the code.
public int evaluate(int timeout) throws com.k_int.IR.SearchException
timeout
- not implemented, needed for interface.
com.k_int.IR.SearchException
public com.k_int.IR.InformationFragment getFragment(int index, com.k_int.IR.RecordFormatSpecification spec)
index
- the index of the record to be returned.spec
- the preferred return format.
public com.k_int.IR.InformationFragment[] getFragment(int starting_fragment, int count, com.k_int.IR.RecordFormatSpecification spec)
getFragment
in interface com.k_int.IR.InformationFragmentSource
starting_fragment
- the position of the first record returned.count
- the number of records to be returned.spec
- the preferred return format.
public void setFragmentCount(int i)
i
- the number to set.public int getFragmentCount()
getFragmentCount
in interface com.k_int.IR.InformationFragmentSource
public com.k_int.IR.InformationFragmentSource getTaskResultSet()
public com.k_int.IR.IRQuery getQuery()
public void destroy()
destroy
in interface com.k_int.IR.InformationFragmentSource
public void destroyTask()
public com.k_int.IR.AsynchronousEnumeration elements()
elements
in interface com.k_int.IR.InformationFragmentSource
public com.k_int.IR.IRStatusReport getStatusReport()
getStatusReport
in interface com.k_int.IR.InformationFragmentSource
public void asyncGetFragment(int starting_fragment, int count, com.k_int.IR.RecordFormatSpecification spec, com.k_int.IR.IFSNotificationTarget target)
asyncGetFragment
in interface com.k_int.IR.InformationFragmentSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |