Java Globus API: Class GRCDirectory
org.globus.replica.catalog
Class GRCDirectory
java.lang.Object
|
+--org.globus.replica.catalog.GRCEntry
|
+--org.globus.replica.catalog.GRCDirectory
Direct Known Subclasses: GRCCollection , GRCLocation
public abstract class GRCDirectory extends GRCEntry
The proxy for a replica catalog directory entry, containing methods
for creation of a directory entry and management of its associated
filenames. A directory entry differs from an entry
in that it manages filenames distinctly from general attribute
information.
Version: 1.3
Author: Chi Chen, Darcy Quesnel
Constructor Summary
protected
GRCDirectory (GRCContext ctx,
String name)
Construct a proxy for a directory entry in the given replica
catalog context.
Method Summary
void
addFilenames (String [] filenames,
boolean add)
Add filenames to the directory entry in the replica catalog.
void
create (String [] filenames)
Create a directory entry in the replica catalog.
void
deleteFilenames (String [] filenames)
Delete filenames from the directory entry in the replica catalog.
String []
listFilenames ()
List filenames of the directory entry in the replica catalog.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
GRCDirectory
protected GRCDirectory (GRCContext ctx,
String name)
Construct a proxy for a directory entry in the given replica
catalog context.
Parameters: ctx - replica catalog context to connect withname - name of the directory entry to create
create
public void create (String [] filenames)
throws NamingException
Create a directory entry in the replica catalog.
Parameters: filenames - array of filenames to associate with the
directory entry
addFilenames
public void addFilenames (String [] filenames,
boolean add)
throws NamingException
Add filenames to the directory entry in the replica catalog.
Parameters: filenames - array of filenames to associate with the
directory entryadd - whether to add the given filenames that aren't
associated with the directory entry if some of the
filenames already are
listFilenames
public String [] listFilenames ()
throws NamingException
List filenames of the directory entry in the replica catalog.
Returns: array of filenames associated with the directory entry
deleteFilenames
public void deleteFilenames (String [] filenames)
throws NamingException
Delete filenames from the directory entry in the replica catalog.
Parameters: filenames - array of filenames to disassociate with the
directory entry