com.ontimize.util.gis.client.defaultimplementations.cache
Class DispatchQuery

java.lang.Object
  extended by com.ontimize.util.gis.client.defaultimplementations.cache.DispatchQuery
All Implemented Interfaces:
IDispatchQuery

public class DispatchQuery
extends java.lang.Object
implements IDispatchQuery

Basic dispatch query


Field Summary
protected  java.util.Stack dispatchData
           
protected  java.util.concurrent.locks.Condition emptyQueryCondition
           
protected  java.util.concurrent.locks.Lock queryLock
           
 
Fields inherited from interface com.ontimize.util.gis.client.defaultimplementations.cache.IDispatchQuery
PARAMETER_APPLIED_FILTERS, PARAMETER_LAYER_KEYS, PARAMETER_REQUESTED_DATA, PARAMETER_REQUESTER_ID
 
Constructor Summary
DispatchQuery()
           
 
Method Summary
 void addRequestedData(java.lang.Object requestedData, java.lang.Object appliedFilters, java.lang.Object layerKeys, java.lang.Object requesterId)
          Add new data to the dispatch query in order to send it to the requester
 java.util.concurrent.locks.Condition getEmptyCondition()
          Get the empty dispatch query condition reference
 java.util.concurrent.locks.Lock getLock()
          Get the reference of the dispatch query lock
 java.lang.Object getRequestedData()
          Gets the geographic data located first in the dispatch query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queryLock

protected java.util.concurrent.locks.Lock queryLock

emptyQueryCondition

protected java.util.concurrent.locks.Condition emptyQueryCondition

dispatchData

protected java.util.Stack dispatchData
Constructor Detail

DispatchQuery

public DispatchQuery()
Method Detail

getEmptyCondition

public java.util.concurrent.locks.Condition getEmptyCondition()
Description copied from interface: IDispatchQuery
Get the empty dispatch query condition reference

Specified by:
getEmptyCondition in interface IDispatchQuery
Returns:
Empty dispatch query condition

getLock

public java.util.concurrent.locks.Lock getLock()
Description copied from interface: IDispatchQuery
Get the reference of the dispatch query lock

Specified by:
getLock in interface IDispatchQuery
Returns:
Query lock

addRequestedData

public void addRequestedData(java.lang.Object requestedData,
                             java.lang.Object appliedFilters,
                             java.lang.Object layerKeys,
                             java.lang.Object requesterId)
Description copied from interface: IDispatchQuery
Add new data to the dispatch query in order to send it to the requester

Specified by:
addRequestedData in interface IDispatchQuery
Parameters:
requestedData - Geographic data obtained from the request
appliedFilters - Filters applied on request
layerKeys - Identifier of the data related gis layer
requesterId - Data requester identifier, usually the gis map viewer

getRequestedData

public java.lang.Object getRequestedData()
Description copied from interface: IDispatchQuery
Gets the geographic data located first in the dispatch query

Specified by:
getRequestedData in interface IDispatchQuery
Returns:
First data in order to dispatch