Main Page   Compound List   File List   Compound Members   File Members  

producer.h File Reference

client API for storing data into L&B service. More...

Go to the source code of this file.

Defines

#define EDG_WLL_JOB_SIMPLE   EDG_WLL_REGJOB_SIMPLE
 Register job with L&B service. More...


Functions

int edg_wll_LogTransfer (edg_wll_Context context, const edg_wll_Source destination, const char *dest_host, const char *dest_instance, const char *job, const char *result, const char *reason, const char *dest_jobid)
 simple wrapper around edg_wll_LogEvent for event Transfer. More...

int edg_wll_LogTransferSTART (edg_wll_Context context, const edg_wll_Source destination, const char *dest_host, const char *dest_instance, const char *job, const char *reason, const char *dest_jobid)
 simple wrapper around edg_wll_LogEvent for event Transfer, result START. More...

int edg_wll_LogTransferOK (edg_wll_Context context, const edg_wll_Source destination, const char *dest_host, const char *dest_instance, const char *job, const char *reason, const char *dest_jobid)
 simple wrapper around edg_wll_LogEvent for event Transfer, result OK. More...

int edg_wll_LogTransferREFUSED (edg_wll_Context context, const edg_wll_Source destination, const char *dest_host, const char *dest_instance, const char *job, const char *reason, const char *dest_jobid)
 simple wrapper around edg_wll_LogEvent for event Transfer, result REFUSED. More...

int edg_wll_LogTransferFAIL (edg_wll_Context context, const edg_wll_Source destination, const char *dest_host, const char *dest_instance, const char *job, const char *reason, const char *dest_jobid)
 simple wrapper around edg_wll_LogEvent for event Transfer, result FAIL. More...

int edg_wll_LogAccepted (edg_wll_Context context, const edg_wll_Source from, const char *from_host, const char *from_instance, const char *local_jobid)
 simple wrapper around edg_wll_LogEvent for event Accepted. More...

int edg_wll_LogRefused (edg_wll_Context context, const edg_wll_Source from, const char *from_host, const char *from_instance, const char *reason)
 simple wrapper around edg_wll_LogEvent for event Refused. More...

int edg_wll_LogEnQueued (edg_wll_Context context, const char *queue, const char *job, const char *result, const char *reason)
 simple wrapper around edg_wll_LogEvent for event EnQueued. More...

int edg_wll_LogEnQueuedSTART (edg_wll_Context context, const char *queue, const char *job, const char *reason)
 simple wrapper around edg_wll_LogEvent for event EnQueued, result START. More...

int edg_wll_LogEnQueuedOK (edg_wll_Context context, const char *queue, const char *job, const char *reason)
 simple wrapper around edg_wll_LogEvent for event EnQueued, result OK. More...

int edg_wll_LogEnQueuedREFUSED (edg_wll_Context context, const char *queue, const char *job, const char *reason)
 simple wrapper around edg_wll_LogEvent for event EnQueued, result REFUSED. More...

int edg_wll_LogEnQueuedFAIL (edg_wll_Context context, const char *queue, const char *job, const char *reason)
 simple wrapper around edg_wll_LogEvent for event EnQueued, result FAIL. More...

int edg_wll_LogDeQueued (edg_wll_Context context, const char *queue, const char *local_jobid)
 simple wrapper around edg_wll_LogEvent for event DeQueued. More...

int edg_wll_LogHelperCall (edg_wll_Context context, const char *helper_name, const char *helper_params, const char *src_role)
 simple wrapper around edg_wll_LogEvent for event HelperCall. More...

int edg_wll_LogHelperCallCALLING (edg_wll_Context context, const char *helper_name, const char *helper_params)
 simple wrapper around edg_wll_LogEvent for event HelperCall, src_role CALLING. More...

int edg_wll_LogHelperCallCALLED (edg_wll_Context context, const char *helper_name, const char *helper_params)
 simple wrapper around edg_wll_LogEvent for event HelperCall, src_role CALLED. More...

int edg_wll_LogHelperReturn (edg_wll_Context context, const char *helper_name, const char *retval, const char *src_role)
 simple wrapper around edg_wll_LogEvent for event HelperReturn. More...

int edg_wll_LogHelperReturnCALLING (edg_wll_Context context, const char *helper_name, const char *retval)
 simple wrapper around edg_wll_LogEvent for event HelperReturn, src_role CALLING. More...

int edg_wll_LogHelperReturnCALLED (edg_wll_Context context, const char *helper_name, const char *retval)
 simple wrapper around edg_wll_LogEvent for event HelperReturn, src_role CALLED. More...

