H:/gfcppsancout/product/include/gfcpp/admin/CacheApplication.hpp

Go to the documentation of this file.
00001 #ifndef __GEMFIRE_ADMIN_CACHEAPPLICATION_HPP__
00002 #define __GEMFIRE_ADMIN_CACHEAPPLICATION_HPP__
00003 /*=========================================================================
00004  * (c) Copyright 2002-2007, GemStone Systems, Inc. All Rights Reserved.
00005  * 1260 NW Waterhouse Ave., Suite 200,  Beaverton, OR 97006
00006  * All Rights Reserved.
00007  *
00008  * The specification of function behaviors is found in the corresponding .cpp file.
00009  *========================================================================
00010  *
00011  */
00012 #include "../gfcpp_globals.hpp"
00013 #include "../VectorT.hpp"
00014 #include "../SharedPtr.hpp"
00015 #include "CacheRegion.hpp"
00016 #include "StatisticResource.hpp"
00017 
00018 using namespace gemfire;
00019 
00023 namespace gemfire_admin {
00024 
00025 class LogListener;
00026 class CacheApplication;
00027 typedef SharedPtr< CacheApplication > CacheApplicationPtr;
00028 typedef VectorT< CacheApplicationPtr > VectorOfCacheApplication;
00029 
00036 class CPPCACHE_EXPORT CacheApplication : public SharedBase {
00037 
00038 public:
00042   virtual const char* getId()=0;
00043 
00045   virtual const char* getMemberType()=0;
00046 
00048   virtual const char* getName()=0;
00049 
00051   virtual const char* getOperatingSystem()=0;
00052 
00054   virtual const bool getIsLinux()=0;
00055 
00057   virtual const bool getIsWindows()=0;
00058 
00060   virtual const char* getVersion()=0;
00061 
00063   virtual const char* getLicense()=0;
00064 
00069   virtual const char* getDateTimeProcessStarted()=0;
00070 
00074   virtual bool getStatisticsEnabled()=0;
00075 
00079   virtual void setStatisticsEnabled(bool enable)=0;
00080 
00084   virtual uint32_t getStatisticsInterval()=0;
00085 
00089   virtual void setStatisticsInterval(uint32_t milliseconds)=0;
00090 
00100   //virtual bool getStatisticResources( VectorOfStatisticResource& vectorOfStatisticResource )=0;
00101 
00108   virtual const char* getLogLevel()=0;
00109 
00114   virtual const char* getLogTail( uint32_t lines = 80 )=0;
00115 
00122   virtual void addLogListener(const LogListener* listener)=0;
00123 
00130   virtual void removeLogListener(const LogListener* listener)=0;
00131 
00138   virtual void getRootRegions(VectorOfCacheRegion& root_regions)=0;
00139 
00149   virtual void refresh( bool refreshRootRegions )=0;
00150 
00154   virtual const char* getHostAddress()=0;
00155 
00159   virtual const char* getHostName()=0;
00160 };
00161 
00162 
00163 };//namespace gemfire_admin
00164 
00165 #endif //ifndef __GEMFIRE_ADMIN_CACHEAPPLICATION_HPP__
00166 

GemFire C++ Cache API Documentation