com.ontimize.util.gis.client.interfaces
Interface IGisDataDispatcher

All Known Implementing Classes:
DefaultGisDataDispatcher

public interface IGisDataDispatcher

Gis data dispatcher interface


Field Summary
static java.lang.String DISPATCHER_FINAL_FRAGMENT
           
 
Method Summary
 void addPendingRequest(java.util.Hashtable<?,?> request)
          Add a new request to the pending requests list in the data dispatcher
 void addPendingRequest(java.util.Hashtable<?,?> request, int totalFragments)
          Add a new request to the pending requests list in the data dispatcher
 void addPendingRequestsListener(RequestsChangeListener reqListener)
          Adds a listener for pending requests change events
 void dispatchData(java.lang.Object requester, java.lang.Object layerKeys, java.lang.Object appliedFilters, java.lang.Object data)
          Send the data resulting from queries to the requester class
 java.lang.Object getDispatchData()
           
 int getTotalPendingFragments()
          Get total pending fragments of all the applicattion gis components
 int getTotalPendingFragments(java.lang.Object layersConfigurationId)
          Get total pending fragments for the given configuration
 void removePendingRequestsListener(RequestsChangeListener reqListener)
          Removes a listener for pending requestschange events
 void removeRequest(int ticketNumber)
          Remove the given request
 void setTotalFragments(java.util.Hashtable<?,?> request, int totalFragments)
          Set the total requested fragments for the given request
 

Field Detail

DISPATCHER_FINAL_FRAGMENT

static final java.lang.String DISPATCHER_FINAL_FRAGMENT
See Also:
Constant Field Values
Method Detail

dispatchData

void dispatchData(java.lang.Object requester,
                  java.lang.Object layerKeys,
                  java.lang.Object appliedFilters,
                  java.lang.Object data)
Send the data resulting from queries to the requester class

Parameters:
requester - Reference to the requester class
layerKeys - Gis layer reference
appliedFilters - Previous query applied filters * @param data Data to send to the requester

addPendingRequest

void addPendingRequest(java.util.Hashtable<?,?> request)
Add a new request to the pending requests list in the data dispatcher

Parameters:
request - Pending request data

addPendingRequest

void addPendingRequest(java.util.Hashtable<?,?> request,
                       int totalFragments)
Add a new request to the pending requests list in the data dispatcher

Parameters:
request - Pending request data
totalFragments - Number of fragments that compose the request

setTotalFragments

void setTotalFragments(java.util.Hashtable<?,?> request,
                       int totalFragments)
Set the total requested fragments for the given request

Parameters:
request - Pending request data
totalFragments - Number of fragments that compose the request

getTotalPendingFragments

int getTotalPendingFragments()
Get total pending fragments of all the applicattion gis components


getTotalPendingFragments

int getTotalPendingFragments(java.lang.Object layersConfigurationId)
Get total pending fragments for the given configuration

Parameters:
layersConfigurationId - Layers configuration
Returns:
Pending fragments for the given configuration

removeRequest

void removeRequest(int ticketNumber)
Remove the given request

Parameters:
ticketNumber - Request ticket number

addPendingRequestsListener

void addPendingRequestsListener(RequestsChangeListener reqListener)
Adds a listener for pending requests change events

Parameters:
reqListener - Pending requests change events listener to add

removePendingRequestsListener

void removePendingRequestsListener(RequestsChangeListener reqListener)
Removes a listener for pending requestschange events

Parameters:
reqListener - Pending requests change events listener to add

getDispatchData

java.lang.Object getDispatchData()