![]() ![]() | The location of our temp directory. The current setting is a bogus default value. This should be reset from x_config.xml in StaticInit (which should be called in the warmup servlet). |
![]() ![]() | The maximum number of temp files before we think that there's an error. This is a safegaurd value and should be set pretty high, but lower than the expected number of available handles on the system. |
![]() ![]() | This is how we create a temp file. Step #1: Use the sub-directory name supplied to find or create a subdirectory of the BASE_TEMP_DIR. Step #2: Using the file prefix and extension, we attempt to create a new file. If there is an existing file with the same name, we will append a number after the file prefix in order to make it unique. Step #3: We walk through all of the files in the supplied subdirectory and delete any whose last modified date is older than the expiration time. NOTE*: The expiration time is a minimum only and does not "stick" with the file created. It is used against all files in the sub-directory to determine when they should be deleted. The file created by this function will be deleted based on the expiration time passed into subsequent calls to this function - not based on this expiration time. NOTE**: The expiration time is measured from the last modified time of the created temp file - not the create time. Returns the full path of the created temp file. The created temp file may have some data in it. It is expected that the caller overwrite the created tempfile with their own data. |
![]() ![]() | This function expires (read deletes) files that were last modified more than nExpireFilesOlderThanMinutes ago from the strSubDirectory of the base temp directory. |
![]() ![]() | Initializes our static variables for future use. |
![]() |
Initializes a new instance of the TempFile class. |
![]() | Determines whether the specified Object is equal to the current Object. |
![]() | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. |
![]() | Gets the Type of the current instance. |
![]() | Returns a String that represents the current Object. |
![]() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. |
![]() | Creates a shallow copy of the current Object. |
TempFile Class | com.plumtree.uiinfrastructure.tempfile Namespace