condor.classad.tests
Class Fetch

Object
  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.

usage:

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

Author:
Marvin Solomon

Field Summary
static int COLLECTOR_COMM_PORT
          Default port for Condor collector.
static String server
          Default host for Condor collector.
 
Constructor Summary
Fetch()
           
 
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

server

public static String server
Default host for Condor collector.


COLLECTOR_COMM_PORT

public static final int COLLECTOR_COMM_PORT
Default port for Condor collector.

See Also:
Constant Field Values
Constructor Detail

Fetch

public Fetch()
Method Detail

main

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

Parameters:
args - command-line arguments.