Java Doc for LinkedRemoteFileInterface.java in  » Net » DrFTPD » org » drftpd » remotefile » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » DrFTPD » org.drftpd.remotefile 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.drftpd.remotefile.LinkedRemoteFileInterface

All known Subclasses:   org.drftpd.remotefile.LinkedRemoteFile,  org.drftpd.remotefile.AbstractLinkedRemoteFile,
LinkedRemoteFileInterface
public interface LinkedRemoteFileInterface extends RemoteFileInterface(Code)

author:
   mog
version:
   $Id: LinkedRemoteFileInterface.java 1513 2006-10-13 22:41:08Z tdsoul $




Method Summary
abstract public  LinkedRemoteFileaddFile(RemoteFileInterface file)
     Updates lastMofidied() on this directory, use putFile() to avoid it.
abstract public  voidaddSlave(RemoteSlave slave)
    
abstract public  intcompareTo(Object o)
    
abstract public  LinkedRemoteFilecreateDirectories(String path)
    
abstract public  LinkedRemoteFilecreateDirectory(String fileName)
    
abstract public  LinkedRemoteFilecreateDirectory(String owner, String group, String fileName)
    
abstract public  voiddelete()
     Deletes a file or directory, if slaves are offline, the file cannot be deleted.
abstract public  voiddeleteFromSlave(RemoteSlave rslave)
    
abstract public  longdirSize()
    
abstract public  List<LinkedRemoteFileInterface>getAllParentFiles()
    
abstract public  Collection<RemoteSlave>getAvailableSlaves()
    
abstract public  longgetCheckSum()
    
abstract public  longgetCheckSumFromSlave()
     Returns 0 if the checksum cannot be read.
abstract public  Collection<LinkedRemoteFileInterface>getDirectories()
    
abstract public  LinkedRemoteFileInterfacegetFile(String fileName)
     Returns fLinkedRemoteFileInterfaced in this directory.
abstract public  Collection<LinkedRemoteFileInterface>getFiles2()
    
abstract public  MapgetMap()
     Returns the underlying Map for this directory.
abstract public  LinkedRemoteFilegetParentFile()
    
abstract public  LinkedRemoteFilegetParentFileNull()
    
abstract public  LinkedRemoteFilegetRoot()
    
abstract public  SFVFilegetSFVFile()
    
abstract public  longgetXferspeed()
    
abstract public  longgetXfertime()
    
abstract public  booleanhasFile(String filename)
     Returns true if this directory contains a file named filename, this is case sensitive.
abstract public  booleanhasOfflineSlaves()
     Returns true if this file or directory uses slaves that are currently offline.
abstract public  booleanhasSlave(RemoteSlave slave)
    
abstract public  inthashCode()
    
abstract public  booleanisAvailable()
    
abstract public  booleanisDeleted()
    
abstract public  booleanisValid()
    
abstract public  LinkedRemoteFilelookupFile(String path)
    
abstract public  LinkedRemoteFilelookupFile(String path, boolean followLinks)
    
abstract public  NonExistingFilelookupNonExistingFile(String path)
    
abstract public  NonExistingFilelookupNonExistingFile(String path, boolean followLinks)
    
abstract public  StringlookupPath(String path)
     Returns path for a non-existing file.
abstract public  SFVFilelookupSFVFile()
    
abstract public  LinkedRemoteFileputFile(RemoteFileInterface file)
     Use addFile() if you want lastModified to be updated.
abstract public  voidremerge(CaseInsensitiveHashtable lightRemoteFiles, RemoteSlave rslave)
     Merges mergedir directory onto this directories.
abstract public  booleanremoveSlave(RemoteSlave slave)
    
abstract public  voidrenameTo(String toDirPath, String toName)
    
abstract public  voidsetCheckSum(long checkSum)
    
abstract public  voidsetGroup(String group)
    
abstract public  voidsetLastModified(long lastModified)
    
abstract public  voidsetLength(long length)
    
abstract public  voidsetOwner(String owner)
    
abstract public  voidsetXfertime(long xfertime)
    
abstract public  StringtoString()
    
abstract public  voidunmergeDir(RemoteSlave rslave)
    
abstract public  voidunmergeFile(RemoteSlave rslave)
    



Method Detail
addFile
abstract public LinkedRemoteFile addFile(RemoteFileInterface file)(Code)
Updates lastMofidied() on this directory, use putFile() to avoid it.



addSlave
abstract public void addSlave(RemoteSlave slave)(Code)



compareTo
abstract public int compareTo(Object o)(Code)

throws:
  ClassCastException - if object is not an instance of RemoteFileInterface.
See Also:   java.lang.Comparable.compareTo(java.lang.Object)



createDirectories
abstract public LinkedRemoteFile createDirectories(String path)(Code)



createDirectory
abstract public LinkedRemoteFile createDirectory(String fileName) throws FileExistsException(Code)



createDirectory
abstract public LinkedRemoteFile createDirectory(String owner, String group, String fileName) throws FileExistsException(Code)



