hudson.plugins.lockedfilesreport
Class FindFilesInUseWithLsof

java.lang.Object
  extended by hudson.plugins.lockedfilesreport.FindFilesInUseCommand
      extended by hudson.plugins.lockedfilesreport.FindFilesInUseWithLsof
All Implemented Interfaces:
java.io.Serializable

public class FindFilesInUseWithLsof
extends FindFilesInUseCommand
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
FindFilesInUseWithLsof()
           
 
Method Summary
 hudson.util.ArgumentListBuilder getArguments(java.lang.String workspacePath)
          Return an argument builder containing the necessaary arguments for the command
 java.util.List<FileUsageDetails> parseOutput(int result, java.io.BufferedReader reader, 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

FindFilesInUseWithLsof

public FindFilesInUseWithLsof()
Method Detail

getArguments

public hudson.util.ArgumentListBuilder getArguments(java.lang.String workspacePath)
Description copied from class: FindFilesInUseCommand
Return an argument builder containing the necessaary arguments for the command

Specified by:
getArguments in class FindFilesInUseCommand
Parameters:
workspacePath - path to workspace with OS dependent file chars
Returns:
an argument builder

parseOutput

public java.util.List<FileUsageDetails> parseOutput(int result,
                                                    java.io.BufferedReader reader,
                                                    java.lang.String workspacePath)
                                             throws java.io.IOException
Description copied from class: FindFilesInUseCommand
Parses the output from the command.

Specified by:
parseOutput in class FindFilesInUseCommand
Parameters:
result - result code from command
reader - 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 © 2009. All Rights Reserved.