H:/gfcppsancout/product/include/gfcpp/CqState.hpp

Go to the documentation of this file.
00001 #ifndef __GEMFIRE_CQ_STATE_H__
00002 #define __GEMFIRE_CQ_STATE_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 
00016 namespace gemfire
00017 {
00018 
00025 class CPPCACHE_EXPORT CqState
00026 {
00027                                 
00028    public:
00029 
00030           //corresponding to gemfire.cache.query.internal.CqStateImpl
00031           typedef enum {
00032             STOPPED = 0,
00033             RUNNING = 1,
00034             CLOSED = 2,
00035             CLOSING = 3,
00036             INVALID 
00037           } StateType;
00041   const char* toString() const;
00042   
00046   bool isRunning() const;
00047 
00051   bool isStopped() const;
00052   
00056   bool isClosed() const;
00057   
00061   bool isClosing() const;
00062   void setState(CqState::StateType state);
00063   CqState::StateType getState();
00064 
00065   private:
00066   StateType m_state;
00067   
00068 };
00069 
00070 } //namespace gemfire
00071 
00072 #endif //ifndef __GEMFIRE_CQ_STATE_H__

GemFire C++ Cache API Documentation