ERA msiGetDataObjAVUs microservice

52 views
Skip to first unread message

Tony Edgin

unread,
Sep 3, 2014, 3:23:30 PM9/3/14
to irod...@googlegroups.com
I'm using iRODS 3.3.1.

I'm trying to use msiGetDataObjAVUs, but I don't understand how.  Here's an example of a call to it.

msiGetDataObjAVUs('/iplant/home/tedgin/file', *avus);
writeLine('serverLog', *avus);

In the server log, I see the number 226.

How do I get to the AVUs that have been retrieved?

Thanks.

Hao Xu

unread,
Sep 3, 2014, 3:29:01 PM9/3/14
to irod...@googlegroups.com
Tony,

You can use LINQ to do this

*rs = SELECT META_DATA_ATTR_NAME, META_DATA_ATTR_VALUE, META_DATA_ATTR_UNIT WHERE
            DATA_NAME = "file" AND COLL_NAME = "/iplant/home/tedgin"

foreach(*row in *rs) {
     writeLine("serverLog", *row.META_DATA_ATTR_NAME ++ *row.META_DATA_ATTR_VALUE ++ *row.META_DATA_ATTR_UNIT);
}

Thanks,


--
--
"iRODS: the Integrated Rule-Oriented Data-management System; A community driven, open source, data grid software solution" https://www.irods.org
 
iROD-Chat: http://groups.google.com/group/iROD-Chat

---
You received this message because you are subscribed to the Google Groups "iRODS-Chat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to irod-chat+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tony Edgin

unread,
Sep 3, 2014, 3:32:25 PM9/3/14
to irod...@googlegroups.com
Does this mean the microservice isn't working?

Hao Xu

unread,
Sep 3, 2014, 4:04:46 PM9/3/14
to irod...@googlegroups.com
It's removed from the 4.x repo. If it is still needed, we'll turn it into a plugin. So It's a recommended to use LIGQ. The microservice still works using this example:

myTestRule {
#Input parameter is:
#  Path of file
#Output parameter is:
#  Buffer listing AVUs for the file in XML format
  msiGetDataObjAVUs(*Path,*Buf);
  writeBytesBuf("stdout",*Buf);
}
INPUT *Path="/tempZone/home/rods/sub1/foo1"
OUTPUT ruleExecOut

Reply all
Reply to author
Forward
0 new messages