int edg_wll_LogRunning (edg_wll_Context context, const char *node)
 simple wrapper around edg_wll_LogEvent for event Running. More...

int edg_wll_LogResubmission (edg_wll_Context context, const char *result, const char *reason, const char *tag)
 simple wrapper around edg_wll_LogEvent for event Resubmission. More...

int edg_wll_LogResubmissionWILLRESUB (edg_wll_Context context, const char *reason, const char *tag)
 simple wrapper around edg_wll_LogEvent for event Resubmission, result WILLRESUB. More...

int edg_wll_LogResubmissionWONTRESUB (edg_wll_Context context, const char *reason, const char *tag)
 simple wrapper around edg_wll_LogEvent for event Resubmission, result WONTRESUB. More...

int edg_wll_LogDone (edg_wll_Context context, const char *status_code, const char *reason, const int exit_code)
 simple wrapper around edg_wll_LogEvent for event Done. More...

int edg_wll_LogDoneOK (edg_wll_Context context, const char *reason, const int exit_code)
 simple wrapper around edg_wll_LogEvent for event Done, status_code OK. More...

int edg_wll_LogDoneFAILED (edg_wll_Context context, const char *reason, const int exit_code)
 simple wrapper around edg_wll_LogEvent for event Done, status_code FAILED. More...

int edg_wll_LogDoneCANCELLED (edg_wll_Context context, const char *reason, const int exit_code)
 simple wrapper around edg_wll_LogEvent for event Done, status_code CANCELLED. More...

int edg_wll_LogCancel (edg_wll_Context context, const char *status_code, const char *reason)
 simple wrapper around edg_wll_LogEvent for event Cancel. More...

int edg_wll_LogCancelREQ (edg_wll_Context context, const char *reason)
 simple wrapper around edg_wll_LogEvent for event Cancel, status_code REQ. More...

int edg_wll_LogCancelREFUSE (edg_wll_Context context, const char *reason)
 simple wrapper around edg_wll_LogEvent for event Cancel, status_code REFUSE. More...

int edg_wll_LogCancelDONE (edg_wll_Context context, const char *reason)
 simple wrapper around edg_wll_LogEvent for event Cancel, status_code DONE. More...

int edg_wll_LogCancelABORT (edg_wll_Context context, const char *reason)
 simple wrapper around edg_wll_LogEvent for event Cancel, status_code ABORT. More...

int edg_wll_LogAbort (edg_wll_Context context, const char *reason)
 simple wrapper around edg_wll_LogEvent for event Abort. More...

int edg_wll_LogClear (edg_wll_Context context, const char *reason)
 simple wrapper around edg_wll_LogEvent for event Clear. More...

int edg_wll_LogClearUSER (edg_wll_Context context)
 simple wrapper around edg_wll_LogEvent for event Clear, reason USER. More...

int edg_wll_LogClearTIMEOUT (edg_wll_Context context)
 simple wrapper around edg_wll_LogEvent for event Clear, reason TIMEOUT. More...

int edg_wll_LogClearNOOUTPUT (edg_wll_Context context)
 simple wrapper around edg_wll_LogEvent for event Clear, reason NOOUTPUT. More...

int edg_wll_LogPurge (edg_wll_Context context)
 simple wrapper around edg_wll_LogEvent for event Purge. More...

int edg_wll_LogMatch (edg_wll_Context context, const char *dest_id)
 simple wrapper around edg_wll_LogEvent for event Match. More...

int edg_wll_LogPending (edg_wll_Context context, const char *reason)
 simple wrapper around edg_wll_LogEvent for event Pending. More...

int edg_wll_LogRegJob (edg_wll_Context context, const char *jdl, const char *ns, const edg_wlc_JobId parent, const char *jobtype, const int nsubjobs, const char *seed)
 simple wrapper around edg_wll_LogEvent for event RegJob. More...

int edg_wll_LogRegJobSIMPLE (edg_wll_Context context, const char *jdl, const char *ns, const edg_wlc_JobId parent, const int nsubjobs, const char *seed)
 simple wrapper around edg_wll_LogEvent for event RegJob, jobtype SIMPLE. More...

int edg_wll_LogRegJobDAG (edg_wll_Context context, const char *jdl, const char *ns, const edg_wlc_JobId parent, const int nsubjobs, const char *seed)
 simple wrapper around edg_wll_LogEvent for event RegJob, jobtype DAG. More...

int edg_wll_LogRegJobPARTITIONABLE (edg_wll_Context context, const char *jdl, const char *ns, const edg_wlc_JobId parent, const int nsubjobs, const char *seed)
 simple wrapper around edg_wll_LogEvent for event RegJob, jobtype PARTITIONABLE. More...

int edg_wll_LogRegJobPARTITIONED (edg_wll_Context context, const char *jdl, const char *ns, const edg_wlc_JobId parent, const int nsubjobs, const char *seed)
 simple wrapper around edg_wll_LogEvent for event RegJob, jobtype PARTITIONED. More...

int edg_wll_LogChkpt (edg_wll_Context context, const char *tag, const char *classad)
 simple wrapper around edg_wll_LogEvent for event Chkpt. More...

int edg_wll_LogListener (edg_wll_Context context, const char *svc_name, const char *svc_host, const uint16_t svc_port)
 simple wrapper around edg_wll_LogEvent for event Listener. More...

int edg_wll_LogCurDescr (edg_wll_Context context, const char *descr)
 simple wrapper around edg_wll_LogEvent for event CurDescr. More...

int edg_wll_LogUserTag (edg_wll_Context context, const char *name, const char *value)
 simple wrapper around edg_wll_LogEvent for event UserTag. More...

int edg_wll_LogChangeACL (edg_wll_Context context, const char *user_id, const int user_id_type, const int permission, const int permission_type, const int operation)
 simple wrapper around edg_wll_LogEvent for event ChangeACL. More...

int edg_wll_LogEvent (edg_wll_Context context, edg_wll_EventCode event, char *fmt,...)
 Formats a logging message and sends it asynchronously to local-logger generic asynchronous logging function. More...

int edg_wll_LogEventSync (edg_wll_Context context, edg_wll_EventCode event, char *fmt,...)
 Formats a logging message and sends it synchronously to local-logger generic synchronous logging function. More...

int edg_wll_LogFlush (edg_wll_Context context, struct timeval *timeout)
 Instructs interlogger to to deliver all pending events related to current job flush events from interlogger. More...

int edg_wll_LogFlushAll (edg_wll_Context context, struct timeval *timeout)
 Instructs interlogger to to deliver all pending events flush all events from interlogger. More...

int edg_wll_SetLoggingJob (edg_wll_Context context, const edg_wlc_JobId job, const char *code, int flags)
 Set a current job for given context. More...

int edg_wll_RegisterJobSync (edg_wll_Context context, const edg_wlc_JobId job, enum edg_wll_RegJobJobtype type, const char *jdl, const char *ns, int num_subjobs, const char *seed, edg_wlc_JobId **subjobs)
 Synchronous variant of edg_wll_RegisterJob.

int edg_wll_RegisterSubjobs (edg_wll_Context context, const edg_wlc_JobId parent, char const *const *jdls, const char *ns, edg_wlc_JobId const *subjobs)
 Register subjobs in a batch. More...

int edg_wll_GenerateSubjobIds (edg_wll_Context context, const edg_wlc_JobId parent, int num_subjobs, const char *seed, edg_wlc_JobId **subjobs)
 Generate or regenerate set of subjob ID's. More...

int edg_wll_ChangeACL (edg_wll_Context context, const edg_wlc_JobId job, const char *user_id, enum edg_wll_UserIdType user_id_type, enum edg_wll_Permission permission, enum edg_wll_PermissionType permission_type, enum edg_wll_ACLOperation operation)
 Change ACL for given job. More...


Detailed Description

client API for storing data into L&B service.


Define Documentation

#define EDG_WLL_JOB_SIMPLE   EDG_WLL_REGJOB_SIMPLE
 

Register job with L&B service.

Done via logging REGJOB event, may generate subjob id's and create the parent-children associations. Set the job as current for the context and initialize sequence code.

Partitionable jobs should set num_subjobs=0 initially, and re-register when number of subjobs becomes known.

Parameters:
type  EDG_WLL_JOB_SIMPLE, EDG_WLL_JOB_DAG, or EDG_WLL_JOB_PARTITIONABLE
jdl  user-specified JDL
ns  network server contact
num_subjobs  number of subjobs to create
seed  seed used for subjob id's generator. Use non-NULL value to be able to regenerate the set of jobid's
subjobs  returned subjob id's


Function Documentation

int edg_wll_ChangeACL edg_wll_Context    context,
const edg_wlc_JobId    job,
const char *    user_id,
enum edg_wll_UserIdType    user_id_type,
enum edg_wll_Permission    permission,
enum edg_wll_PermissionType    permission_type,
enum edg_wll_ACLOperation    operation
 

Change ACL for given job.

