Java Doc for FileTransfer.java in  » Workflow-Engines » pegasus-2.1.0 » org » griphyn » cPlanner » classes » 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 » Workflow Engines » pegasus 2.1.0 » org.griphyn.cPlanner.classes 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.griphyn.cPlanner.classes.Data
      org.griphyn.cPlanner.classes.PegasusFile
         org.griphyn.cPlanner.classes.FileTransfer

FileTransfer
public class FileTransfer extends PegasusFile (Code)
This is a container for the storing the transfers that are required in between sites. It refers to one lfn, but can contains more than one source and destination urls. All the source url's are presumed to be identical. The destination urls, can in effect be used to refer to TFN's for a lfn on different pools.
author:
   Karan Vahi
author:
   Gaurang Mehta
version:
   $Revision: 372 $



Constructor Summary
public  FileTransfer()
     Default constructor.
public  FileTransfer(PegasusFile pf)
     The overloaded constructor.
public  FileTransfer(String lfn, String job)
     The overloaded constructor.
public  FileTransfer(String lfn, String job, BitSet flags)
     The overloaded constructor.

Method Summary
public  voidaddDestination(NameValue nv)
     Adds a destination URL for the transfer.
public  voidaddDestination(String pool, String url)
     Adds a destination URL for the transfer.
public  voidaddSource(NameValue nv)
     Adds a source URL for the transfer.
public  voidaddSource(String pool, String url)
     Adds a source URL for the transfer.
public  Objectclone()
     Returns a clone of the object.
public  NameValuegetDestURL()
     Returns a single destination url associated with the transfer.
public  NameValuegetDestURL(boolean random)
     Returns a single destination url associated with the transfer. If random is set to false, then dest url returned is first entry from the key set of the underlying map.
Parameters:
  random - boolean indicating if a random entry needs to be picked.
public  StringgetJobName()
     It returns the name of the main/compute job making up the VDS supernode with which this transfer is related.
public  NameValuegetSourceURL()
     Returns a single source url associated with the transfer.
public  NameValuegetSourceURL(boolean random)
     Returns a single source url associated with the transfer. If random is set to false, thensource url returned is first entry from the key set of the underlying map.
Parameters:
  random - boolean indicating if a random entry needs to be picked.
public  booleanisTransferringExecutableFile()
     Returns a boolean indicating if a file that is being staged is an executable or not (i.e is a data file).
public  booleanisValid()
     Determines whether the transfer contained in this container is valid or not.
public  NameValueremoveDestURL()
     Removes a single destination url associated with the transfer.
public  NameValueremoveSourceURL()
     Removes a single source url associated with the transfer.
public  StringtoString()
     Returns a textual interpretation of the object.


Constructor Detail
FileTransfer
public FileTransfer()(Code)
Default constructor.



FileTransfer
public FileTransfer(PegasusFile pf)(Code)
The overloaded constructor.
Parameters:
  pf - PegasusFile object containing the transiencyattributes, and the logical name of the file.



FileTransfer
public FileTransfer(String lfn, String job)(Code)
The overloaded constructor.
Parameters:
  lfn - The logical name of the file that has to be transferred.
Parameters:
  job - The name of the job with which the transfer isassociated with.



FileTransfer
public FileTransfer(String lfn, String job, BitSet flags)(Code)
The overloaded constructor.
Parameters:
  lfn - The logical name of the file that has to be transferred.
Parameters:
  job - The name of the job with which the transfer isassociated with.
Parameters:
  flags - the BitSet flags.




Method Detail
addDestination
public void addDestination(NameValue nv)(Code)
Adds a destination URL for the transfer.
Parameters:
  nv - the NameValue object containing the name of the site as the keyand URL as the value.



addDestination
public void addDestination(String pool, String url)(Code)
Adds a destination URL for the transfer.
Parameters:
  pool - the pool to which the destination file is being transferred.
Parameters:
  url - the destination url.



addSource
public void addSource(NameValue nv)(Code)
Adds a source URL for the transfer.
Parameters:
  nv - the NameValue object containing the name of the site as the keyand URL as the value.



addSource
public void addSource(String pool, String url)(Code)
Adds a source URL for the transfer.
Parameters:
  pool - the pool from which the source file is being transferred.
Parameters:
  url - the source url.



clone
public Object clone()(Code)
Returns a clone of the object. clone of the object.



getDestURL
public NameValue getDestURL()(Code)
Returns a single destination url associated with the transfer. The destination url returned is first entry from the key set of the underlying map. NameValue where the name would be the pool on which the URL isand value the URL.null if no urls are assoiciated with the object.



