org.das2.util.filesystem.FileSystemSettings
controls for file systems.
PROP_LOCALCACHEDIR
setting for the location of where the local cache is kept.
PROP_PERSISTENCE
setting for how long files should be kept and using in the cache.
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.
PROP_OFFLINE
getConnectTimeoutMs
getConnectTimeoutMs( ) → int
return the connection timeout in milliseconds.
Returns:
int
search for examples
view on GitHub
view source
getLocalCacheDir
getLocalCacheDir( ) → File
setting for the location of where the local cache is kept.
Returns:
File that is the local cache directory.
search for examples
view on GitHub
view source
getPersistence
getPersistence( ) → Persistence
get the setting for how long files should be kept and using in the cache,
e.g. Persistence.SESSION means during the session.
Returns:
the setting
search for examples
view on GitHub
view source
getReadTimeoutMs
getReadTimeoutMs( ) → int
return the read timeout in milliseconds.
Returns:
int
search for examples
view on GitHub
view source
getTemporaryFileTimeoutSeconds
getTemporaryFileTimeoutSeconds( ) → int
return the number of seconds that an unused temporary file will
be left on the system before it may be deleted. This presumes
that the code can determine if a temporary file is in use, which is
not really the case.
Returns:
the number of seconds.
search for examples
view on GitHub
view source
hasAllPermission
hasAllPermission( ) → boolean
check the security manager to see if all permissions are allowed,
True indicates is not an applet running in a sandbox.
copy of DasAppliction.hasAllPermission
Returns:
true if all permissions are allowed
search for examples
view on GitHub
view source
isAllowOffline
isAllowOffline( ) → boolean
Returns:
boolean
search for examples
view on GitHub
view source
isOffline
isOffline( ) → boolean
true indicate file system is offline and cached files should be used.
Returns:
boolean
search for examples
view on GitHub
view source
setAllowOffline
setAllowOffline( boolean allowOffline ) → void
Returns:
void (returns nothing)
search for examples
view on GitHub
view source
setLocalCacheDir
setLocalCacheDir( java.io.File localCacheDir ) → void
Returns:
void (returns nothing)
search for examples
view on GitHub
view source
setOffline
setOffline( boolean offline ) → void
If true, then force the filesystems to be offline. If false, then use each filesystem's status.
FileSystem.reset() should be called after this.
Parameters
offline -
Returns:
void (returns nothing)
search for examples
view on GitHub
view source
setPersistence
setPersistence( org.das2.util.filesystem.FileSystemSettings.Persistence persistence ) → void
Returns:
void (returns nothing)
search for examples
view on GitHub
view source
setRestrictPermission
setRestrictPermission( boolean v ) → void
true means don't attempt to gain access to applet-restricted functions.
Parameters
v - true means don't attempt to gain access to applet-restricted functions.
Returns:
void (returns nothing)
See Also:
org.das2.DasApplication#setRestrictPermission
search for examples
view on GitHub
view source