Main Page Alphabetical List Compound List File List Compound Members File Members
self.c File Reference#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "GATCPI.h"
#include "GATJobCPIInstanceData.h"
#include "GATRequestCPIInstanceData.h"
#include "resourcebroker.h"
#include "self.h"
Include dependency graph for self.c:
Go to the source code of this file.
|
Functions |
| void | resourcebroker_adaptor_GATSelfCPI_Destroy (void *data) |
| GATResult | resourcebroker_adaptor_GATSelfCPI_ServiceActions (void *data, GATSelfCPI_Instance *instance_data, GATTimePeriod_const timeout) |
| | resourcebroker_adaptor_GATResourceCPI_ServiceActions
|
| GATResult | resourcebroker_adaptor_GATSelfCPI_CreateInstance (void *data, GATSelfCPI_Instance *instance_data) |
| | resourcebroker_adaptor_GATSelfCPI_CreateInstance Create a new CPI object instance.
|
| void | resourcebroker_adaptor_GATSelfCPI_DestroyInstance (void *data, GATSelfCPI_Instance *instance_data) |
| | resourcebroker_adaptor_GATSelfCPI_DestroyInstance Destroy a CPI object instance.
|
| GATResult | resourcebroker_adaptor_GATSelfCPI_GetJob (void *data, GATSelfCPI_Instance *instance_data, GATContext context, GATJob *job) |
| GATResult | resourcebroker_adaptor_GATSelfCPI_CreateRequestForListener (GATSelfCPI cpi, GATSelfCPI_Instance *instance_data, GATContext context, GATRequestListener listener, void *data, GATRequestType type, GATTable_const parameters, const char *name, GATRequest *request) |
| | resourcebroker_adaptor_GATSelfCPI_CreateRequestForListener
|
| GATResult | resourcebroker_adaptor_GATSelfCPI_DestroyRequestForListener (GATSelfCPI cpi, GATSelfCPI_Instance *instance_data, GATContext context, GATRequest *request) |
| | GATSelfCPI_DestroyRequestForListener.
|
| GATResult | resourcebroker_adaptor_GATSelfCPI_create_self_jobdescription (GATContext context, GATJobDescription *jobdesc) |
| | resourcebroker_adaptor_GATSelfCPI_create_self_jobdescription
|
| GATResult | resourcebroker_adaptor_GATSelfCPI_create_self_resource (GATContext context, GATResource *resource) |
| | resourcebroker_adaptor_GATSelfCPI_create_self_resource
|
| GATSoftwareDescription | resourcebroker_adaptor_CreateSoftwareDescription (GATContext context) |
| | resourcebroker_adaptor_CreateSoftwareDescription
|
| GATResult | resourcebroker_adaptor_GetCommandLine (GATContext context, GATTable attributes) |
| GATResult | resourcebroker_adaptor_GetEnvironment (GATContext context, GATTable attributes) |
| GATResult | resourcebroker_adaptor_FillCommandLine (GATContext context, GATTable attributes, int argc, char *argv[]) |
| GATResult | resourcebroker_adaptor_FillEnvironment (GATContext context, char **glb_environ, GATTable environment) |
| GATResult | resourcebroker_adaptor_GetCommandLineArgs (int *argc, char ***argv) |
| GATResult | resourcebroker_adaptor_Register_GATSelfCPI (GATContext error_context, GATRegistry registry, GATTable_const system_config, GATTable_const instance_config, void *token) |
Variables |
| const char * | rcsid = "$Header: /export/cvs-gridlab/wp-1/Codes/GATEngine/C-reference/adaptors/resourcebroker/self.c,v 1.12 2004/04/26 15:45:00 hartmutkaiser Exp $" |
Function Documentation
| void resourcebroker_adaptor_GATSelfCPI_Destroy |
( |
void * |
data |
) |
[static] |
|
|
|
resourcebroker_adaptor_GATResourceCPI_ServiceActions
The function resourcebroker_adaptor_GATSelfCPI_ServiceActions is called, whenever the client calls GATContext_ServiceActions. This function is called for every created object. This function should be used to update all instance specific data, which may have been changed asynchronously or to fire pending events. - Parameters:
-
| data |
Adaptor-provided data object. |
| instance_data |
The instance data of this CPI object |
| timeout |
This may be a 0 timeout to indicate no timeout at all, or a specific time length. |
- Returns:
-
An error code.
Definition at line 241 of file self.c.
References data, GAT_NOTIMPL, and GATTimePeriod_const.
Referenced by resourcebroker_adaptor_Register_GATSelfCPI(). |
| void resourcebroker_adaptor_GATSelfCPI_DestroyInstance |
( |
void * |
data, |
|
|
GATSelfCPI_Instance * |
instance_data |
|
) |
[static] |
|
|
|
Definition at line 249 of file self.c.
References data, GAT_CREATE_STATUS, GAT_CREATE_STATUS_IF, GAT_CURRENT_STATUS, GAT_INVALID_PARAMETER, GAT_MEMORYFAILURE, GAT_RETURN_STATUS, GAT_SUCCEEDED, GAT_USES_STATUS, GATFalse, GATJob, GATJob_Create(), GATJobCPIInstance_Data_Create(), GATJobCPIInstance_Data_Destroy(), GATJobDescription, GATJobDescription_Destroy(), GATJobID, GATPreferences_Destroy(), GATResource_Destroy(), GATString_Create(), GATString_Destroy(), GATuint32, resourcebroker_adaptor_GATSelfCPI_create_self_jobdescription(), resourcebroker_adaptor_GATSelfCPI_create_self_resource(), resourcebroker_adaptor_make_sample_jobid(), and resourcebroker_adaptor_MyPreferences().
Referenced by resourcebroker_adaptor_Register_GATSelfCPI(). |
|
|
resourcebroker_adaptor_GATSelfCPI_CreateRequestForListener
- Returns:
-
An error code.
Definition at line 322 of file self.c.
References cpi, data, GAT_CREATE_STATUS, GAT_CREATE_STATUS_IF, GAT_CURRENT_STATUS, GAT_FAILED, GAT_INVALID_PARAMETER, GAT_MEMORYFAILURE, GAT_RETURN_STATUS, GAT_SUCCEEDED, GAT_USES_STATUS, GATPreferences_Destroy(), GATRequest, GATRequest_Create(), GATRequest_Destroy(), GATRequestCPIInstance_Data_Create(), GATRequestCPIInstance_Data_Destroy(), GATRequestListener, GATRequestType, GATTable_const, name, and resourcebroker_adaptor_MyPreferences().
Referenced by resourcebroker_adaptor_Register_GATSelfCPI(). |
|
|
resourcebroker_adaptor_GATSelfCPI_create_self_jobdescription
Definition at line 386 of file self.c.
References GAT_CREATE_STATUS, GAT_CREATE_STATUS_IF, GAT_CURRENT_STATUS, GAT_INVALID_PARAMETER, GAT_MEMORYFAILURE, GAT_RETURN_STATUS, GAT_SUCCEEDED, GAT_USES_STATUS, GATJobDescription, GATJobDescription_Create_Description(), GATJobDescription_Destroy(), GATResourceDescription, GATResourceDescription_Destroy(), GATSoftwareDescription, GATSoftwareDescription_Destroy(), resourcebroker_adaptor_CreateHardwareResourceDescription(), and resourcebroker_adaptor_CreateSoftwareDescription().
Referenced by resourcebroker_adaptor_GATSelfCPI_GetJob(). |
|
|
resourcebroker_adaptor_CreateSoftwareDescription
Definition at line 459 of file self.c.
References GAT_CREATE_STATUS, GAT_CREATE_STATUS_IF, GAT_CURRENT_STATUS, GAT_MEMORYFAILURE, GAT_STORE_STATUS, GAT_SUCCEEDED, GAT_USES_STATUS, GATSoftwareDescription, GATSoftwareDescription_Create(), GATTable_Create(), GATTable_Destroy(), resourcebroker_adaptor_GetCommandLine(), and resourcebroker_adaptor_GetEnvironment().
Referenced by resourcebroker_adaptor_GATSelfCPI_create_self_jobdescription(). |
|
|
Definition at line 517 of file self.c.
References GAT_CREATE_STATUS, GAT_CREATE_STATUS_IF, GAT_CURRENT_STATUS, GAT_FAIL, GAT_MEMORYFAILURE, GAT_RETURN_STATUS, GAT_SUCCEEDED, GAT_USES_STATUS, GATList_String_Create(), GATList_String_Destroy(), GATList_String_End(), GATList_String_Insert(), GATLocation_Create(), GATLocation_Destroy(), and GATTable_Add_GATObject().
Referenced by resourcebroker_adaptor_GetCommandLine(). |
|
|
Definition at line 582 of file self.c.
References GAT_CREATE_STATUS, GAT_CREATE_STATUS_IF, GAT_MEMORYFAILURE, GAT_RETURN_STATUS, GAT_USES_STATUS, GATString_Create(), GATString_Destroy(), GATTable_Add_GATObject(), GATTable_Get_ElementType(), GATType_GATObject, and GATuint32.
Referenced by resourcebroker_adaptor_GetEnvironment(). |
| GATResult resourcebroker_adaptor_GetCommandLineArgs |
( |
int * |
argc, |
|
|
char *** |
argv |
|
) |
[static] |
|
|
|
Definition at line 115 of file self.c.
References cpi, GATSelfCPI_Data::create_instance, GATSelfCPI_Data::create_requestforlistener, GATSelfCPI_Data::data, GATSelfCPI_Data::destroy, GATSelfCPI_Data::destroy_instance, GATSelfCPI_Data::destroy_requestforlistener, GAT_CREATE_STATUS, GAT_CURRENT_STATUS, GAT_FAILED, GAT_RETURN_STATUS, GAT_USES_STATUS, GATPreferences_Add(), GATPreferences_Create(), GATPreferences_Destroy(), GATResult, GATSelfCPI_Create(), GATSelfCPI_Destroy(), GATSELFCPI_VERSION, GATTable_const, GATSelfCPI_Data::get_selfjob, resourcebroker_adaptor_GATSelfCPI_CreateInstance(), resourcebroker_adaptor_GATSelfCPI_CreateRequestForListener(), resourcebroker_adaptor_GATSelfCPI_Destroy(), resourcebroker_adaptor_GATSelfCPI_DestroyInstance(), resourcebroker_adaptor_GATSelfCPI_DestroyRequestForListener(), resourcebroker_adaptor_GATSelfCPI_GetJob(), resourcebroker_adaptor_GATSelfCPI_ServiceActions(), GATSelfCPI_Data::service_actions, and token.
Referenced by resourcebroker_adaptor_register(). |
Variable Documentation
const char* rcsid = "$Header: /export/cvs-gridlab/wp-1/Codes/GATEngine/C-reference/adaptors/resourcebroker/self.c,v 1.12 2004/04/26 15:45:00 hartmutkaiser Exp $" [static]
|
|
|