Difference: ClientApiCppDoc (10 vs. 11)

Revision 112011-07-14 - AlviseDorigo

Line: 1 to 1
 
META TOPICPARENT name="DevelopersDocumentation"
Changed:
<
<

[ WORK IN PROGRESS - NOT YET READY FOR PUBLICATION ]

>
>

CREAM Client development tutorial - EMI-1 version

 

Preliminaries: build machine configuration

Line: 191 to 191
  QueryEvent is a convenient CREAM's operation that returns a selected range of particular events. At the moment in the CREAM framework an Event is a job's status change; in future an evolved version of CREAM could put different kind of information inside an event.
Changed:
<
<
A user that invokes a QueryEvent on a CREAM CE, receives all her/his jobs's status changes. The query has two filters:
>
>
A user that invokes a QueryEvent on a CREAM CE, receives all her/his jobs's status changes. The query has three filters:
 
  • time range (from, to)
  • ID range (from ,to)
Changed:
<
<
Time range has a quite intuitive meaning, the ID a few less. Each event generated in a CE for a certain user, has an incremental ID (64bit unsigned integer). A user can be interested to a certain subset of all her/his job events, identified by a particular ID range that correspond to the subset. This function is particularly useful to the ICE component that memorizes the last event's ID received in the last call for each couple (user_DN, CE_URL), resulting in a quite small information exchange with the CE.
>
>
  • job's states
Time range has a quite intuitive meaning, the ID a few less. Each event generated in a CE for a certain user, has an incremental ID (64bit unsigned integer). A user can be interested to a certain subset of all her/his job events, identified by a particular ID range. This kind of filtering is particularly useful to the ICE component that memorizes the last event's ID received in the last call for each couple (user_DN, CE_URL), resulting in a quite small information exchange with the CE at each remote call.
 
Changed:
<
<
As usual, in order to perform a QueryEvent the user must obtain a pointer to an AbsCreamProxy object by mean of CreamProxyFactory::make_CreamProxy_QueryEvent(...), invoke the execute(...) method on it, and delete it. The invocation of execute(...) will fill up a list of EventWrapper pointers (that is an argument of the CreamProxyFactory::make_CreamProxy_QueryEvent function).
>
>
Finally, the filter related to job's states simply select those events that carry a job status that is present in a list specified by the user.
 
Changed:
<
<
[ TO BE CONTINUED ... ]
>
>
As usual, in order to perform a QueryEvent the user must obtain a pointer to an AbsCreamProxy object by mean of CreamProxyFactory::make_CreamProxy_QueryEvent(...), invoke setCredential(...) and execute(...) methods on it, and delete it. The invocation of execute(...) will fill up a list of EventWrapper pointers (that is an argument of the CreamProxyFactory::make_CreamProxy_QueryEvent function).

Please see the example source code to understand how to use the above stuff.

Getting Service Information from a deployed CREAM CE running service

This remote operation is very simple; the factory CreamProxyFactory::make_CreamProxyServiceInfo(...) just needs a simple parameter that is a pointer to a ServiceInfoWrapper object and a verbosity; ServiceInfoWrapper exposes methods to obtain information on the CREAM service which are be self-explanatory.

Example source code.

Contact info

For any problem or doubt, to report bugs or any kind of error in the text or in the source code example, please contact me at

alvise <DOT> dorigo <AT> pd <DOT> infn <DOT> it

  -- AlviseDorigo - 2011-06-14
Line: 213 to 228
 
META FILEATTACHMENT attachment="tryMultipleRegister.cpp" attr="" comment="" date="1309956911" name="tryMultipleRegister.cpp" path="tryMultipleRegister.cpp" size="4762" user="AlviseDorigo" version="1"
META FILEATTACHMENT attachment="tryProxyRenew.cpp" attr="" comment="" date="1310458435" name="tryProxyRenew.cpp" path="tryProxyRenew.cpp" size="1188" user="AlviseDorigo" version="1"
META FILEATTACHMENT attachment="tryEnableDisableSub.cpp" attr="" comment="" date="1310459581" name="tryEnableDisableSub.cpp" path="tryEnableDisableSub.cpp" size="1037" user="AlviseDorigo" version="1"
Added:
>
>
META FILEATTACHMENT attachment="tryQueryEvent.cpp" attr="" comment="" date="1310628535" name="tryQueryEvent.cpp" path="tryQueryEvent.cpp" size="5373" user="AlviseDorigo" version="1"
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback