org.pentaho.di.job.entries.checkfilelocked
Class LockFile

java.lang.Object
  extended by org.pentaho.di.job.entries.checkfilelocked.LockFile

public class LockFile
extends Object


Constructor Summary
LockFile(String filename)
          Checks if a file is locked In order to check is a file is locked we will use a dummy renaming exercise
 
Method Summary
 String getFilename()
          Returns filename
 boolean isLocked()
          Returns lock indicator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockFile

public LockFile(String filename)
         throws KettleException
Checks if a file is locked In order to check is a file is locked we will use a dummy renaming exercise

Parameters:
filename -
Throws:
KettleException
Method Detail

getFilename

public String getFilename()
Returns filename

Returns:
filename

isLocked

public boolean isLocked()
Returns lock indicator

Returns:
TRUE is file is locked