Package org.alfresco.filesys.alfresco
Class AlfrescoDiskDriver
- java.lang.Object
-
- org.alfresco.filesys.alfresco.AlfrescoDiskDriver
-
- All Implemented Interfaces:
ExtendedDiskInterface,org.alfresco.jlan.server.core.DeviceInterface,org.alfresco.jlan.server.filesys.DiskInterface,org.alfresco.jlan.server.filesys.IOCtlInterface
- Direct Known Subclasses:
AlfrescoTxDiskDriver,ContentDiskDriver2
public abstract class AlfrescoDiskDriver extends Object implements org.alfresco.jlan.server.filesys.IOCtlInterface, ExtendedDiskInterface
Alfresco Disk Driver Base ClassProvides common code to the Alfresco filesystem implementations.
- Author:
- gkspencer
-
-
Field Summary
Fields Modifier and Type Field Description protected IOControlHandlerioControlHandlerprotected TransactionServicem_transactionService
-
Constructor Summary
Constructors Constructor Description AlfrescoDiskDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IOControlHandlergetIoControlHandler()ServiceRegistrygetServiceRegistry()Return the service registryTransactionServicegetTransactionService()Return the transaction serviceorg.alfresco.jlan.util.DataBufferprocessIOControl(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, int ctrlCode, int fid, org.alfresco.jlan.util.DataBuffer dataBuf, boolean isFSCtrl, int filter)Process a filesystem I/O control requestvoidregisterContext(org.alfresco.jlan.server.core.DeviceContext ctx)Registers a device context object for this instance of the shared device.voidsetIoControlHandler(IOControlHandler ioControlHandler)voidsetServiceRegistry(ServiceRegistry serviceRegistry)Set the service registryvoidsetTransactionService(TransactionService transactionService)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.jlan.server.core.DeviceInterface
createContext, treeClosed, treeOpened
-
Methods inherited from interface org.alfresco.jlan.server.filesys.DiskInterface
closeFile, createDirectory, createFile, deleteDirectory, deleteFile, fileExists, flushFile, getFileInformation, isReadOnly, openFile, readFile, renameFile, seekFile, setFileInformation, startSearch, truncateFile, writeFile
-
-
-
-
Field Detail
-
m_transactionService
protected TransactionService m_transactionService
-
ioControlHandler
protected IOControlHandler ioControlHandler
-
-
Method Detail
-
setIoControlHandler
public void setIoControlHandler(IOControlHandler ioControlHandler)
-
getIoControlHandler
public IOControlHandler getIoControlHandler()
-
getServiceRegistry
public final ServiceRegistry getServiceRegistry()
Return the service registry- Returns:
- ServiceRegistry
-
getTransactionService
public final TransactionService getTransactionService()
Return the transaction service- Returns:
- TransactionService
-
setServiceRegistry
public void setServiceRegistry(ServiceRegistry serviceRegistry)
Set the service registry- Parameters:
serviceRegistry- ServiceRegistry
-
setTransactionService
public void setTransactionService(TransactionService transactionService)
- Parameters:
transactionService- the transaction service
-
processIOControl
public org.alfresco.jlan.util.DataBuffer processIOControl(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, int ctrlCode, int fid, org.alfresco.jlan.util.DataBuffer dataBuf, boolean isFSCtrl, int filter) throws org.alfresco.jlan.server.filesys.IOControlNotImplementedException, org.alfresco.jlan.smb.SMBExceptionProcess a filesystem I/O control request- Specified by:
processIOControlin interfaceorg.alfresco.jlan.server.filesys.IOCtlInterface- Parameters:
sess- Server sessiontree- Tree connection.ctrlCode- I/O control codefid- File iddataBuf- I/O control specific input dataisFSCtrl- true if this is a filesystem control, or false for a device controlfilter- if bit0 is set indicates that the control applies to the share root handle- Returns:
- DataBuffer
- Throws:
org.alfresco.jlan.server.filesys.IOControlNotImplementedExceptionorg.alfresco.jlan.smb.SMBException
-
registerContext
public void registerContext(org.alfresco.jlan.server.core.DeviceContext ctx) throws org.alfresco.jlan.server.core.DeviceContextExceptionRegisters a device context object for this instance of the shared device. The same DeviceInterface implementation may be used for multiple shares. In this base class, we initialize all desktop actions.- Specified by:
registerContextin interfaceExtendedDiskInterface- Parameters:
ctx- the context- Throws:
org.alfresco.jlan.server.core.DeviceContextException
-
-