VMware GemFire Native Client Cache Reference  9.0.6
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
SignalHandler.hpp
Go to the documentation of this file.
1 #ifndef _GEMFIRE_SIGNALHANDLER_HPP_
2 #define _GEMFIRE_SIGNALHANDLER_HPP_
3 /*=========================================================================
4  * Copyright (c) 2002-2014 Pivotal Software, Inc. All Rights Reserved.
5  * This product is protected by U.S. and international copyright
6  * and intellectual property laws. Pivotal products are covered by
7  * more patents listed at http://www.pivotal.io/patents.
8  *=========================================================================
9  */
10 
11 #include "gfcpp_globals.hpp"
12 #include "Exception.hpp"
13 
17 #ifdef _WIN32
18 struct _EXCEPTION_POINTERS;
19 typedef _EXCEPTION_POINTERS EXCEPTION_POINTERS;
20 #endif
21 
22 namespace gemfire
23 {
24 
25  class DistributedSystem;
26 
32  {
33  private:
34  static int s_waitSeconds;
35 
36  static void init(bool crashDumpEnabled, const char* crashDumpLocation,
37  const char* crashDumpPrefix);
38 
39  friend class DistributedSystem;
40 
41  public:
46  static void installBacktraceHandler();
47 
52  static void removeBacktraceHandler();
56  static bool getCrashDumpEnabled();
60  static const char* getCrashDumpLocation();
64  static const char* getCrashDumpPrefix();
65 
70  static void dumpStack(char* dumpFile, size_t maxLen);
71 
72 #ifdef _WIN32
73 
78  static void dumpStack(unsigned int expCode, EXCEPTION_POINTERS* pExp,
79  char* dumpFile, size_t maxLen);
80 
81  static void * s_pOldHandler;
82 
83 #endif
84 
87  static void waitForDebugger();
88  };
89 
90 }
91 
92 #endif
93 
This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19
DistributedSystem encapsulates this applications "connection" into the GemFire Java servers distribut...
Definition: DistributedSystem.hpp:35
#define CPPCACHE_EXPORT
Defines a GemFire CPPCACHE export.
Definition: gf_base.hpp:51
Represents a signal handler used for dumping stacks and attaching a debugger.
Definition: SignalHandler.hpp:31

GemFire C++ Cache API Documentation