org.vfny.geoserver.zserver
Class GeoSearchable

java.lang.Object
  extended byorg.vfny.geoserver.zserver.GeoSearchable
All Implemented Interfaces:
com.k_int.IR.Searchable

public class GeoSearchable
extends java.lang.Object
implements com.k_int.IR.Searchable

An implementation of searchable derived from DemoSearchable, which was A sample implementation of searchable that returns random numbers of hits and random result records.


Field Summary
 
Fields inherited from interface com.k_int.IR.Searchable
GROUP_COORDINATOR, SPECIFIC_SOURCE
 
Constructor Summary
GeoSearchable()
          no argument constructo.
 
Method Summary
 com.k_int.IR.SearchTask createTask(com.k_int.IR.IRQuery q, java.lang.Object user_data)
          Create a SearchTask.
 com.k_int.IR.SearchTask createTask(com.k_int.IR.IRQuery q, java.lang.Object user_data, java.util.Observer[] observers)
          Create the search task.
 void destroy()
          destroy the searchable object.
 int getManagerType()
          Provide information about the type of Searchable object this realisation is
 java.util.Properties getServerProps()
          gets the properties of the server.
 void init(java.util.Properties p)
          inits the server with these properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoSearchable

public GeoSearchable()
no argument constructo.

Method Detail

init

public void init(java.util.Properties p)
inits the server with these properties.

Specified by:
init in interface com.k_int.IR.Searchable
Parameters:
p - the properties to init with.

destroy

public void destroy()
destroy the searchable object. Shut down the searchable object entirely. Release all held resources, make the object ready for GC. Try to release in here instead of on finalize.

Specified by:
destroy in interface com.k_int.IR.Searchable

getManagerType

public int getManagerType()
Provide information about the type of Searchable object this realisation is

Specified by:
getManagerType in interface com.k_int.IR.Searchable
Returns:
the type of searchable object.

createTask

public com.k_int.IR.SearchTask createTask(com.k_int.IR.IRQuery q,
                                          java.lang.Object user_data)
Create a SearchTask. Evaluate the query with the Tasks evaluate method.

Specified by:
createTask in interface com.k_int.IR.Searchable
Parameters:
q - The query to get results for.
user_data - not currently used, needed to implement interface.
Returns:
the search task with q as the query.

createTask

public com.k_int.IR.SearchTask createTask(com.k_int.IR.IRQuery q,
                                          java.lang.Object user_data,
                                          java.util.Observer[] observers)
Create the search task. Evaluate the query with the Tasks evaluate method.

Specified by:
createTask in interface com.k_int.IR.Searchable
Parameters:
q - The query to get results for.
user_data - not used (use null).
observers - not implemented (use null).
Returns:
the search task with q as the query.

getServerProps

public java.util.Properties getServerProps()
gets the properties of the server.

Returns:
a property class holding the server's information.