edu.isi.pegasus.common.util
Class CondorVersion.CondorVersionCallback

java.lang.Object
  extended by edu.isi.pegasus.common.util.CondorVersion.CondorVersionCallback
All Implemented Interfaces:
StreamGobblerCallback
Enclosing class:
CondorVersion

private class CondorVersion.CondorVersionCallback
extends Object
implements StreamGobblerCallback

An inner class, that implements the StreamGobblerCallback to determine the version of Condor being used.


Field Summary
private  String mVersion
          The version detected.
 
Constructor Summary
CondorVersion.CondorVersionCallback()
          The Default Constructor
 
Method Summary
 String getVersion()
          Returns the condor version detected.
 void work(String line)
          Callback whenever a line is read from the stream by the StreamGobbler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mVersion

private String mVersion
The version detected.

Constructor Detail

CondorVersion.CondorVersionCallback

public CondorVersion.CondorVersionCallback()
The Default Constructor

Method Detail

work

public void work(String line)
Callback whenever a line is read from the stream by the StreamGobbler. Counts the occurences of the word that are in the line, and increments to the global counter.

Specified by:
work in interface StreamGobblerCallback
Parameters:
line - the line that is read.

getVersion

public String getVersion()
Returns the condor version detected.

Returns:
the condor version else null


Copyright © 2011 The University of Southern California. All Rights Reserved.