DMTCP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
dmtcp::WorkerState Class Reference

#include <dmtcpmessagetypes.h>

Public Types

enum  eWorkerState {
  UNKNOWN, RUNNING, SUSPENDED, FD_LEADER_ELECTION,
  DRAINED, RESTARTING, CHECKPOINTED, NAME_SERVICE_DATA_REGISTERED,
  DONE_QUERYING, REFILLED, _MAX
}
 

Public Member Functions

 WorkerState (eWorkerState s=UNKNOWN)
 
eWorkerState value () const
 
bool operator== (const WorkerState &v) const
 
bool operator!= (const WorkerState &v) const
 
const char * toString () const
 

Static Public Member Functions

static void * operator new (size_t nbytes, void *p)
 
static void * operator new (size_t nbytes)
 
static void operator delete (void *p)
 
static void setCurrentState (const WorkerState &theValue)
 
static WorkerState currentState ()
 

Detailed Description

Definition at line 91 of file dmtcpmessagetypes.h.

Member Enumeration Documentation

Enumerator
UNKNOWN 
RUNNING 
SUSPENDED 
FD_LEADER_ELECTION 
DRAINED 
RESTARTING 
CHECKPOINTED 
NAME_SERVICE_DATA_REGISTERED 
DONE_QUERYING 
REFILLED 
_MAX 

Definition at line 99 of file dmtcpmessagetypes.h.

Constructor & Destructor Documentation

dmtcp::WorkerState::WorkerState ( eWorkerState  s = UNKNOWN)
inline

Definition at line 115 of file dmtcpmessagetypes.h.

Member Function Documentation

WorkerState WorkerState::currentState ( )
static

Definition at line 28 of file dmtcpmessagetypes.cpp.

static void dmtcp::WorkerState::operator delete ( void *  p)
inlinestatic

Definition at line 97 of file dmtcpmessagetypes.h.

static void* dmtcp::WorkerState::operator new ( size_t  nbytes,
void *  p 
)
inlinestatic

Definition at line 95 of file dmtcpmessagetypes.h.

static void* dmtcp::WorkerState::operator new ( size_t  nbytes)
inlinestatic

Definition at line 96 of file dmtcpmessagetypes.h.

bool dmtcp::WorkerState::operator!= ( const WorkerState v) const
inline

Definition at line 123 of file dmtcpmessagetypes.h.

bool dmtcp::WorkerState::operator== ( const WorkerState v) const
inline

Definition at line 122 of file dmtcpmessagetypes.h.

void WorkerState::setCurrentState ( const WorkerState theValue)
static

Definition at line 33 of file dmtcpmessagetypes.cpp.

const char * WorkerState::toString ( ) const

Definition at line 120 of file dmtcpmessagetypes.cpp.

WorkerState::eWorkerState WorkerState::value ( ) const

Definition at line 90 of file dmtcpmessagetypes.cpp.


The documentation for this class was generated from the following files: