Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes
Arc::JobStateCREAM Class Reference

#include <JobStateCREAM.h>

Inheritance diagram for Arc::JobStateCREAM:
Inheritance graph
[legend]
Collaboration diagram for Arc::JobStateCREAM:
Collaboration graph
[legend]

List of all members.

Public Types

enum  StateType { JOBSTATE_TABLE }

Public Member Functions

 JobStateCREAM (const std::string &state)
 operator bool () const
bool operator! () const
bool operator== (const StateType &st) const
bool operator!= (const StateType &st) const
bool IsFinished () const
std::string operator() () const
std::string GetGeneralState () const

Static Public Member Functions

static JobState::StateType StateMap (const std::string &state)

Static Public Attributes

static const std::string StateTypeString [] = { JOBSTATE_TABLE }

Detailed Description

Definition at line 8 of file JobStateCREAM.h.


Member Enumeration Documentation

enum Arc::JobState::StateType [inherited]
Enumerator:
JOBSTATE_TABLE 

Definition at line 48 of file JobState.h.


Constructor & Destructor Documentation

Arc::JobStateCREAM::JobStateCREAM ( const std::string &  state) [inline]

Definition at line 11 of file JobStateCREAM.h.


Member Function Documentation

std::string Arc::JobState::GetGeneralState ( ) const [inline, inherited]

Definition at line 65 of file JobState.h.

{ return StateTypeString[type]; }

Here is the caller graph for this function:

bool Arc::JobState::IsFinished ( ) const [inline, inherited]

Definition at line 61 of file JobState.h.

{ return type == FINISHED || type == KILLED || type == FAILED || type == DELETED; }
Arc::JobState::operator bool ( void  ) const [inline, inherited]

Definition at line 56 of file JobState.h.

{ return type != UNDEFINED; }
bool Arc::JobState::operator! ( void  ) const [inline, inherited]

Definition at line 57 of file JobState.h.

{ return type == UNDEFINED; }
bool Arc::JobState::operator!= ( const StateType st) const [inline, inherited]

Definition at line 59 of file JobState.h.

{ return type != st; }
std::string Arc::JobState::operator() ( ) const [inline, inherited]

Definition at line 63 of file JobState.h.

{ return state; }
bool Arc::JobState::operator== ( const StateType st) const [inline, inherited]

Definition at line 58 of file JobState.h.

{ return type == st; }
JobState::StateType Arc::JobStateCREAM::StateMap ( const std::string &  state) [static]

Definition at line 9 of file JobStateCREAM.cpp.

                                                                  {
    if (state == "REGISTERED")
      return JobState::ACCEPTED;
    else if (state == "PENDING")
      return JobState::ACCEPTED;
    else if (state == "RUNNING")
      return JobState::RUNNING;
    else if (state == "REALLY-RUNNING")
      return JobState::RUNNING;
    else if (state == "HELD")
      return JobState::HOLD;
    else if (state == "DONE-FAILED")
      return JobState::FAILED;
    else if (state == "DONE-OK")
      return JobState::FINISHED;
    else if (state == "ABORTED")
      return JobState::FAILED;
    else if (state == "CANCELLED")
      return JobState::KILLED;
    else if (state == "IDLE")
      return JobState::QUEUING;
    else if (state == "")
      return JobState::UNDEFINED;
    else
      return JobState::OTHER;
  }

Member Data Documentation

const std::string Arc::JobState::StateTypeString = { JOBSTATE_TABLE } [static, inherited]

Definition at line 50 of file JobState.h.


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