getDestURL
public NameValue getDestURL(boolean random)(Code)
Returns a single destination url associated with the transfer. If random is set to false, then dest url returned is first entry from the key set of the underlying map.
Parameters:
  random - boolean indicating if a random entry needs to be picked. NameValue where the name would be the pool on which the URL isand value the URL.null if no urls are assoiciated with the object.



getJobName
public String getJobName()(Code)
It returns the name of the main/compute job making up the VDS supernode with which this transfer is related. the name of associated job



getSourceURL
public NameValue getSourceURL()(Code)
Returns a single source url associated with the transfer. The source url returned is first entry from the key set of the underlying map. NameValue where the name would be the pool on which the URL isand value the URL.null if no urls are assoiciated with the object.



getSourceURL
public NameValue getSourceURL(boolean random)(Code)
Returns a single source url associated with the transfer. If random is set to false, thensource url returned is first entry from the key set of the underlying map.
Parameters:
  random - boolean indicating if a random entry needs to be picked. NameValue where the name would be the pool on which the URL isand value the URL.null if no urls are assoiciated with the object.



isTransferringExecutableFile
public boolean isTransferringExecutableFile()(Code)
Returns a boolean indicating if a file that is being staged is an executable or not (i.e is a data file). boolean indicating whether a file is executable or not.



isValid
public boolean isValid()(Code)
Determines whether the transfer contained in this container is valid or not. It is deemed valid if there is at least one source url and one destination url. true if valid, else false.



removeDestURL
public NameValue removeDestURL()(Code)
Removes a single destination url associated with the transfer. The destination url removed is first entry from the key set of the underlying map. NameValue where the name would be the pool on which the URL isand value the URL.null if no urls are assoiciated with the object.



removeSourceURL
public NameValue removeSourceURL()(Code)
Removes a single source url associated with the transfer. The source url removed is first entry from the key set of the underlying map. NameValue where the name would be the pool on which the URL isand value the URL.null if no urls are assoiciated with the object.



toString
public String toString()(Code)
Returns a textual interpretation of the object. The method outputs in a T2 compatible format. Each FileTransfer object can refer to one section in the T2 format. the textual description.



Fields inherited from org.griphyn.cPlanner.classes.PegasusFile
final public static int DATA_FILE(Code)(Java Doc)
final public static String DATA_TYPE(Code)(Java Doc)
final public static int EXECUTABLE_FILE(Code)(Java Doc)
final public static String EXECUTABLE_TYPE(Code)(Java Doc)
final public static int NO_OF_TRANSIENT_FLAGS(Code)(Java Doc)
final public static int TRANSFER_MANDATORY(Code)(Java Doc)
final public static int TRANSFER_NOT(Code)(Java Doc)
final public static int TRANSFER_OPTIONAL(Code)(Java Doc)
final public static int TRANSIENT_OPTIONAL_FLAG(Code)(Java Doc)
final public static int TRANSIENT_REGISTRATION_FLAG(Code)(Java Doc)
protected BitSet mFlags(Code)(Java Doc)
protected String mLogicalFile(Code)(Java Doc)
protected int mTransferFlag(Code)(Java Doc)
protected int mType(Code)(Java Doc)

Methods inherited from org.griphyn.cPlanner.classes.PegasusFile
public Object clone()(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
public boolean fileOptional()(Code)(Java Doc)
public BitSet getFlags()(Code)(Java Doc)
public String getLFN()(Code)(Java Doc)
public int getTransferFlag()(Code)(Java Doc)
public boolean getTransientRegFlag()(Code)(Java Doc)
public boolean getTransientTransferFlag()(Code)(Java Doc)
public int getType()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public void setFileOptional()(Code)(Java Doc)
public void setLFN(String lfn)(Code)(Java Doc)
public void setTransferFlag(int transfer) throws IllegalArgumentException(Code)(Java Doc)
public void setTransferFlag(String flag, boolean doubleNegative) throws IllegalArgumentException(Code)(Java Doc)
public void setTransientRegFlag()(Code)(Java Doc)
public void setType(int type) throws IllegalArgumentException(Code)(Java Doc)
public void setType(String type) throws IllegalArgumentException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public boolean transferInRange(int transfer)(Code)(Java Doc)
public String typeToString()(Code)(Java Doc)
public boolean typeValid(int type)(Code)(Java Doc)

Fields inherited from org.griphyn.cPlanner.classes.Data
public String mLogMsg(Code)(Java Doc)
public LogManager mLogger(Code)(Java Doc)

Methods inherited from org.griphyn.cPlanner.classes.Data
public String setToString(Set s, String delim)(Code)(Java Doc)
abstract public String toString()(Code)(Java Doc)
public String vectorToString(String heading, Vector vector)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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