public class DBDeviceContext extends DiskDeviceContext implements FileStateCacheListener
Constructor and Description |
---|
DBDeviceContext(org.springframework.extensions.config.ConfigElement args)
Class constructor
|
DBDeviceContext(String name,
org.springframework.extensions.config.ConfigElement args)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addOfflineFileDelete(DeleteFileRequest deleteReq)
Add an offline file delete request
|
void |
CloseContext()
Close the device context
|
void |
fileStateClosed(FileState state)
File state cache is closing down, any resources attached to the file state must be released.
|
boolean |
fileStateExpired(FileState state)
File state has expired.
|
DBInterface |
getDBInterface()
Return the database interface class
|
String |
getDBInterfaceClass()
Return the database interface class name
|
org.springframework.extensions.config.ConfigElement |
getDBInterfaceConfiguration()
Return the database interface configuration parameters
|
FileLoader |
getFileLoader()
Return the file data loader class
|
String |
getFileLoaderClass()
Return the file loader class name
|
FileStateLockManager |
getFileStateLockManager()
Return the lock manager
|
org.springframework.extensions.config.ConfigElement |
getLoaderConfiguration()
Return the file loader class arguments list
|
LockManager |
getLockManager()
Return the lock manager, if enabled
|
long |
getMaximumFileSize()
Return the maximum file size allowed on this filesystem
|
FileRequestQueue |
getOfflineFileDeletes(boolean clearList)
Return the offline file delete list
|
long |
getOfflineFileSize()
Return the file size to mark as offline
|
OpLockManager |
getOpLockManager()
Return the oplock manager, if enabled
|
long |
getRetentionPeriod()
Return the retention period, in milliseconds
|
DBFileInfo |
getRootDirectoryInfo()
Return the root directory file information
|
boolean |
hasDebug()
Determine if debug output is enabled
|
boolean |
hasMaximumFileSize()
Check if a mamximum file size has been specified
|
boolean |
hasNTFSStreamsEnabled()
Check if NTFS streams are enabled
|
boolean |
hasOfflineFileDeletes()
Check if there are files to be deleted in the offline delete list
|
boolean |
hasOfflineFiles()
Check if files should be marked as offline
|
boolean |
hasOfflineFileSize()
Check if files are only to be marked offline above a certain size
|
boolean |
hasRetentionPeriod()
Determine if the retention period is enabled
|
protected void |
initialize(org.springframework.extensions.config.ConfigElement args)
Initialize the database device context
|
boolean |
isOpLocksEnabled()
Check if oplocks should be enabled
|
boolean |
isTrashCanEnabled()
Determine if the trashcan feature is enabled
|
protected void |
setFileStateLockManager(FileStateLockManager lockManager)
Set the lock/oplock manager
|
void |
startFilesystem(DiskSharedDevice disk)
Start the shared filesystem, perform startup processing here.
|
void |
stateCacheInitializing()
Cache initializing
|
void |
stateCacheRunning()
Cache running
|
void |
stateCacheShuttingDown()
Cache shutting down
|
String |
toString()
Return the JDBC context as a string
|
addNotifyRequest, enableChangeHandler, getChangeHandler, getDeviceAttributes, getDiskInformation, getFilesystemAttributes, getFilesystemType, getQuotaManager, getStateCache, getVolumeInformation, hasChangeHandler, hasDiskInformation, hasFileServerNotifications, hasQuotaManager, hasStateCache, hasVolumeInformation, isCaseless, removeNotifyRequest, requiresStateCache, setDeviceAttributes, setDiskInformation, setFileServerNotifications, setFilesystemAttributes, setQuotaManager, setRequiresStateCache, setStateCache, setVolumeInformation
getConfigurationParameters, getDeviceName, getShareName, hasConfigurationParameters, isAvailable, setAvailable, setConfigurationParameters, setDeviceName, setShareName
public DBDeviceContext(org.springframework.extensions.config.ConfigElement args) throws DeviceContextException
args
- ConfigElementDeviceContextException
public DBDeviceContext(String name, org.springframework.extensions.config.ConfigElement args) throws DeviceContextException
name
- Stringargs
- ConfigElementDeviceContextException
protected final void initialize(org.springframework.extensions.config.ConfigElement args) throws DeviceContextException
args
- ConfigElementDeviceContextException
public final String getDBInterfaceClass()
public final DBInterface getDBInterface()
public final org.springframework.extensions.config.ConfigElement getDBInterfaceConfiguration()
public final String getFileLoaderClass()
public final FileLoader getFileLoader()
public final org.springframework.extensions.config.ConfigElement getLoaderConfiguration()
public final boolean hasDebug()
public final boolean hasOfflineFiles()
public final boolean hasOfflineFileSize()
public final long getOfflineFileSize()
public FileStateLockManager getFileStateLockManager()
public LockManager getLockManager()
getLockManager
in class DiskDeviceContext
public OpLockManager getOpLockManager()
getOpLockManager
in class DiskDeviceContext
public final boolean isOpLocksEnabled()
public final boolean hasRetentionPeriod()
public final long getRetentionPeriod()
public final DBFileInfo getRootDirectoryInfo()
public final boolean hasNTFSStreamsEnabled()
public final boolean isTrashCanEnabled()
public final boolean hasMaximumFileSize()
public final long getMaximumFileSize()
public final boolean hasOfflineFileDeletes()
public final FileRequestQueue getOfflineFileDeletes(boolean clearList)
clearList
- booleanpublic final void addOfflineFileDelete(DeleteFileRequest deleteReq)
deleteReq
- DeleteFileRequestprotected final void setFileStateLockManager(FileStateLockManager lockManager)
lockManager
- FileStateLockManagerpublic boolean fileStateExpired(FileState state)
state
- FileStatepublic void fileStateClosed(FileState state)
state
- FileStatepublic String toString()
toString
in class DeviceContext
public void CloseContext()
CloseContext
in class DiskDeviceContext
public void startFilesystem(DiskSharedDevice disk) throws DeviceContextException
startFilesystem
in class DiskDeviceContext
disk
- DiskSharedDeviceDeviceContextException
public void stateCacheInitializing()
stateCacheInitializing
in interface FileStateCacheListener
public void stateCacheRunning()
stateCacheRunning
in interface FileStateCacheListener
public void stateCacheShuttingDown()
stateCacheShuttingDown
in interface FileStateCacheListener
Copyright © 2005–2017 Alfresco Software. All rights reserved.