The Assimilation Project  based on Assimilation version 1.1.7.1474836767
resourcecmd.h File Reference

Implements the resource command abstract class. More...

#include <projectcommon.h>
#include <assimobj.h>
#include <configcontext.h>
#include <childprocess.h>
Include dependency graph for resourcecmd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _ResourceCmd
 
#define REQCLASSNAMEFIELD   "class"
 
#define REQPROVIDERNAMEFIELD   "provider"
 
#define REQOPERATIONNAMEFIELD   "operation"
 
#define REQENVIRONNAMEFIELD   "environ"
 
#define REQREPEATNAMEFIELD   "repeat"
 
#define REQCANCELONFAILFIELD   "cancel_on_fail"
 
#define REQIDENTIFIERNAMEFIELD   "reqid"
 
#define REQREASONENUMNAMEFIELD   "reason_enum"
 
#define REQRCNAMEFIELD   "rc"
 
#define REQSIGNALNAMEFIELD   "signal"
 
#define REQCOREDUMPNAMEFIELD   "coredumped"
 
#define REQSTRINGRETNAMEFIELD   "stringret"
 
#define REQARGVNAMEFIELD   "argv"
 
#define MONITOROP   "monitor"
 
#define METADATAOP   "meta-data"
 
typedef void(* ResourceCmdCallback) (ConfigContext *request, gpointer user_data, enum HowDied reason, int rc, int signal, gboolean core_dumped, const char *stringresult)
 
typedef struct _ResourceCmd ResourceCmd
 
ResourceCmdresourcecmd_new (ConfigContext *request, gpointer user_data, ResourceCmdCallback callback)
 Our ResourceCmd Factory object - constructs an object of the proper subclass for the given instantiation parameters. More...
 

Detailed Description

Implements the resource command abstract class.

Defines the API for operating on resources. It is a factory class which defines these APIs/interfaces, and the parent class of all resource types. It knows which subclass of resource object to create - and fails on invalid subclass types

Author
Alan Robertson alanr.nosp@m.@uni.nosp@m.x.sh - Copyright © 2013 - Assimilation Systems Limited
This file is part of the Assimilation Project. The Assimilation software is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Assimilation software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with the Assimilation Project software. If not, see http://www.gnu.org/licenses/

Definition in file resourcecmd.h.

Macro Definition Documentation

#define METADATAOP   "meta-data"

Definition at line 84 of file resourcecmd.h.

Referenced by _resourcelsb_execute(), and _resourceocf_outputs_string().

#define REQARGVNAMEFIELD   "argv"

Definition at line 81 of file resourcecmd.h.

Referenced by resourcenagios_new().

#define REQCANCELONFAILFIELD   "cancel_on_fail"

Definition at line 74 of file resourcecmd.h.

Referenced by _resource_queue_qelem_new().

#define REQCLASSNAMEFIELD   "class"

Definition at line 69 of file resourcecmd.h.

Referenced by resourcecmd_new(), test_invalid_queuecmd(), and test_invalid_resourcecmd().

#define REQCOREDUMPNAMEFIELD   "coredumped"

Definition at line 79 of file resourcecmd.h.

Referenced by _nano_send_rscexitstatus().

#define REQIDENTIFIERNAMEFIELD   "reqid"
#define REQOPERATIONNAMEFIELD   "operation"
#define REQPROVIDERNAMEFIELD   "provider"

Definition at line 70 of file resourcecmd.h.

Referenced by resourceocf_new().

#define REQRCNAMEFIELD   "rc"

Definition at line 77 of file resourcecmd.h.

Referenced by _nano_send_rscexitstatus().

#define REQREASONENUMNAMEFIELD   "reason_enum"

Definition at line 76 of file resourcecmd.h.

Referenced by _nano_send_rscexitstatus().

#define REQREPEATNAMEFIELD   "repeat"

Definition at line 73 of file resourcecmd.h.

Referenced by _resource_queue_qelem_new().

#define REQSIGNALNAMEFIELD   "signal"

Definition at line 78 of file resourcecmd.h.

Referenced by _nano_send_rscexitstatus().

#define REQSTRINGRETNAMEFIELD   "stringret"

Definition at line 80 of file resourcecmd.h.

Referenced by _nano_send_rscexitstatus().

Typedef Documentation

typedef struct _ResourceCmd ResourceCmd

Definition at line 48 of file resourcecmd.h.