delete
abstract public void delete()(Code)
Deletes a file or directory, if slaves are offline, the file cannot be deleted. To work around this, the file gets a deleted flag set and when the offline slave is remerge()'d, it is deleted from the slave and delete() is called again. Trying to lookupFile() or getFile() a deleted file throws FileNotFoundException.



deleteFromSlave
abstract public void deleteFromSlave(RemoteSlave rslave)(Code)



dirSize
abstract public long dirSize()(Code)



getAllParentFiles
abstract public List<LinkedRemoteFileInterface> getAllParentFiles()(Code)



getAvailableSlaves
abstract public Collection<RemoteSlave> getAvailableSlaves() throws NoAvailableSlaveException(Code)



getCheckSum
abstract public long getCheckSum() throws NoAvailableSlaveException(Code)
Uses cached checksum if the cached checksum is not 0



getCheckSumFromSlave
abstract public long getCheckSumFromSlave() throws NoAvailableSlaveException, IOException(Code)
Returns 0 if the checksum cannot be read.



getDirectories
abstract public Collection<LinkedRemoteFileInterface> getDirectories()(Code)



getFile
abstract public LinkedRemoteFileInterface getFile(String fileName) throws FileNotFoundException(Code)
Returns fLinkedRemoteFileInterfaced in this directory.
Parameters:
  fileName -
throws:
  FileNotFoundException - if fileName doesn't exist in the files Map



getFiles2
abstract public Collection<LinkedRemoteFileInterface> getFiles2()(Code)



getMap
abstract public Map getMap()(Code)
Returns the underlying Map for this directory. It is dangerous to modify without knowing what you're doing. Dirsize needs to be taken into account as well as sending approperiate commands to the slaves. the underlying Map for this directory.



getParentFile
abstract public LinkedRemoteFile getParentFile() throws FileNotFoundException(Code)



getParentFileNull
abstract public LinkedRemoteFile getParentFileNull()(Code)



getRoot
abstract public LinkedRemoteFile getRoot()(Code)



getSFVFile
abstract public SFVFile getSFVFile() throws IOException, FileNotFoundException, NoAvailableSlaveException, FileStillTransferringException(Code)



getXferspeed
abstract public long getXferspeed()(Code)



getXfertime
abstract public long getXfertime()(Code)



hasFile
abstract public boolean hasFile(String filename)(Code)
Returns true if this directory contains a file named filename, this is case sensitive.
Parameters:
  filename - The name of the file true if this directory contains a file named filename, this is case sensitive.



hasOfflineSlaves
abstract public boolean hasOfflineSlaves()(Code)
Returns true if this file or directory uses slaves that are currently offline. true if this file or directory uses slaves that are currently offline.



hasSlave
abstract public boolean hasSlave(RemoteSlave slave)(Code)



hashCode
abstract public int hashCode()(Code)



isAvailable
abstract public boolean isAvailable()(Code)
Does file have online slaves? Always true for directories



isDeleted
abstract public boolean isDeleted()(Code)
Is file removed from all slaves?



isValid
abstract public boolean isValid()(Code)



lookupFile
abstract public LinkedRemoteFile lookupFile(String path) throws FileNotFoundException(Code)



lookupFile
abstract public LinkedRemoteFile lookupFile(String path, boolean followLinks) throws FileNotFoundException(Code)



lookupNonExistingFile
abstract public NonExistingFile lookupNonExistingFile(String path)(Code)



lookupNonExistingFile
abstract public NonExistingFile lookupNonExistingFile(String path, boolean followLinks)(Code)



lookupPath
abstract public String lookupPath(String path)(Code)
Returns path for a non-existing file. Performs path normalization and returns an absolute path



lookupSFVFile
abstract public SFVFile lookupSFVFile() throws IOException, FileNotFoundException, NoAvailableSlaveException, FileStillTransferringException(Code)



putFile
abstract public LinkedRemoteFile putFile(RemoteFileInterface file)(Code)
Use addFile() if you want lastModified to be updated.



remerge
abstract public void remerge(CaseInsensitiveHashtable lightRemoteFiles, RemoteSlave rslave) throws IOException(Code)
Merges mergedir directory onto this directories. If duplicates exist, the slaves are added to this object and the file-attributes of the oldest file (lastModified) are kept.



removeSlave
abstract public boolean removeSlave(RemoteSlave slave)(Code)



renameTo
abstract public void renameTo(String toDirPath, String toName) throws IOException, FileNotFoundException(Code)
Renames this file



setCheckSum
abstract public void setCheckSum(long checkSum)(Code)



setGroup
abstract public void setGroup(String group)(Code)



setLastModified
abstract public void setLastModified(long lastModified)(Code)



setLength
abstract public void setLength(long length)(Code)



setOwner
abstract public void setOwner(String owner)(Code)



setXfertime
abstract public void setXfertime(long xfertime)(Code)



toString
abstract public String toString()(Code)



unmergeDir
abstract public void unmergeDir(RemoteSlave rslave)(Code)



unmergeFile
abstract public void unmergeFile(RemoteSlave rslave)(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.