public class NonTransactionalRuleContentDiskDriver extends Object implements ExtendedDiskInterface
Provides a DiskInterface that deals with "shuffles". Shuffles are implemented by the Rules Engine.
Sits on top of the repository and is non-retryable and non-transactional. It is, however thread safe and multiple callers may call in parallel.
| Constructor and Description |
|---|
NonTransactionalRuleContentDiskDriver() |
public NonTransactionalRuleContentDiskDriver()
public void init()
public FileInfo getFileInformation(SrvSession sess, TreeConnection tree, String path) throws IOException
getFileInformation in interface DiskInterfaceIOExceptionpublic int fileExists(SrvSession sess, TreeConnection tree, String path)
fileExists in interface DiskInterfacepublic DeviceContext createContext(String shareName, org.springframework.extensions.config.ConfigElement args) throws DeviceContextException
createContext in interface DeviceInterfaceDeviceContextExceptionpublic void treeOpened(SrvSession sess, TreeConnection tree)
treeOpened in interface DeviceInterfacepublic void treeClosed(SrvSession sess, TreeConnection tree)
treeClosed in interface DeviceInterfacepublic void closeFile(SrvSession sess, TreeConnection tree, NetworkFile param) throws IOException
closeFile in interface DiskInterfaceIOExceptionpublic void createDirectory(SrvSession sess, TreeConnection tree, FileOpenParams params) throws IOException
createDirectory in interface DiskInterfaceIOExceptionpublic NetworkFile createFile(SrvSession sess, TreeConnection tree, FileOpenParams params) throws IOException
createFile in interface DiskInterfaceIOExceptionpublic void deleteDirectory(SrvSession sess, TreeConnection tree, String dir) throws IOException
deleteDirectory in interface DiskInterfaceIOExceptionpublic void deleteFile(SrvSession sess, TreeConnection tree, String name) throws IOException
deleteFile in interface DiskInterfaceIOExceptionpublic void flushFile(SrvSession sess, TreeConnection tree, NetworkFile file) throws IOException
flushFile in interface DiskInterfaceIOExceptionpublic boolean isReadOnly(SrvSession sess, DeviceContext ctx) throws IOException
isReadOnly in interface DiskInterfaceIOExceptionpublic NetworkFile openFile(SrvSession sess, TreeConnection tree, FileOpenParams param) throws IOException
openFile in interface DiskInterfaceIOExceptionpublic int readFile(SrvSession sess, TreeConnection tree, NetworkFile file, byte[] buf, int bufPos, int siz, long filePos) throws IOException
readFile in interface DiskInterfaceIOExceptionpublic void renameFile(SrvSession sess, TreeConnection tree, String oldPath, String newPath) throws IOException
renameFile in interface DiskInterfaceIOExceptionpublic long seekFile(SrvSession sess, TreeConnection tree, NetworkFile file, long pos, int typ) throws IOException
seekFile in interface DiskInterfaceIOExceptionpublic void setFileInformation(SrvSession sess, TreeConnection tree, String name, FileInfo info) throws IOException
setFileInformation in interface DiskInterfaceIOExceptionpublic SearchContext startSearch(SrvSession sess, TreeConnection tree, String searchPath, int attrib) throws FileNotFoundException
startSearch in interface DiskInterfaceFileNotFoundExceptionpublic void truncateFile(SrvSession sess, TreeConnection tree, NetworkFile file, long siz) throws IOException
truncateFile in interface DiskInterfaceIOExceptionpublic int writeFile(SrvSession sess, TreeConnection tree, NetworkFile file, byte[] buf, int bufoff, int siz, long fileoff) throws IOException
writeFile in interface DiskInterfaceIOExceptionpublic void setDiskInterface(ExtendedDiskInterface diskInterface)
public ExtendedDiskInterface getDiskInterface()
public void setRuleEvaluator(RuleEvaluator ruleEvaluator)
public RuleEvaluator getRuleEvaluator()
public void registerContext(DeviceContext ctx) throws DeviceContextException
ExtendedDiskInterfaceregisterContext in interface ExtendedDiskInterfaceDeviceContextExceptionpublic void setRepositoryDiskInterface(RepositoryDiskInterface repositoryDiskInterface)
public RepositoryDiskInterface getRepositoryDiskInterface()
public void setCommandExecutor(CommandExecutor commandExecutor)
public CommandExecutor getCommandExecutor()
Copyright © 2005–2014 Alfresco Software. All rights reserved.