com.metamatrix.core.util
Class TempDirectory

java.lang.Object
  extended by com.metamatrix.core.util.TempDirectory

public class TempDirectory
extends java.lang.Object

Creates and deletes temporary directories.


Constructor Summary
TempDirectory(long time, long randomNumber)
           
TempDirectory(java.lang.String tempDirPath, long time, long randomNumber)
           
 
Method Summary
 void create()
           
 void finalize()
          Clean up the temp directory if for some reason remove() has not been called explicitly.
 java.lang.String getPath()
           
static TempDirectory getTempDirectory(java.lang.String parentDirectoryPath)
          Create a temporary directory under a given paret directory.
 void remove()
           
static void setMonitor(TempDirectoryMonitor tempDirectoryMonitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TempDirectory

public TempDirectory(java.lang.String tempDirPath,
                     long time,
                     long randomNumber)

TempDirectory

public TempDirectory(long time,
                     long randomNumber)
Method Detail

setMonitor

public static void setMonitor(TempDirectoryMonitor tempDirectoryMonitor)

getPath

public java.lang.String getPath()

create

public void create()

remove

public void remove()

finalize

public void finalize()
Clean up the temp directory if for some reason remove() has not been called explicitly.

Overrides:
finalize in class java.lang.Object
Since:
4.2
See Also:
Object.finalize()

getTempDirectory

public static TempDirectory getTempDirectory(java.lang.String parentDirectoryPath)
Create a temporary directory under a given paret directory.

Parameters:
parentDirectory - The paretDirectory under which the temporary directory needs to be created.
Returns:
The parentDirectory under which the temporary directory needs to be created.
Since:
4.3


Copyright © 2009. All Rights Reserved.