Parameters:
specification  of user's credential
user_id_type  type of user_id, for EDG_WLL_USER_SUBJECT the user_id parameter is expected to be user's subject name for EDG_WLL_USER_VOMS_GROUP the user_id is expected to be of the form VO:group specifying required group membersip as managed by VOMS
permission  ACL permission to change
permission_type  type of given permission (allow or deny operation)
operation  operation to perform with ACL (add or remove record)

int edg_wll_GenerateSubjobIds edg_wll_Context    context,
const edg_wlc_JobId    parent,
int    num_subjobs,
const char *    seed,
edg_wlc_JobId **    subjobs
 

Generate or regenerate set of subjob ID's.

Calls the same algorithm used to generate subjob ID's in edg_wll_RegisterJob(). Local semantics only, server is not contacted.

int edg_wll_LogAbort edg_wll_Context    context,
const char *    reason
 

simple wrapper around edg_wll_LogEvent for event Abort.

Parameters:
context  context to work with,
reason  reason of abort
See also:
edg_wll_LogEvent()

int edg_wll_LogAccepted edg_wll_Context    context,
const edg_wll_Source    from,
const char *    from_host,
const char *    from_instance,
const char *    local_jobid
 

simple wrapper around edg_wll_LogEvent for event Accepted.

Parameters:
context  context to work with,
from  where was the job received from
from_host  sending component hostname
from_instance  sending component instance
local_jobid  new jobId (Condor, Globus ...) assigned by the receiving component
See also:
edg_wll_LogEvent()

int edg_wll_LogCancel edg_wll_Context    context,
const char *    status_code,
const char *    reason
 

simple wrapper around edg_wll_LogEvent for event Cancel.

Parameters:
context  context to work with,
status_code  classification of the cancel
reason  detailed description
See also:
edg_wll_LogEvent()

int edg_wll_LogCancelABORT edg_wll_Context    context,
const char *    reason
 

simple wrapper around edg_wll_LogEvent for event Cancel, status_code ABORT.

Parameters:
context  context to work with,
reason  detailed description
See also:
edg_wll_LogEvent()

int edg_wll_LogCancelDONE edg_wll_Context    context,
const char *    reason
 

simple wrapper around edg_wll_LogEvent for event Cancel, status_code DONE.

Parameters:
context  context to work with,
reason  detailed description
See also:
edg_wll_LogEvent()

int edg_wll_LogCancelREFUSE edg_wll_Context    context,
const char *    reason
 

simple wrapper around edg_wll_LogEvent for event Cancel, status_code REFUSE.

Parameters:
context  context to work with,
reason  detailed description
See also:
edg_wll_LogEvent()

int edg_wll_LogCancelREQ edg_wll_Context    context,
const char *    reason
 

simple wrapper around edg_wll_LogEvent for event Cancel, status_code REQ.

Parameters:
context  context to work with,
reason  detailed description
See also:
edg_wll_LogEvent()

int edg_wll_LogChangeACL edg_wll_Context    context,
const char *    user_id,
const int    user_id_type,
const int    permission,
const int    permission_type,
const int    operation
 

simple wrapper around edg_wll_LogEvent for event ChangeACL.

Parameters:
context  context to work with,
user_id  DN or VOMS parameter (in format VO:group)
user_id_type  type of information given in user_id (DN or VOMS)
permission  ACL permission to change (currently only READ)
permission_type  type of permission requested ('allow', 'deny')
operation  operation requested to perform with ACL (add, remove)
See also:
edg_wll_LogEvent()

int edg_wll_LogChkpt edg_wll_Context    context,
const char *    tag,
const char *    classad
 

simple wrapper around edg_wll_LogEvent for event Chkpt.

Parameters:
context  context to work with,
tag  checkpoint tag
classad  checkpoint value
See also:
edg_wll_LogEvent()

int edg_wll_LogClear edg_wll_Context    context,
const char *    reason
 

simple wrapper around edg_wll_LogEvent for event Clear.

Parameters:
context  context to work with,
reason  why the job was cleared
See also:
edg_wll_LogEvent()

int edg_wll_LogClearNOOUTPUT edg_wll_Context    context
 

simple wrapper around edg_wll_LogEvent for event Clear, reason NOOUTPUT.

Parameters:
context  context to work with,
See also:
edg_wll_LogEvent()

int edg_wll_LogClearTIMEOUT edg_wll_Context    context
 

simple wrapper around edg_wll_LogEvent for event Clear, reason TIMEOUT.

Parameters:
context  context to work with,
See also:
edg_wll_LogEvent()

int edg_wll_LogClearUSER edg_wll_Context    context
 

simple wrapper around edg_wll_LogEvent for event Clear, reason USER.

Parameters:
context  context to work with,
See also:
edg_wll_LogEvent()

