#include <Event.h>
Public Types | |
enum | Type { UNDEF = 0, TRANSFER = EDG_WLL_EVENT_TRANSFER, ACCEPTED = EDG_WLL_EVENT_ACCEPTED, REFUSED = EDG_WLL_EVENT_REFUSED, ENQUEUED = EDG_WLL_EVENT_ENQUEUED, DEQUEUED = EDG_WLL_EVENT_DEQUEUED, HELPERCALL = EDG_WLL_EVENT_HELPERCALL, HELPERRETURN = EDG_WLL_EVENT_HELPERRETURN, RUNNING = EDG_WLL_EVENT_RUNNING, RESUBMISSION = EDG_WLL_EVENT_RESUBMISSION, DONE = EDG_WLL_EVENT_DONE, CANCEL = EDG_WLL_EVENT_CANCEL, ABORT = EDG_WLL_EVENT_ABORT, CLEAR = EDG_WLL_EVENT_CLEAR, PURGE = EDG_WLL_EVENT_PURGE, MATCH = EDG_WLL_EVENT_MATCH, PENDING = EDG_WLL_EVENT_PENDING, REGJOB = EDG_WLL_EVENT_REGJOB, CHKPT = EDG_WLL_EVENT_CHKPT, LISTENER = EDG_WLL_EVENT_LISTENER, CURDESCR = EDG_WLL_EVENT_CURDESCR, USERTAG = EDG_WLL_EVENT_USERTAG, CHANGEACL = EDG_WLL_EVENT_CHANGEACL, NOTIFICATION = EDG_WLL_EVENT_NOTIFICATION, RESOURCEUSAGE = EDG_WLL_EVENT_RESOURCEUSAGE, REALLYRUNNING = EDG_WLL_EVENT_REALLYRUNNING, SUSPEND = EDG_WLL_EVENT_SUSPEND, RESUME = EDG_WLL_EVENT_RESUME, COLLECTIONSTATE = EDG_WLL_EVENT_COLLECTIONSTATE, PBSQUEUED = EDG_WLL_EVENT_PBSQUEUED, PBSMATCH = EDG_WLL_EVENT_PBSMATCH, PBSPENDING = EDG_WLL_EVENT_PBSPENDING, PBSRUN = EDG_WLL_EVENT_PBSRUN, PBSRERUN = EDG_WLL_EVENT_PBSRERUN, PBSDONE = EDG_WLL_EVENT_PBSDONE, PBSDEQUEUED = EDG_WLL_EVENT_PBSDEQUEUED, PBSRESOURCEUSAGE = EDG_WLL_EVENT_PBSRESOURCEUSAGE, PBSERROR = EDG_WLL_EVENT_PBSERROR, CONDORMATCH = EDG_WLL_EVENT_CONDORMATCH, CONDORREJECT = EDG_WLL_EVENT_CONDORREJECT, CONDORSHADOWSTARTED = EDG_WLL_EVENT_CONDORSHADOWSTARTED, CONDORSHADOWEXITED = EDG_WLL_EVENT_CONDORSHADOWEXITED, CONDORSTARTERSTARTED = EDG_WLL_EVENT_CONDORSTARTERSTARTED, CONDORSTARTEREXITED = EDG_WLL_EVENT_CONDORSTARTEREXITED, CONDORRESOURCEUSAGE = EDG_WLL_EVENT_CONDORRESOURCEUSAGE, CONDORERROR = EDG_WLL_EVENT_CONDORERROR, TYPE_MAX = EDG_WLL_EVENT__LAST } |
enum | Attr { ARRIVED = 0, CHILD = 1, CHILD_EVENT = 2, CLASSAD = 3, DESCR = 4, DEST_HOST = 5, DEST_ID = 6, DEST_INSTANCE = 7, DEST_JOBID = 8, DEST_PORT = 9, DESTINATION = 10, DONE_CODE = 11, ERROR_DESC = 12, EXIT_CODE = 13, EXIT_STATUS = 14, EXPIRES = 78, FROM = 15, FROM_HOST = 16, FROM_INSTANCE = 17, HELPER_NAME = 18, HELPER_PARAMS = 19, HISTOGRAM = 20, HOST = 21, JDL = 22, JOB = 23, JOBID = 24, JOB_EXIT_STATUS = 25, JOB_PID = 26, JOBSTAT = 27, JOBTYPE = 28, LEVEL = 29, LOCAL_JOBID = 30, NAME = 31, NODE = 32, NOTIFID = 33, NS = 34, NSUBJOBS = 35, OPERATION = 36, OWNER = 37, PARENT = 38, PERMISSION = 39, PERMISSION_TYPE = 40, PID = 41, PREEMPTING = 42, PRIORITY = 43, QUANTITY = 44, QUEUE = 45, REASON = 46, RESOURCE = 47, RESULT = 48, RETVAL = 49, SCHEDULER = 50, SEED = 51, SEQCODE = 52, SHADOW_EXIT_STATUS = 53, SHADOW_HOST = 54, SHADOW_PID = 55, SHADOW_PORT = 56, SHADOW_STATUS = 57, SOURCE = 58, SRC_INSTANCE = 59, SRC_ROLE = 60, STARTER_EXIT_STATUS = 61, STARTER_PID = 62, STATE = 63, STATUS_CODE = 64, SVC_HOST = 65, SVC_NAME = 66, SVC_PORT = 67, TAG = 68, TIMESTAMP = 69, UNIT = 70, UNIVERSE = 71, USAGE = 72, USER = 73, USER_ID = 74, USER_ID_TYPE = 75, VALUE = 76, WN_SEQ = 77, ATTR_MAX = 79 } |
enum | ClearCode { CLEAR_USER = EDG_WLL_CLEAR_USER, CLEAR_TIMEOUT = EDG_WLL_CLEAR_TIMEOUT, CLEAR_NOOUTPUT = EDG_WLL_CLEAR_NOOUTPUT } |
enum | EnQueuedCode { ENQUEUED_START = EDG_WLL_ENQUEUED_START, ENQUEUED_OK = EDG_WLL_ENQUEUED_OK, ENQUEUED_REFUSED = EDG_WLL_ENQUEUED_REFUSED, ENQUEUED_FAIL = EDG_WLL_ENQUEUED_FAIL } |
enum | ResubmissionCode { RESUBMISSION_WILLRESUB = EDG_WLL_RESUBMISSION_WILLRESUB, RESUBMISSION_WONTRESUB = EDG_WLL_RESUBMISSION_WONTRESUB, RESUBMISSION_SHALLOW = EDG_WLL_RESUBMISSION_SHALLOW } |
enum | TransferCode { TRANSFER_START = EDG_WLL_TRANSFER_START, TRANSFER_OK = EDG_WLL_TRANSFER_OK, TRANSFER_REFUSED = EDG_WLL_TRANSFER_REFUSED, TRANSFER_FAIL = EDG_WLL_TRANSFER_FAIL } |
enum | CondorRejectCode { CONDORREJECT_NOMATCH = EDG_WLL_CONDORREJECT_NOMATCH, CONDORREJECT_OTHER = EDG_WLL_CONDORREJECT_OTHER } |
enum | CancelCode { CANCEL_REQ = EDG_WLL_CANCEL_REQ, CANCEL_REFUSE = EDG_WLL_CANCEL_REFUSE, CANCEL_DONE = EDG_WLL_CANCEL_DONE, CANCEL_ABORT = EDG_WLL_CANCEL_ABORT } |
enum | DoneCode { DONE_OK = EDG_WLL_DONE_OK, DONE_FAILED = EDG_WLL_DONE_FAILED, DONE_CANCELLED = EDG_WLL_DONE_CANCELLED } |
enum | RegJobCode { REGJOB_SIMPLE = EDG_WLL_REGJOB_SIMPLE, REGJOB_DAG = EDG_WLL_REGJOB_DAG, REGJOB_PARTITIONABLE = EDG_WLL_REGJOB_PARTITIONABLE, REGJOB_PARTITIONED = EDG_WLL_REGJOB_PARTITIONED, REGJOB_COLLECTION = EDG_WLL_REGJOB_COLLECTION, REGJOB_PBS = EDG_WLL_REGJOB_PBS, REGJOB_CONDOR = EDG_WLL_REGJOB_CONDOR } |
enum | CondorResourceUsageCode { CONDORRESOURCEUSAGE_REQUESTED = EDG_WLL_CONDORRESOURCEUSAGE_REQUESTED, CONDORRESOURCEUSAGE_USED = EDG_WLL_CONDORRESOURCEUSAGE_USED } |
enum | PBSResourceUsageCode { PBSRESOURCEUSAGE_REQUESTED = EDG_WLL_PBSRESOURCEUSAGE_REQUESTED, PBSRESOURCEUSAGE_USED = EDG_WLL_PBSRESOURCEUSAGE_USED } |
enum | HelperCallCode { HELPERCALL_CALLING = EDG_WLL_HELPERCALL_CALLING, HELPERCALL_CALLED = EDG_WLL_HELPERCALL_CALLED } |
enum | HelperReturnCode { HELPERRETURN_CALLING = EDG_WLL_HELPERRETURN_CALLING, HELPERRETURN_CALLED = EDG_WLL_HELPERRETURN_CALLED } |
enum | AttrType { INT_T, STRING_T, TIMEVAL_T, PORT_T, LOGSRC_T, JOBID_T, NOTIFID_T, FLOAT_T, DOUBLE_T } |
Public Member Functions | |
Event (void) | |
Event (edg_wll_Event *) | |
Event (const Event &) | |
~Event (void) | |
Event & | operator= (const Event &) |
const std::string & | name (void) const |
int | getValInt (Attr name) const |
float | getValFloat (Attr name) const |
double | getValDouble (Attr name) const |
std::string | getValString (Attr name) const |
timeval | getValTime (Attr name) const |
const glite::wmsutils::jobid::JobId | getValJobId (Attr name) const |
const std::vector< std::pair< Attr, AttrType > > & | getAttrs (void) const |
Static Public Member Functions | |
const std::string & | getAttrName (Attr name) |
const std::string | getEventName (Type type) |
Public Attributes | |
Type | type |
Friends | |
class | Job |
class | ServerConnection |
class | CountRef<Event> |
This class represents a L&B event, which is basically list of attribute -- value pairs. For each particular event type (returned by name()) there is a list of allowed attributes (returned by getAttrs()). The Event class provides methods for reading these attributes, but no means of changing the event are provided; this class is used as a result of L&B queries.
|
Event attribute symbolic identifier. These symbols provide symbolic names for event attributes. In braces are shown the event types for which the attribute is defined, for each event type the attribute meaning is described.
|
|
Symbolic names for types of attribute values. |
|
Classification of the attempt to cancel the job (REQ, REFUSE, DONE or ABORT). |
|
Description of the reason why the job was cleared and the output sandbox removed (USER, TIMEOUT or NOOUTPUT). |
|
Reason code for the rejection of the job |
|
Type of record |
|
Reason code for the termination of the job (OK, FAILED or CANCELLED). |
|
Result code of the attempt to put job into the queue (START, OK, REFUSED or FAIL). |
|
The role the event sender is playing in the helper call (CALLING or CALLEE). |
|
The role the event sender is playing in the helper call (CALLING or CALLEE). |
|
Type of record |
|
|
Result code of the resubmission decision (WILLRESUB or WONTRESUB or SHALLOW). |
|
Result code of the transfer attempt (START, OK, REFUSED or FAIL).
|
|
Event type codes identify which of the event fields are valid.
|
|
Default constructor. Initializes an empty event. |
|
Constructor from corresponding C type. Initializes the object from the corresponding C struct, in fact holding the pointer to it. |
|
Copy constructor. Creates a copy of the object by sharing the C struct with the original. |
|
Destructor. Releases the C struct (possibly deallocating it). |
|
Attribute name. Retrieves string representation of the attribute name.
|
|
List of attributes and types valid for this instance. Retrieves description of all attributes defined for this event.
|
|
Event name. Retrieves string representation of the event type.
|
|
Retrieve double attribute. Retrieves value for attributes of double type.
|
|
Retrieve float attribute. Retrieves value for attributes of float type.
|
|
Retrieve integer attribute. Retrieves value for attributes of integer type.
|
|
Retrieve jobid attribute Retrieves value for attributes of JobId type.
|
|
Retrieve string attribute. Retrieves value for attributes of string type.
|
|
Retrieve time attribute. Retrieves value for attributes of timeval type.
|
|
String representation of the event type. Returns string representing the event type.
|
|
Assign new Event to an existing instance. The original data are released and new ones are made accessible.
|
|
|
|
|
|
|
|
Type of the event as defined by Type. |