E:/gfcppsancout/product/include/gfcpp/CqQuery.hpp

Go to the documentation of this file.
00001 #ifndef __GEMFIRE_CQ_QUERY_H__
00002 #define __GEMFIRE_CQ_QUERY_H__
00003 /*=========================================================================
00004  * (c) Copyright 2002-2006, GemStone Systems, Inc. All Rights Reserved.
00005  * 1260 NW Waterhouse Ave., Suite 200,  Beaverton, OR 97006
00006  *========================================================================
00007  */
00008 
00009 #include "gfcpp_globals.hpp"
00010 #include "gf_types.hpp"
00011 
00012 #include "CqResults.hpp"
00013 #include "CqStatistics.hpp"
00014 #include "CqAttributes.hpp"
00015 #include "CqAttributesMutator.hpp"
00016 #include "CqState.hpp"
00017 
00022 namespace gemfire
00023 {
00024 
00037 class CPPCACHE_EXPORT CqQuery : public SharedBase
00038 {
00039 
00040 public:
00041 
00046   virtual const char * getQueryString() const = 0;
00051   virtual QueryPtr getQuery() const = 0;
00056   virtual const char* getName() const = 0;
00061   virtual const CqStatisticsPtr getStatistics() const = 0;
00066   virtual const CqAttributesPtr getCqAttributes() const = 0;
00071   virtual const CqAttributesMutatorPtr getCqAttributesMutator() const = 0;
00090   virtual CqResultsPtr executeWithInitialResults(
00091       uint32_t timeout = DEFAULT_QUERY_RESPONSE_TIMEOUT) = 0;
00092 
00108   virtual void execute() = 0;
00117   virtual void stop() = 0;
00118 
00125   virtual CqState::StateType getState() = 0;
00126 
00134   virtual void close() = 0;
00135 
00140   virtual bool isRunning() = 0;
00141 
00146   virtual bool isStopped() = 0;
00147 
00152   virtual bool isClosed() = 0;
00153 
00159   virtual bool isDurable() = 0;
00160 };
00161 
00162 } //namespace gemfire
00163 
00164 #endif //ifndef __GEMFIRE_CQ_QUERY_H__

GemFire C++ Cache API Documentation