org.das2.util.filesystem
Class FileSystemSettings

java.lang.Object
  extended by org.das2.util.filesystem.FileSystemSettings

public class FileSystemSettings
extends java.lang.Object

controls for file systems.


Nested Class Summary
static class FileSystemSettings.Persistence
           
 
Field Summary
protected  boolean allowOffline
           
protected  java.io.File localCacheDir
           
protected  FileSystemSettings.Persistence persistence
           
static java.lang.String PROP_ALLOWOFFLINE
          allow use of persistent, cached files when the file system is not accessible.
static java.lang.String PROP_LOCALCACHEDIR
          setting for the location of where the local cache is kept.
static java.lang.String PROP_PERSISTENCE
          setting for how long files should be kept and using in the cache.
 
Constructor Summary
protected FileSystemSettings()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 java.io.File getLocalCacheDir()
           
 FileSystemSettings.Persistence getPersistence()
           
 boolean isAllowOffline()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void setAllowOffline(boolean allowOffline)
           
 void setLocalCacheDir(java.io.File localCacheDir)
           
 void setPersistence(FileSystemSettings.Persistence persistence)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localCacheDir

protected java.io.File localCacheDir

PROP_LOCALCACHEDIR

public static final java.lang.String PROP_LOCALCACHEDIR
setting for the location of where the local cache is kept.

See Also:
Constant Field Values

persistence

protected FileSystemSettings.Persistence persistence

PROP_PERSISTENCE

public static final java.lang.String PROP_PERSISTENCE
setting for how long files should be kept and using in the cache.

See Also:
Constant Field Values

allowOffline

protected boolean allowOffline

PROP_ALLOWOFFLINE

public static final java.lang.String PROP_ALLOWOFFLINE
allow use of persistent, cached files when the file system is not accessible. FileSystem implementations will throw FileNotFound exception when remote resources are not available, and FileSystemOfflineExceptions are not thrown.

See Also:
Constant Field Values
Constructor Detail

FileSystemSettings

protected FileSystemSettings()
Method Detail

getLocalCacheDir

public java.io.File getLocalCacheDir()

setLocalCacheDir

public void setLocalCacheDir(java.io.File localCacheDir)

getPersistence

public FileSystemSettings.Persistence getPersistence()

setPersistence

public void setPersistence(FileSystemSettings.Persistence persistence)

isAllowOffline

public boolean isAllowOffline()

setAllowOffline

public void setAllowOffline(boolean allowOffline)

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)