public class FileSystemSettings
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FileSystemSettings.Persistence |
Modifier and Type | Field and Description |
---|---|
protected static long |
allowableExternalIdleMs
the longest amount of time we'll wait for an external process to make progress downloading.
|
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_OFFLINE |
static java.lang.String |
PROP_PERSISTENCE
setting for how long files should be kept and using in the cache.
|
Modifier | Constructor and Description |
---|---|
protected |
FileSystemSettings()
this should only be called by FileSystem.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener) |
int |
getConnectTimeoutMs()
return the connection timeout in milliseconds.
|
java.io.File |
getLocalCacheDir()
setting for the location of where the local cache is kept.
|
FileSystemSettings.Persistence |
getPersistence()
get the setting for how long files should be kept and using in the cache,
e.g.
|
int |
getReadTimeoutMs()
return the read timeout in milliseconds.
|
int |
getTemporaryFileTimeoutSeconds()
return the number of seconds that an unused temporary file will
be left on the system before it may be deleted.
|
static boolean |
hasAllPermission()
check the security manager to see if all permissions are allowed,
True indicates is not an applet running in a sandbox.
|
boolean |
isAllowOffline() |
boolean |
isOffline()
true indicate file system is offline and cached files should be used.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener) |
void |
setAllowOffline(boolean allowOffline) |
void |
setConnectTimeoutMs(int millis)
reset the connect timeout.
|
void |
setLocalCacheDir(java.io.File localCacheDir) |
void |
setOffline(boolean offline)
If true, then force the filesystems to be offline.
|
void |
setPersistence(FileSystemSettings.Persistence persistence) |
void |
setReadTimeoutMs(int millis)
reset the time read timeout.
|
static void |
setRestrictPermission(boolean v)
true means don't attempt to gain access to applet-restricted functions.
|
protected java.io.File localCacheDir
public static final java.lang.String PROP_LOCALCACHEDIR
protected FileSystemSettings.Persistence persistence
public static final java.lang.String PROP_PERSISTENCE
protected boolean allowOffline
public static final java.lang.String PROP_ALLOWOFFLINE
public static final java.lang.String PROP_OFFLINE
protected static final long allowableExternalIdleMs
protected FileSystemSettings()
public static boolean hasAllPermission()
public static void setRestrictPermission(boolean v)
v
- true means don't attempt to gain access to applet-restricted functions.DasApplication.setRestrictPermission(boolean)
public int getConnectTimeoutMs()
public void setConnectTimeoutMs(int millis)
millis
- public int getReadTimeoutMs()
public void setReadTimeoutMs(int millis)
millis
- number of millisecondspublic int getTemporaryFileTimeoutSeconds()
public java.io.File getLocalCacheDir()
public void setLocalCacheDir(java.io.File localCacheDir)
public FileSystemSettings.Persistence getPersistence()
public void setPersistence(FileSystemSettings.Persistence persistence)
public boolean isAllowOffline()
public void setAllowOffline(boolean allowOffline)
public boolean isOffline()
public void setOffline(boolean offline)
offline
- public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)