Class Fetch

  extended bycondor.classad.tests.Fetch

public class Fetch
extends Object

Main program to fetch classads from the Condor collector and save them to a file. This program

  1. Uses ClassAdParser to parse a trivial classad.
  2. Connects the the Condor collector and sets up Cedar streams to/from collector.
  3. Transmits the ad from step 1 to the collector to request a full dump of all STARTD ads. The ad is sent in the "old" classad format, using RecordExpr.transmit().
  4. Creates a ClassAdReader to convert the response (a sequence of ads in "old" format) to ASCII format.
  5. Dumps the result to stdout.
Its main purpose is to serve as an example how to do these things with the packages condor.cedar and condor.classad and to measure the performance.


      java condor.classad.tests.Fetch [ options ] command output-file
Options are
Set verbosity of debugging output to level
Add one to the verbosity level
-h host
Name of host running the collector
-m count
Only save the first count adds
Store the results in "raw" (not ASCII) format
Discard the output (for timing purposes)

Marvin Solomon

Field Summary
          Default port for Condor collector.
static String server
          Default host for Condor collector.
Constructor Summary
Method Summary
static void main(String[] args)
          The main program.
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


public static String server
Default host for Condor collector.


public static final int COLLECTOR_COMM_PORT
Default port for Condor collector.

See Also:
Constant Field Values
Constructor Detail


public Fetch()
Method Detail


public static void main(String[] args)
The main program.

args - command-line arguments.