Java Globus API: Class GRCFile
org.globus.replica.catalog
Class GRCFile
java.lang.Object
|
+--org.globus.replica.catalog.GRCEntry
|
+--org.globus.replica.catalog.GRCFile
- public class GRCFile
- extends GRCEntry
The proxy for a replica catalog file entry, containing methods for
creation of a file entry and management of its associated file size.
- Version:
- 1.3
- Author:
- Chi Chen, Darcy Quesnel
|
Constructor Summary |
GRCFile(GRCContext ctx,
String name)
Construct a proxy for a file entry in the given replica catalog
context. |
|
Method Summary |
void |
create(int size)
Create a file entry in the replica catalog. |
protected String |
getRDN()
Get the rdn of the GRCFile object |
int |
getSize()
Get the size associated with the file entry in the replica
catalog. |
void |
setSize(int size)
Set the size associated with the file entry in the replica
catalog. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GRCFile
public GRCFile(GRCContext ctx,
String name)
- Construct a proxy for a file entry in the given replica catalog
context.
- Parameters:
ctx - replica catalog context to connect withname - name of the GRCFile object to create.
create
public void create(int size)
throws NamingException
- Create a file entry in the replica catalog.
- Parameters:
size - size associated with the file entry
getRDN
protected String getRDN()
- Get the rdn of the GRCFile object
- Overrides:
getRDN in class GRCEntry
- Returns:
- a String presentation of the rdn of the collection object
setSize
public void setSize(int size)
throws NamingException
- Set the size associated with the file entry in the replica
catalog.
- Parameters:
size - size to associate with the GRCFile entry
getSize
public int getSize()
throws NamingException
- Get the size associated with the file entry in the replica
catalog.
- Returns:
- size associated with the file entry