int edg_wll_LogCurDescr edg_wll_Context    context,
const char *    descr
 

simple wrapper around edg_wll_LogEvent for event CurDescr.

Parameters:
context  context to work with,
descr  description of current job transformation (output of helper)
See also:
edg_wll_LogEvent()

int edg_wll_LogDeQueued edg_wll_Context    context,
const char *    queue,
const char *    local_jobid
 

simple wrapper around edg_wll_LogEvent for event DeQueued.

Parameters:
context  context to work with,
queue  queue name
local_jobid  new jobId assigned by the receiving component
See also:
edg_wll_LogEvent()

int edg_wll_LogDone edg_wll_Context    context,
const char *    status_code,
const char *    reason,
const int    exit_code
 

simple wrapper around edg_wll_LogEvent for event Done.

Parameters:
context  context to work with,
status_code  way of termination
reason  reason for the change
exit_code  process exit code
See also:
edg_wll_LogEvent()

int edg_wll_LogDoneCANCELLED edg_wll_Context    context,
const char *    reason,
const int    exit_code
 

simple wrapper around edg_wll_LogEvent for event Done, status_code CANCELLED.

Parameters:
context  context to work with,
reason  reason for the change
exit_code  process exit code
See also:
edg_wll_LogEvent()

int edg_wll_LogDoneFAILED edg_wll_Context    context,
const char *    reason,
const int    exit_code
 

simple wrapper around edg_wll_LogEvent for event Done, status_code FAILED.

Parameters:
context  context to work with,
reason  reason for the change
exit_code  process exit code
See also:
edg_wll_LogEvent()

int edg_wll_LogDoneOK edg_wll_Context    context,
const char *    reason,
const int    exit_code
 

simple wrapper around edg_wll_LogEvent for event Done, status_code OK.

Parameters:
context  context to work with,
reason  reason for the change
exit_code  process exit code
See also:
edg_wll_LogEvent()

int edg_wll_LogEnQueued edg_wll_Context    context,
const char *    queue,
const char *    job,
const char *    result,
const char *    reason
 

simple wrapper around edg_wll_LogEvent for event EnQueued.

Parameters:
context  context to work with,
queue  destination queue
job  job description in receiver language
result  result of the attempt
reason  detailed description of transfer, especially reason of failure
See also:
edg_wll_LogEvent()

int edg_wll_LogEnQueuedFAIL edg_wll_Context    context,
const char *    queue,
const char *    job,
const char *    reason
 

simple wrapper around edg_wll_LogEvent for event EnQueued, result FAIL.

Parameters:
context  context to work with,
queue  destination queue
job  job description in receiver language
reason  detailed description of transfer, especially reason of failure
See also:
edg_wll_LogEvent()

int edg_wll_LogEnQueuedOK edg_wll_Context    context,
const char *    queue,
const char *    job,
const char *    reason
 

simple wrapper around edg_wll_LogEvent for event EnQueued, result OK.

Parameters:
context  context to work with,
queue  destination queue
job  job description in receiver language
reason  detailed description of transfer, especially reason of failure
See also:
edg_wll_LogEvent()

int edg_wll_LogEnQueuedREFUSED edg_wll_Context    context,
const char *    queue,
const char *    job,
const char *    reason
 

simple wrapper around edg_wll_LogEvent for event EnQueued, result REFUSED.

Parameters:
context  context to work with,
queue  destination queue
job  job description in receiver language
reason  detailed description of transfer, especially reason of failure
See also:
edg_wll_LogEvent()

int edg_wll_LogEnQueuedSTART edg_wll_Context    context,
const char *    queue,
const char *    job,
const char *    reason
 

simple wrapper around edg_wll_LogEvent for event EnQueued, result START.

Parameters:
context  context to work with,
queue  destination queue
job  job description in receiver language
reason  detailed description of transfer, especially reason of failure
See also:
edg_wll_LogEvent()

int edg_wll_LogEvent edg_wll_Context    context,
edg_wll_EventCode    event,
char *    fmt,
...   
 

Formats a logging message and sends it asynchronously to local-logger generic asynchronous logging function.

Parameters:
context  INOUT context to work with,
event  IN type of the event,
fmt  IN printf()-like format string,
...  IN event specific values/data according to fmt,
Return values:
0  successful completition,
EINVAL  bad jobId, unknown event code, or the format string together with the remaining arguments does not form a valid event,
ENOSPC  L&B infrastructure failed to accept the event due to lack of disk space etc.,
ENOMEM  failed to allocate memory,
ECONNREFUSED  cannot connect to the specified local logger,
EAGAIN  non blocking return from the call, the event may or may not get logged,
EDG_WLL_ERROR_NOJOBID  logging call attempted without assigning jobId to the context.

