hudson.plugins.lockedfilesreport
Class FindFilesInUseCommand

java.lang.Object
  extended by hudson.plugins.lockedfilesreport.FindFilesInUseCommand
Direct Known Subclasses:
FindFilesInUseWithHandle, FindFilesInUseWithLsof

public abstract class FindFilesInUseCommand
extends java.lang.Object


Constructor Summary
FindFilesInUseCommand()
           
 
Method Summary
abstract  hudson.util.ArgumentListBuilder getArguments(java.lang.String workspacePath)
          Return an argument builder containing the necessaary arguments for the command
abstract  java.util.List<FileUsageDetails> parseOutput(int result, java.io.BufferedReader commandOutput, java.lang.String workspacePath)
          Parses the output from the command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindFilesInUseCommand

public FindFilesInUseCommand()
Method Detail

getArguments

public abstract hudson.util.ArgumentListBuilder getArguments(java.lang.String workspacePath)
Return an argument builder containing the necessaary arguments for the command

Parameters:
workspacePath - path to workspace with OS dependent file chars
Returns:
an argument builder

parseOutput

public abstract java.util.List<FileUsageDetails> parseOutput(int result,
                                                             java.io.BufferedReader commandOutput,
                                                             java.lang.String workspacePath)
                                                      throws java.io.IOException
Parses the output from the command.

Parameters:
result - result code from command
commandOutput - stream containing the command output
workspacePath - path to workspace with OS dependent file chars
Returns:
list of locked files; empty if none found.
Throws:
java.io.IOException - thrown if there was any problems with the stream


Copyright © 2011. All Rights Reserved.