Java Globus API: Class GRCLocation
org.globus.replica.catalog
Class GRCLocation
java.lang.Object
|
+--org.globus.replica.catalog.GRCEntry
|
+--org.globus.replica.catalog.GRCDirectory
|
+--org.globus.replica.catalog.GRCLocation
- public class GRCLocation
- extends GRCDirectory
The proxy for a replica catalog location entry, containing methods
for creation of a location entry and management of its associated
URL accessor.
- Version:
- 1.3
- Author:
- Chi Chen, Darcy Quesnel
|
Constructor Summary |
GRCLocation(GRCContext ctx,
String name)
Construct a proxy for a location entry in the given replica
catalog context. |
|
Method Summary |
void |
addFilenames(String[] filenames,
boolean add)
Add filenames to the location entry in the replica catalog. |
void |
create(String url,
String[] filenames)
Create a location entry in the replica catalog. |
protected String |
getRDN()
Get the rdn of the GRCLocation object |
String |
getURL()
Get the URL accessor associated with the location entry in the
replica catalog. |
void |
setURL(String url)
Set the URL accessor associated with the location entry in the
replica catalog. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GRCLocation
public GRCLocation(GRCContext ctx,
String name)
- Construct a proxy for a location entry in the given replica
catalog context.
- Parameters:
ctx - replica catalog context to connect withname - name of the location object to create.
create
public void create(String url,
String[] filenames)
throws NamingException
- Create a location entry in the replica catalog.
- Parameters:
url - URL accessor to associate with the location entryfilenames - array of filenames to associate with the
location entry
getRDN
protected String getRDN()
- Get the rdn of the GRCLocation object
- Overrides:
getRDN in class GRCEntry
- Returns:
- a String presentation of the rdn of the location object
setURL
public void setURL(String url)
throws NamingException
- Set the URL accessor associated with the location entry in the
replica catalog.
- Parameters:
url - URL accessor to associate with the location entry
getURL
public String getURL()
throws NamingException
- Get the URL accessor associated with the location entry in the
replica catalog.
- Returns:
- URL accessor associated with the location entry
addFilenames
public void addFilenames(String[] filenames,
boolean add)
throws NamingException
- Add filenames to the location entry in the replica catalog.
- Overrides:
addFilenames in class GRCDirectory
- 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