public class DiskDeviceContext extends DeviceContext
Constructor and Description |
---|
DiskDeviceContext()
Class constructor
|
DiskDeviceContext(String devName)
Class constructor
|
DiskDeviceContext(String devName,
String shareName)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addNotifyRequest(NotifyRequest req)
Add a request to the change notification list
|
void |
CloseContext()
Close the disk device context.
|
void |
enableChangeHandler(boolean ena)
Enable/disable the change notification handler for this device
|
NotifyChangeHandler |
getChangeHandler()
Return the change notification handler
|
int |
getDeviceAttributes()
Return the device attributes
|
SrvDiskInfo |
getDiskInformation()
Return the disk sizing information
|
int |
getFilesystemAttributes()
Return the filesystem attributes
|
String |
getFilesystemType()
Return the filesystem type, either FileSystem.TypeFAT or FileSystem.TypeNTFS.
|
LockManager |
getLockManager()
Return the lock manager, if enabled
|
OpLockManager |
getOpLockManager()
Return the oplock manager, if enabled
|
QuotaManager |
getQuotaManager()
Return the quota manager for the filesystem
|
FileStateCache |
getStateCache()
Return the file state cache
|
VolumeInfo |
getVolumeInformation()
Return the volume information
|
boolean |
hasChangeHandler()
Determine if the disk context has a change notification handler
|
boolean |
hasDiskInformation()
Determine if the disk sizing information is valid
|
boolean |
hasFileServerNotifications()
Determine if file server change notifications are enabled
|
boolean |
hasQuotaManager()
Check if there is a quota manager configured for this filesystem.
|
boolean |
hasStateCache()
Determine if the connection has a file state cache
|
boolean |
hasVolumeInformation()
Determine if the volume information is valid
|
boolean |
isCaseless()
Determine if the filesystem is case sensitive or not
|
void |
removeNotifyRequest(NotifyRequest req)
Remove a request from the notify change request list
|
boolean |
requiresStateCache()
Check if the filesystem requires a file state cache
|
void |
setDeviceAttributes(int attrib)
Set the device attributes
|
void |
setDiskInformation(SrvDiskInfo disk)
Set the disk information
|
void |
setFileServerNotifications(boolean ena)
Enable/disable file server change notifications
|
void |
setFilesystemAttributes(int attrib)
Set the filesystem attributes
|
void |
setQuotaManager(QuotaManager quotaMgr)
Set the quota manager for this filesystem
|
void |
setRequiresStateCache(boolean reqStateCache)
Set/clear the requires file state cache flag
|
void |
setStateCache(FileStateCache stateCache)
Set the file state cache
|
void |
setVolumeInformation(VolumeInfo vol)
Set the volume information
|
void |
startFilesystem(DiskSharedDevice share)
Context has been initialized and attached to a shared device, do any startup processing in
this method.
|
getConfigurationParameters, getDeviceName, getShareName, hasConfigurationParameters, isAvailable, setAvailable, setConfigurationParameters, setDeviceName, setShareName, toString
public DiskDeviceContext()
public DiskDeviceContext(String devName)
devName
- Stringpublic final boolean hasVolumeInformation()
public final VolumeInfo getVolumeInformation()
public final boolean hasDiskInformation()
public final SrvDiskInfo getDiskInformation()
public final int getFilesystemAttributes()
public final int getDeviceAttributes()
public String getFilesystemType()
public final boolean isCaseless()
public final boolean requiresStateCache()
public final void enableChangeHandler(boolean ena)
ena
- booleanpublic void CloseContext()
CloseContext
in class DeviceContext
public final boolean hasChangeHandler()
public final NotifyChangeHandler getChangeHandler()
public final boolean hasFileServerNotifications()
public final void addNotifyRequest(NotifyRequest req)
req
- NotifyRequestpublic final void removeNotifyRequest(NotifyRequest req)
req
- NotifyRequestpublic final void setVolumeInformation(VolumeInfo vol)
vol
- VolumeInfopublic final void setDiskInformation(SrvDiskInfo disk)
disk
- SMBSrvDiskInfopublic final boolean hasQuotaManager()
public final QuotaManager getQuotaManager()
public final void setQuotaManager(QuotaManager quotaMgr)
quotaMgr
- QuotaManagerpublic final void setFilesystemAttributes(int attrib)
attrib
- intpublic final void setDeviceAttributes(int attrib)
attrib
- intpublic final void setFileServerNotifications(boolean ena)
ena
- booleanpublic void startFilesystem(DiskSharedDevice share) throws DeviceContextException
share
- DiskSharedDeviceDeviceContextException
public final boolean hasStateCache()
public final FileStateCache getStateCache()
public final void setStateCache(FileStateCache stateCache)
stateCache
- FileStateCachepublic final void setRequiresStateCache(boolean reqStateCache)
reqStateCache
- booleanpublic LockManager getLockManager()
public OpLockManager getOpLockManager()
Copyright © 2005–2018 Alfresco Software. All rights reserved.