org.fao.geonet.services.util.z3950
Class GNSearchTask

java.lang.Object
  extended by java.util.Observable
      extended by com.k_int.IR.SearchTask
          extended by org.fao.geonet.services.util.z3950.GNSearchTask
All Implemented Interfaces:
com.k_int.IR.InformationFragmentSource

public class GNSearchTask
extends com.k_int.IR.SearchTask
implements com.k_int.IR.InformationFragmentSource


Field Summary
 int _demoSearchStatus
           
 
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
GNSearchTask(com.k_int.IR.IRQuery query, GNSearchable source, java.util.Observer[] observers, java.util.Properties properties, jeeves.server.context.ServiceContext srvContext)
           
 
Method Summary
 void asyncGetFragment(int startingFragment, int count, com.k_int.IR.RecordFormatSpecification spec, com.k_int.IR.IFSNotificationTarget target)
           
 void destroy()
           
 com.k_int.IR.AsynchronousEnumeration elements()
           
 int evaluate(int timeout)
           
 com.k_int.IR.InformationFragment[] getFragment(int startingFragment, int count, com.k_int.IR.RecordFormatSpecification spec)
           
 int getFragmentCount()
           
 int getPrivateTaskStatusCode()
           
 com.k_int.IR.IRStatusReport getStatusReport()
           
 com.k_int.IR.InformationFragmentSource getTaskResultSet()
           
 java.lang.String lookupPrivateStatusCode(int code)
           
 void setFragmentCount(int i)
           
 void setPrivateTaskStatusCode(int i)
           
 void store(int id, com.k_int.IR.InformationFragment fragment)
           
 
Methods inherited from class com.k_int.IR.SearchTask
addDiagnosticObserver, addFragmentSourceObserver, broadcastStatusMessage, cancelTask, destroyTask, getLastStatusMessages, getQuery, 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

_demoSearchStatus

public int _demoSearchStatus
Constructor Detail

GNSearchTask

public GNSearchTask(com.k_int.IR.IRQuery query,
                    GNSearchable source,
                    java.util.Observer[] observers,
                    java.util.Properties properties,
                    jeeves.server.context.ServiceContext srvContext)
Method Detail

destroy

public void destroy()
Specified by:
destroy in interface com.k_int.IR.InformationFragmentSource

getPrivateTaskStatusCode

public int getPrivateTaskStatusCode()
Overrides:
getPrivateTaskStatusCode in class com.k_int.IR.SearchTask

setPrivateTaskStatusCode

public void setPrivateTaskStatusCode(int i)

lookupPrivateStatusCode

public java.lang.String lookupPrivateStatusCode(int code)
Overrides:
lookupPrivateStatusCode in class com.k_int.IR.SearchTask

evaluate

public int evaluate(int timeout)
Specified by:
evaluate in class com.k_int.IR.SearchTask

getFragment

public com.k_int.IR.InformationFragment[] getFragment(int startingFragment,
                                                      int count,
                                                      com.k_int.IR.RecordFormatSpecification spec)
Specified by:
getFragment in interface com.k_int.IR.InformationFragmentSource

asyncGetFragment

public void asyncGetFragment(int startingFragment,
                             int count,
                             com.k_int.IR.RecordFormatSpecification spec,
                             com.k_int.IR.IFSNotificationTarget target)
Specified by:
asyncGetFragment in interface com.k_int.IR.InformationFragmentSource

store

public void store(int id,
                  com.k_int.IR.InformationFragment fragment)

setFragmentCount

public void setFragmentCount(int i)

getFragmentCount

public int getFragmentCount()
Specified by:
getFragmentCount in interface com.k_int.IR.InformationFragmentSource

getTaskResultSet

public com.k_int.IR.InformationFragmentSource getTaskResultSet()
Specified by:
getTaskResultSet in class com.k_int.IR.SearchTask

elements

public com.k_int.IR.AsynchronousEnumeration elements()
Specified by:
elements in interface com.k_int.IR.InformationFragmentSource

getStatusReport

public com.k_int.IR.IRStatusReport getStatusReport()
Specified by:
getStatusReport in interface com.k_int.IR.InformationFragmentSource