[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[HTCondor-users] How to query for list of schedd in c++ api

Dear HTCondor experts,

We are starting to use the classad c++ api and we are following the classad page: https://research.cs.wisc.edu/htcondor/classad/c++tut.html

The first thing that we need to do in the c++ api is to get a list of schedd(s). Like in the command:
"condor_status -schedd"

How to get list of schedd in the c++ api ?ÂÂ

I have installed the "devel" package for condor-8.6.5-1.el6.x86_64

I have the /usr/lib64/libclassad.so for REL6 and

and header files in /usr/include/classad/
attrrefs.h       collection.h lexer.h    Âutil.h
cclassad.h       common.h   lexerSource.h Âvalue.h
classadCache.h     debug.h   Âliterals.h   view.h
classad_distribution.h exprList.h  matchClassad.h xmlLexer.h
classadErrno.h     exprTree.h  operators.h  ÂxmlSink.h
classad.h       ÂfnCall.h   query.h    ÂxmlSource.h
classadItor.h     Âindexfile.h Âsink.h
classad_stl.h     ÂjsonSink.h  source.h
collectionBase.h    jsonSource.h transaction.h

I found "ClassAdArray queryScheddAds(String constraint);" from http://research.cs.wisc.edu/htcondor/manual/v8.6/6_1Web_Service.html
6.1.10 Methods for ClassAd Management .

Does queryScheddAds(...) return the list of schedd(s)? I can't find it in Â/usr/include/classad/ header files. Is it in another package? Should I download something else?ÂÂ