Back to index

nordugrid-arc-nox  1.1.0~rc6
Defines | Functions
plugins.cpp File Reference
#include <cstring>
#include <arc/Run.h>
#include "../jobs/job.h"
#include "../jobs/states.h"
#include "../jobs/users.h"
#include "plugins.h"

Go to the source code of this file.

Defines

#define RES_ONSUCCESS   0
#define RES_ONFAILURE   1
#define RES_ONTIMEOUT   2
#define RES_TIMEOUT   3
#define RES_UNDEFINED   -1

Functions

static
ContinuationPlugins::action_t 
get_action (const char *s, unsigned int l)
static int get_result (const char *s, unsigned int l)

Define Documentation

#define RES_ONFAILURE   1

Definition at line 60 of file plugins.cpp.

#define RES_ONSUCCESS   0

Definition at line 59 of file plugins.cpp.

#define RES_ONTIMEOUT   2

Definition at line 61 of file plugins.cpp.

#define RES_TIMEOUT   3

Definition at line 62 of file plugins.cpp.

#define RES_UNDEFINED   -1

Definition at line 63 of file plugins.cpp.


Function Documentation

static ContinuationPlugins::action_t get_action ( const char *  s,
unsigned int  l 
) [static]

Definition at line 52 of file plugins.cpp.

                                                                            {
  if((l == 4) && (strncasecmp(s,"fail",4) == 0)) return ContinuationPlugins::act_fail;
  if((l == 4) && (strncasecmp(s,"pass",4) == 0)) return ContinuationPlugins::act_pass;
  if((l == 3) && (strncasecmp(s,"log",3) == 0)) return ContinuationPlugins::act_log;
  return ContinuationPlugins::act_undefined;
}

Here is the caller graph for this function:

static int get_result ( const char *  s,
unsigned int  l 
) [static]

Definition at line 64 of file plugins.cpp.

                                                    {
  if((l == 9) && (strncasecmp(s,"onsuccess",9) == 0)) return RES_ONSUCCESS;
  if((l == 9) && (strncasecmp(s,"onfailure",9) == 0)) return RES_ONFAILURE;
  if((l == 9) && (strncasecmp(s,"ontimeout",9) == 0)) return RES_ONTIMEOUT;
  if((l == 7) && (strncasecmp(s,"timeout",7) == 0)) return RES_TIMEOUT;
  return RES_UNDEFINED;
}

Here is the caller graph for this function: