condor.classad.tests
Class Fetch
Object
condor.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
- Uses ClassAdParser to parse a trivial classad.
- Connects the the Condor collector and sets up Cedar streams to/from
collector.
- 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().
- Creates a ClassAdReader to convert the response (a sequence of ads
in "old" format) to ASCII format.
- 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
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 |
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
Fetch
public Fetch()
main
public static void main(String[] args)
- The main program.
- Parameters:
args
- command-line arguments.