JSampler
v0.8a

org.jsampler.task
Class InstrumentsDb.GetDirectoryCount

java.lang.Object
  extended by 
      extended by org.jsampler.task.EnhancedTask<java.lang.Integer>
          extended by org.jsampler.task.InstrumentsDb.GetDirectoryCount
Enclosing class:
InstrumentsDb

public static class InstrumentsDb.GetDirectoryCount
extends EnhancedTask<java.lang.Integer>

This task retrieves the number of directories in the specified directory.


Constructor Summary
InstrumentsDb.GetDirectoryCount(java.lang.String dir, boolean recursive)
          Creates a new instance of GetDirectoryCount.
 
Method Summary
 void run()
          The entry point of the task.
 
Methods inherited from class org.jsampler.task.EnhancedTask
isStopped, setErrorDetails, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstrumentsDb.GetDirectoryCount

public InstrumentsDb.GetDirectoryCount(java.lang.String dir,
                                       boolean recursive)
Creates a new instance of GetDirectoryCount.

Parameters:
dir - The absolute path name of the directory.
recursive - If true, the number of all directories in the specified subtree will be returned.
Method Detail

run

public void run()
The entry point of the task.


JSampler
v0.8a

Copyright © 2007 Grigor Iliev. All rights reserved.