int edg_wll_LogEventSync edg_wll_Context    context,
edg_wll_EventCode    event,
char *    fmt,
...   
 

Formats a logging message and sends it synchronously to local-logger generic synchronous logging function.

Parameters:
context  INOUT context to work with,
event  IN type of the event,
fmt  IN printf()-like format string,
...  IN event specific values/data according to fmt,
Return values:
0  successful completition,
EINVAL  bad jobId, unknown event code, or the format string together with the remaining arguments does not form a valid event,
ENOSPC  L&B infrastructure failed to accept the event due to lack of disk space etc.,
ENOMEM  failed to allocate memory,
ECONNREFUSED  cannot connect to the specified local logger,
EAGAIN  non blocking return from the call, the event may or may not get logged,
EDG_WLL_ERROR_NOJOBID  logging call attempted without assigning jobId to the context,
EPERM  the user is not authorized to add events to this job,
EDG_WLL_ERROR_DB_DUP_KEY  exactly the same event has been already stored.

int edg_wll_LogFlush edg_wll_Context    context,
struct timeval *    timeout
 

Instructs interlogger to to deliver all pending events related to current job flush events from interlogger.

Note:
sort of status query more than a command
Parameters:
context  INOUT context to work with,
timeout  INOUT wait at most this much time for completition, remaining time on return,
Return values:
0  successful completition,
EDG_WLL_ERROR_INTERLOG_TIMEOUT  the inter-logger did not respond within the timeout,
EDG_WLL_ERROR_INTERLOG_CONLOST  inter-logger lost connection to one or more servers,
EDG_WLL_ERROR_INTERLOG_AGAIN  not all pending events were delivered within the timeout.

int edg_wll_LogFlushAll edg_wll_Context    context,
struct timeval *    timeout
 

Instructs interlogger to to deliver all pending events flush all events from interlogger.

Note:
same as edg_wll_LogFlush() for all jobs known to interlogger
See also:
edg_wll_LogFlush()

int edg_wll_LogHelperCall edg_wll_Context    context,
const char *    helper_name,
const char *    helper_params,
const char *    src_role
 

simple wrapper around edg_wll_LogEvent for event HelperCall.

Parameters:
context  context to work with,
helper_name  name of the called component
helper_params  parameters of the call
src_role  whether the logging component is called or calling one
See also:
edg_wll_LogEvent()

int edg_wll_LogHelperCallCALLED edg_wll_Context    context,
const char *    helper_name,
const char *    helper_params
 

simple wrapper around edg_wll_LogEvent for event HelperCall, src_role CALLED.

Parameters:
context  context to work with,
helper_name  name of the called component
helper_params  parameters of the call
See also:
edg_wll_LogEvent()

int edg_wll_LogHelperCallCALLING edg_wll_Context    context,
const char *    helper_name,
const char *    helper_params
 

simple wrapper around edg_wll_LogEvent for event HelperCall, src_role CALLING.

Parameters:
context  context to work with,
helper_name  name of the called component
helper_params  parameters of the call
See also:
edg_wll_LogEvent()

int edg_wll_LogHelperReturn edg_wll_Context    context,
const char *    helper_name,
const char *    retval,
const char *    src_role
 

simple wrapper around edg_wll_LogEvent for event HelperReturn.

Parameters:
context  context to work with,
helper_name  name of the called component
retval  returned data
src_role  whether the logging component is called or calling one
See also:
edg_wll_LogEvent()

int edg_wll_LogHelperReturnCALLED edg_wll_Context    context,
const char *    helper_name,
const char *    retval
 

simple wrapper around edg_wll_LogEvent for event HelperReturn, src_role CALLED.

Parameters:
context  context to work with,
helper_name  name of the called component
retval  returned data
See also:
edg_wll_LogEvent()

int edg_wll_LogHelperReturnCALLING edg_wll_Context    context,
const char *    helper_name,
const char *    retval
 

simple wrapper around edg_wll_LogEvent for event HelperReturn, src_role CALLING.

Parameters:
context  context to work with,
helper_name  name of the called component
retval  returned data
See also:
edg_wll_LogEvent()

int edg_wll_LogListener edg_wll_Context    context,
const char *    svc_name,
const char *    svc_host,
const uint16_t    svc_port
 

simple wrapper around edg_wll_LogEvent for event Listener.

Parameters:
context  context to work with,
svc_name  port instance name
svc_host  hostname
svc_port  port number
See also:
edg_wll_LogEvent()

