Public Member Functions | Public Attributes

gmResourceDescr Struct Reference

Resourse description for gmManager. More...

#include <gridmd.h>

List of all members.

Public Member Functions

 gmResourceDescr (const wxString &host_="", int active_=1)
 Constructor.
int Save (wxXmlNode *parent, const wxString &name="")
 Saves description as a child of the given XmlNode.
int Load (wxXmlNode *parent, wxString &name)
 Loads resource description from the given XmlNode.

Public Attributes

int res_type
 Resource type: one of gmRESOURCE_TYPES, default is gmRES_PBS.
int shell_type
 Shell type: one of gmSHELL_TYPES, default is gmSHELL_UNIX.
int max_queued
 Maximal number of simultaneously queued jobs for this resource, default is -1 (no limit).
wxString login
 Login name.
wxString host
 Remote host name or IP address.
wxString ssh_path
 Path to the SSH client.
wxString scp_path
 Path to the SCP tool.
wxString client_cfg
 SSH client command line options.
wxString queue
 Queue name for the remote job management system.
wxString prefix
 Shell commands that should be executed before starting each job on the remote resource.
wxString postfix
 Shell commands that should be executed after finishing each job on the remote resource.
wxString progdir
 Directory where the GridMD application executable is located.
wxString progname
 Name of GridMD application executable.
int active
 Flag that activates this resource in the resource list (1 by default).

Detailed Description

Resourse description for gmManager.

For remote cross-platform execution the same application must be compiled for each of the available resources; for submission of remote jobs when the managing GridMD application runs on Windows system an SSH-client for Windows (typically Putty) is required to connect to the remote server.


Member Function Documentation

int gmResourceDescr::Load ( wxXmlNode *  parent,
wxString &  name 
)

Loads resource description from the given XmlNode.

Parameters:
[in] parent pointer to the parent node
[in] name is the name of the resource
Returns:
>0 on success, <0 otherwise
int gmResourceDescr::Save ( wxXmlNode *  parent,
const wxString &  name = "" 
)

Saves description as a child of the given XmlNode.

Parameters:
[out] parent pointer to the node for which a child will be created
[out] name is the name of the resource in the XML document, default is login@host
Returns:
>0 on success, <0 otherwise

The documentation for this struct was generated from the following file: