:25: :25: …"> :25: :25: …">

Presentation is loading. Please wait.

Presentation is loading. Please wait.

SAN DIEGO SUPERCOMPUTER CENTER Using the Inca APIs Jim Hayes Inca Workshop September 4-5, 2008.

Similar presentations


Presentation on theme: "SAN DIEGO SUPERCOMPUTER CENTER Using the Inca APIs Jim Hayes Inca Workshop September 4-5, 2008."— Presentation transcript:

1 SAN DIEGO SUPERCOMPUTER CENTER Using the Inca APIs Jim Hayes jhayes@sdsc.edu Inca Workshop September 4-5, 2008

2 SAN DIEGO SUPERCOMPUTER CENTER APIs Provide Access to Inca Servers Java and Perl Client APIs generally internal use DepotClient provides access to report database AgentClient provides access to installation configuration incaws Web Service provides unauthenticated access Documentation: http://inca.sdsc.edu/releases/2.4/guide/userguide-apis.html http://inca.sdsc.edu/releases/2.4/guide/userguide-webservices.html

3 SAN DIEGO SUPERCOMPUTER CENTER DepotClient queryHql Takes an HQL (Hibernate’s SQL dialect) query as a parameter Returns an array of XML, one element per object selected Example: client.queryHql("select ii from Report r, InstanceInfo ii where ii.reportId= r.id and r.resource = 'repo'") => 2008-09-03 14:25:03.0 2008-09-03 14:25:04.108 1.462776 25.132812 2.002927 …

4 SAN DIEGO SUPERCOMPUTER CENTER DepotClient queryGuids Returns an array of suite identifiers Example: client.queryGuids() => incas://hogg.sdsc.edu:6323/sampleSuite …

5 SAN DIEGO SUPERCOMPUTER CENTER DepotClient queryLatest Takes a select WHERE clause as a parameter Returns combined latest report instance info for each series Example: client.queryLatest("suite.guid = 'incas://hogg.sdsc.edu:6323/sampleSuite'") => localResource file:///users/u4/train31/IncaInstall/bin/../Inca-Reporter-5.10644/bin/grid.wget.unit wget_page_test 10 169 2008-09-03T14:40:01.000-07:00 2008-09-03T15:00:01.869-07:00 wget …

6 SAN DIEGO SUPERCOMPUTER CENTER AgentClient getConfig Returns XML for Inca installation configuration Example: client.getConfig() => file:/users/u4/train31/IncaInstall/bin/../Inca-Reporter-5.10644 defaultGrid //resource[matches(name, "localSite")] … cluster.admin.ant.unit version no @pre@@@@post@ ant_helloworld_compile_test defaultGrid 1-59/10 * * * * add …

7 SAN DIEGO SUPERCOMPUTER CENTER AgentClient getCatalog Returns Packages.gz contents for a given Reporter Repository Example: client.getCatalog('http://inca.sdsc.edu/repository/latest') => version:2 name:viz.tools.imagemagick.version url:http://www.imagemagick.org/ file:bin/viz.tools.imagemagick.version description:Reports the version of the ImageMagick toolkit arguments: help no|yes no log [012345]|debug|error|info|system|warn 0 verbose [012] 1 version no|yes no dependencies: Inca::Reporter Inca::Reporter::Version version:2 name:viz.tools.netpbm.version url:http://netpbm.sourceforge.net/ file:bin/viz.tools.netpbm.version …

8 SAN DIEGO SUPERCOMPUTER CENTER Additional Client Methods DepotClient insertReport(resource, report, sysusage, stderr, context) queryDatabase() queryInstance(instanceId, configId) queryStatusHistory(period, begin, end, select) updateSuite(xml) AgentClient setConfig(xml)

9 SAN DIEGO SUPERCOMPUTER CENTER incaws Provides Unathenticated Access Start via “$INCA_DIST/bin/inca incaws” Combines query facilities of AgentClient and DepotClient (queryHql, queryGuids, getConfig, getCatalog, etc.) WSDL found in $INCA_DIST/etc/IncaWS.wsdl

10 SAN DIEGO SUPERCOMPUTER CENTER Agenda -- Day 2 9:00 - 9:30Inside the Inca Depot 9:30 - 10:00Inca APIs 10:00 - 11:00Data display (data consumers) 11:15 - 12:00Hands-on: Inca deployment (part 2) 1:00 - 2:00Hands-on: Data display (data consumers) 2:00 - 3:00Wrap up


Download ppt "SAN DIEGO SUPERCOMPUTER CENTER Using the Inca APIs Jim Hayes Inca Workshop September 4-5, 2008."

Similar presentations


Ads by Google