int edg_wll_LogMatch edg_wll_Context    context,
const char *    dest_id
 

simple wrapper around edg_wll_LogEvent for event Match.

Parameters:
context  context to work with,
dest_id  Id of the destination CE/queue
See also:
edg_wll_LogEvent()

int edg_wll_LogPending edg_wll_Context    context,
const char *    reason
 

simple wrapper around edg_wll_LogEvent for event Pending.

Parameters:
context  context to work with,
reason  why matching CE cannot be found
See also:
edg_wll_LogEvent()

int edg_wll_LogPurge edg_wll_Context    context
 

simple wrapper around edg_wll_LogEvent for event Purge.

Parameters:
context  context to work with,
See also:
edg_wll_LogEvent()

int edg_wll_LogRefused edg_wll_Context    context,
const edg_wll_Source    from,
const char *    from_host,
const char *    from_instance,
const char *    reason
 

simple wrapper around edg_wll_LogEvent for event Refused.

Parameters:
context  context to work with,
from  where was the job received from
from_host  sending component hostname
from_instance  sending component instance
reason  reason of refusal
See also:
edg_wll_LogEvent()

int edg_wll_LogRegJob edg_wll_Context    context,
const char *    jdl,
const char *    ns,
const edg_wlc_JobId    parent,
const char *    jobtype,
const int    nsubjobs,
const char *    seed
 

simple wrapper around edg_wll_LogEvent for event RegJob.

Parameters:
context  context to work with,
jdl  job description
ns  NetworkServer handling the job
parent  jobid of parent job
jobtype  job type
nsubjobs  number of subjobs
seed  seed for subjob id generation
See also:
edg_wll_LogEvent()

int edg_wll_LogRegJobDAG edg_wll_Context    context,
const char *    jdl,
const char *    ns,
const edg_wlc_JobId    parent,
const int    nsubjobs,
const char *    seed
 

simple wrapper around edg_wll_LogEvent for event RegJob, jobtype DAG.

Parameters:
context  context to work with,
jdl  job description
ns  NetworkServer handling the job
parent  jobid of parent job
nsubjobs  number of subjobs
seed  seed for subjob id generation
See also:
edg_wll_LogEvent()

int edg_wll_LogRegJobPARTITIONABLE edg_wll_Context    context,
const char *    jdl,
const char *    ns,
const edg_wlc_JobId    parent,
const int    nsubjobs,
const char *    seed
 

simple wrapper around edg_wll_LogEvent for event RegJob, jobtype PARTITIONABLE.

Parameters:
context  context to work with,
jdl  job description
ns  NetworkServer handling the job
parent  jobid of parent job
nsubjobs  number of subjobs
seed  seed for subjob id generation
See also:
edg_wll_LogEvent()

int edg_wll_LogRegJobPARTITIONED edg_wll_Context    context,
const char *    jdl,
const char *    ns,
const edg_wlc_JobId    parent,
const int    nsubjobs,
const char *    seed
 

simple wrapper around edg_wll_LogEvent for event RegJob, jobtype PARTITIONED.

Parameters:
context  context to work with,
jdl  job description
ns  NetworkServer handling the job
parent  jobid of parent job
nsubjobs  number of subjobs
seed  seed for subjob id generation
See also:
edg_wll_LogEvent()

int edg_wll_LogRegJobSIMPLE edg_wll_Context    context,
const char *    jdl,
const char *    ns,
const edg_wlc_JobId    parent,
const int    nsubjobs,
const char *    seed
 

simple wrapper around edg_wll_LogEvent for event RegJob, jobtype SIMPLE.

Parameters:
context  context to work with,
jdl  job description
ns  NetworkServer handling the job
parent  jobid of parent job
nsubjobs  number of subjobs
seed  seed for subjob id generation
See also:
edg_wll_LogEvent()

int edg_wll_LogResubmission edg_wll_Context    context,
const char *    result,
const char *    reason,
const char *    tag
 

simple wrapper around edg_wll_LogEvent for event Resubmission.

Parameters:
context  context to work with,
result  result code
reason  reason for the decision
tag  value of the attribute on which the decision is based
See also:
edg_wll_LogEvent()

int edg_wll_LogResubmissionWILLRESUB edg_wll_Context    context,
const char *    reason,
const char *    tag
 

simple wrapper around edg_wll_LogEvent for event Resubmission, result WILLRESUB.

Parameters:
context  context to work with,
reason  reason for the decision
tag  value of the attribute on which the decision is based
See also:
edg_wll_LogEvent()

int edg_wll_LogResubmissionWONTRESUB edg_wll_Context    context,
const char *    reason,
const char *    tag
 

simple wrapper around edg_wll_LogEvent for event Resubmission, result WONTRESUB.

Parameters:
context  context to work with,
reason  reason for the decision
tag  value of the attribute on which the decision is based
See also:
edg_wll_LogEvent()

int edg_wll_LogRunning edg_wll_Context    context,
const char *    node
 

simple wrapper around edg_wll_LogEvent for event Running.

Parameters:
context  context to work with,
node  worker node where the executable is run
See also:
edg_wll_LogEvent()

int edg_wll_LogTransfer edg_wll_Context    context,
const edg_wll_Source    destination,
const char *    dest_host,
const char *    dest_instance,
const char *    job,
const char *    result,
const char *    reason,
const char *    dest_jobid
 

simple wrapper around edg_wll_LogEvent for event Transfer.

Parameters:
context  context to work with,
destination  destination where the job is being transfered to
dest_host  destination hostname
dest_instance  destination instance
job  job description in receiver language
result  result of the attempt
reason  detailed description of transfer, especially reason of failure
dest_jobid  destination internal jobid
See also:
edg_wll_LogEvent()

int edg_wll_LogTransferFAIL edg_wll_Context    context,
const edg_wll_Source    destination,
const char *    dest_host,
const char *    dest_instance,
const char *    job,
const char *    reason,
const char *    dest_jobid
 

simple wrapper around edg_wll_LogEvent for event Transfer, result FAIL.

Parameters:
context  context to work with,
destination  destination where the job is being transfered to
dest_host  destination hostname
dest_instance  destination instance
job  job description in receiver language
reason  detailed description of transfer, especially reason of failure
dest_jobid  destination internal jobid
See also:
edg_wll_LogEvent()

int edg_wll_LogTransferOK edg_wll_Context    context,
const edg_wll_Source    destination,
const char *    dest_host,
const char *    dest_instance,
const char *    job,
const char *    reason,
const char *    dest_jobid
 

simple wrapper around edg_wll_LogEvent for event Transfer, result OK.

Parameters:
context  context to work with,
destination  destination where the job is being transfered to
dest_host  destination hostname
dest_instance  destination instance
job  job description in receiver language
reason  detailed description of transfer, especially reason of failure
dest_jobid  destination internal jobid
See also:
edg_wll_LogEvent()

int edg_wll_LogTransferREFUSED edg_wll_Context    context,
const edg_wll_Source    destination,
const char *    dest_host,
const char *    dest_instance,
const char *    job,
const char *    reason,
const char *    dest_jobid
 

simple wrapper around edg_wll_LogEvent for event Transfer, result REFUSED.

Parameters:
context  context to work with,
destination  destination where the job is being transfered to
dest_host  destination hostname
dest_instance  destination instance
job  job description in receiver language
reason  detailed description of transfer, especially reason of failure
dest_jobid  destination internal jobid
See also:
edg_wll_LogEvent()

int edg_wll_LogTransferSTART edg_wll_Context    context,
const edg_wll_Source    destination,
const char *    dest_host,
const char *    dest_instance,
const char *    job,
const char *    reason,
const char *    dest_jobid
 

simple wrapper around edg_wll_LogEvent for event Transfer, result START.

Parameters:
context  context to work with,
destination  destination where the job is being transfered to
dest_host  destination hostname
dest_instance  destination instance
job  job description in receiver language
reason  detailed description of transfer, especially reason of failure
dest_jobid  destination internal jobid
See also:
edg_wll_LogEvent()

int edg_wll_LogUserTag edg_wll_Context    context,
const char *    name,
const char *    value
 

simple wrapper around edg_wll_LogEvent for event UserTag.

Parameters:
context  context to work with,
name  tag name
value  tag value
See also:
edg_wll_LogEvent()

int edg_wll_RegisterSubjobs edg_wll_Context    context,
const edg_wlc_JobId    parent,
char const *const *    jdls,
const char *    ns,
edg_wlc_JobId const *    subjobs
 

Register subjobs in a batch.

Mainly used to provide JDL's of individual subjobs in a more efficient way than logging them one by one.

Parameters:
jdls  array of JDL's
subjobs  array of jobid's in the same order

int edg_wll_SetLoggingJob edg_wll_Context    context,
const edg_wlc_JobId    job,
const char *    code,
int    flags
 

Set a current job for given context.

Note:
Should be called before any logging call.
Parameters:
context  INOUT context to work with
job  IN further logging calls are related to this job
code  IN sequence code as obtained from previous component
flags  IN flags on code handling (
See also:
API documentation)


Generated on Fri May 14 14:18:56 2004 for L&B API C by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002