Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


oracle.stellent.wcm.server.content.fs
Class FSStagingRoot

java.lang.Object
  extended by oracle.stellent.wcm.server.content.fs.FSStagingRoot


public class FSStagingRoot
extends java.lang.Object

Manages the staging root on the filesystem, allows for creating unique directories


Field Summary
static java.lang.String CURRENT_DIR_FILENAME
           
static java.lang.String DIR_NAME_POSTFIX
           
static int DIR_NAME_POSTFIX_COUNTER
           

 

Constructor Summary
FSStagingRoot(java.io.File root, java.lang.String... files)
           

 

Method Summary
protected  java.lang.String getCacheDirName()
          Read the cache directory name from the CURRENT_DIR_FILENAME file
protected  java.lang.String getNewCacheDirName()
          Get the name of the new cache directory.
 java.io.File getStagingDirectory()
          The currently active staging directory
protected  void initialize()
          Initialize the system
 java.io.File switchStagingDirectory()
          Switch the staging directory to a new unique root
protected  void writeDirectoryName(java.lang.String name)
          Write the directory name to the CURRENT_DIR_FILENAME file in the root directory

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

CURRENT_DIR_FILENAME

public static final java.lang.String CURRENT_DIR_FILENAME
See Also:
Constant Field Values

DIR_NAME_POSTFIX

public static final java.lang.String DIR_NAME_POSTFIX
See Also:
Constant Field Values

DIR_NAME_POSTFIX_COUNTER

public static final int DIR_NAME_POSTFIX_COUNTER
See Also:
Constant Field Values

Constructor Detail

FSStagingRoot

public FSStagingRoot(java.io.File root,
                     java.lang.String... files)
              throws java.io.IOException
Throws:
java.io.IOException

Method Detail

getStagingDirectory

public java.io.File getStagingDirectory()
The currently active staging directory
Returns:
the staging directory as a child underneath root

switchStagingDirectory

public java.io.File switchStagingDirectory()
                                    throws java.io.IOException
Switch the staging directory to a new unique root
Returns:
the new staging directory
Throws:
java.io.IOException

initialize

protected void initialize()
                   throws java.io.IOException
Initialize the system
Throws:
java.io.IOException

writeDirectoryName

protected void writeDirectoryName(java.lang.String name)
                           throws java.io.IOException
Write the directory name to the CURRENT_DIR_FILENAME file in the root directory
Parameters:
name - the directory name
Throws:
java.io.IOException

getNewCacheDirName

protected java.lang.String getNewCacheDirName()
Get the name of the new cache directory.
Returns:
new cache directory name.

getCacheDirName

protected java.lang.String getCacheDirName()
                                    throws java.io.IOException
Read the cache directory name from the CURRENT_DIR_FILENAME file
Returns:
the cache directory name
Throws:
java.io.IOException

Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.