|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.globus.replica.rls.RLSClient
This class implements the interface to an RLS server.
| Nested Class Summary | |
class |
RLSClient.LRC
This class implements the LRC interface to an RLS server. |
class |
RLSClient.RLI
This class implements the RLI interface to an RLS server. |
| Field Summary | |
static int |
ADMIN_PING
|
static int |
ADMIN_QUIT
|
static int |
ADMIN_SSU
|
static int |
RLIFLAG_BLOOMFILTER
|
static int |
RLS_ATTR_EXIST
|
static int |
RLS_ATTR_INUSE
|
static int |
RLS_ATTR_NEXIST
|
static int |
RLS_ATTR_VALUE_NEXIST
|
static int |
RLS_BADARG
|
static int |
RLS_BADMETHOD
|
static int |
RLS_BADURL
|
static int |
RLS_DBERROR
|
static int |
RLS_GLOBUSERR
|
static int |
RLS_INV_ATTR_OP
|
static int |
RLS_INV_ATTR_TYPE
|
static int |
RLS_INV_OBJ_TYPE
|
static int |
RLS_INVHANDLE
|
static int |
RLS_INVSERVER
|
static int |
RLS_LFN_EXIST
|
static int |
RLS_LFN_NEXIST
|
static int |
RLS_LRC_EXIST
|
static int |
RLS_LRC_NEXIST
|
static int |
RLS_MAPPING_EXIST
|
static int |
RLS_MAPPING_NEXIST
|
static int |
RLS_NOMEMORY
|
static int |
RLS_OVERFLOW
|
static int |
RLS_PERM
|
static int |
RLS_PFN_EXIST
|
static int |
RLS_PFN_NEXIST
|
static int |
RLS_RLI_EXIST
|
static int |
RLS_RLI_NEXIST
|
static int |
RLS_SUCCESS
|
static int |
RLS_TIMEOUT
|
static int |
RLS_TOO_MANY_CONNECTIONS
|
static int |
RLS_UNSUPPORTED
|
| Constructor Summary | |
RLSClient()
Connect to an RLS server on the local host at the default port. |
|
RLSClient(java.lang.String url)
Connect to an RLS server at the specified url. |
|
RLSClient(java.lang.String url,
java.lang.String proxyfile)
Connect to an RLS server at the specified url, using proxycert for authentication. |
|
RLSClient(java.lang.String url,
java.lang.String certfile,
java.lang.String keyfile)
Connect to an RLS server at the specified url, using certfile/key for authentication. |
|
| Method Summary | |
void |
Admin(int cmd)
Miscellaneous administrative operations. |
static void |
Certificate(java.lang.String certfile,
java.lang.String keyfile)
Set name of cert and key files. |
void |
Close()
Close connection to RLS server. |
java.util.ArrayList |
GetConfiguration(java.lang.String option)
Return server configuration. |
java.lang.String |
getErrorMessage(int rc)
Map status code returned by RLS to string. |
RLSClient.LRC |
getLRC()
|
RLSClient.RLI |
getRLI()
|
int |
GetTimeout()
Get timeout, in seconds, used in IO calls. |
java.lang.String |
GetURL()
Return URL of RLS server. |
void |
LRCAdd(java.lang.String lfn,
java.lang.String pfn)
Deprecated. Use getLRC().add() |
void |
LRCAttrAdd(java.lang.String key,
org.globus.replica.rls.RLSAttribute attr)
Deprecated. Use getLRC().attributeAdd() |
void |
LRCAttrCreate(java.lang.String name,
int objtype,
int valtype)
Deprecated. Use getLRC().attributeCreate() |
void |
LRCAttrDelete(java.lang.String name,
int objtype,
boolean clearvalues)
|
java.util.ArrayList |
LRCAttrGet(java.lang.String name,
int objtype)
Deprecated. Use getLRC().attributeGet() |
void |
LRCAttrModify(java.lang.String key,
org.globus.replica.rls.RLSAttribute attr)
Deprecated. Use getLRC().attributeModify() |
void |
LRCAttrRemove(java.lang.String key,
org.globus.replica.rls.RLSAttribute attr)
Deprecated. Use getLRC().attributeRemove() |
java.util.ArrayList |
LRCAttrSearch(java.lang.String name,
int objtype,
int op,
org.globus.replica.rls.RLSAttribute op1,
org.globus.replica.rls.RLSAttribute op2,
org.globus.replica.rls.RLSOffsetLimit offlim)
Deprecated. Use getLRC().attributeSearch() |
java.util.ArrayList |
LRCAttrValueGet(java.lang.String key,
java.lang.String name,
int objtype)
Deprecated. Use getLRC().attributeValueGet() |
void |
LRCClear()
Deprecated. Use getLRC().clear() |
void |
LRCCreate(java.lang.String lfn,
java.lang.String pfn)
Deprecated. Use getLRC().create() |
void |
LRCDelete(java.lang.String lfn,
java.lang.String pfn)
Deprecated. Use getLRC().delete() |
boolean |
LRCExists(java.lang.String key,
int objtype)
Deprecated. Use getLRC().exists() |
java.util.ArrayList |
LRCGetLFN(java.lang.String pfn)
Deprecated. Use getLRC().getLFN() |
java.util.ArrayList |
LRCGetLFN(java.lang.String pfn,
org.globus.replica.rls.RLSOffsetLimit offlim)
Deprecated. Use getLRC().getLFN() |
java.util.ArrayList |
LRCGetLFNWC(java.lang.String pfnpat)
Deprecated. Use getLRC().getLFNWC() |
java.util.ArrayList |
LRCGetLFNWC(java.lang.String pfnpat,
org.globus.replica.rls.RLSOffsetLimit offlim)
Deprecated. Use getLRC().getLFNWC() |
java.util.ArrayList |
LRCGetPFN(java.lang.String lfn)
Deprecated. Use getLRC().gePLFN() |
java.util.ArrayList |
LRCGetPFN(java.lang.String lfn,
org.globus.replica.rls.RLSOffsetLimit offlim)
Deprecated. Use getLRC().gePLFN() |
java.util.ArrayList |
LRCGetPFNWC(java.lang.String lfnpat)
Deprecated. Use getLRC().gePLFNWC() |
java.util.ArrayList |
LRCGetPFNWC(java.lang.String lfnpat,
org.globus.replica.rls.RLSOffsetLimit offlim)
Deprecated. Use getLRC().gePLFNWC() |
boolean |
LRCMappingExists(java.lang.String lfn,
java.lang.String pfn)
Deprecated. Use getLRC().mappingExists() |
void |
LRCRLIAdd(java.lang.String rliurl,
int flags,
java.lang.String pattern)
Deprecated. Use getLRC().rliAdd() |
void |
LRCRLIDelete(java.lang.String rliurl,
java.lang.String pattern)
Deprecated. Use getLRC().rliDelete() |
java.util.ArrayList |
LRCRLIGetPart(java.lang.String rliurl,
java.lang.String pattern)
Deprecated. Use getLRC().rliGetPart() |
org.globus.replica.rls.RLSRLIInfo |
LRCRLIInfo(java.lang.String rliurl)
Deprecated. Use getLRC().rliInfo() |
java.util.ArrayList |
LRCRLIList()
Deprecated. Use getLRC().rliList() |
static int |
OSSystem(java.lang.String cmd)
Make call to system(), hack to allow me to invoke globus-url-copy for the sc2002 demo. |
static void |
ProxyCertificate(java.lang.String proxyfile)
Set name of proxy cert file. |
boolean |
RLIExists(java.lang.String key,
int objtype)
Deprecated. Use getRLI().exists() |
java.util.ArrayList |
RLIGetLRC(java.lang.String lfn)
Deprecated. Use getRLI().getLRC() |
java.util.ArrayList |
RLIGetLRC(java.lang.String lfn,
org.globus.replica.rls.RLSOffsetLimit offlim)
Deprecated. Use getRLI().getLRC() |
java.util.ArrayList |
RLIGetLRCWC(java.lang.String lfnpat)
Deprecated. Use getRLI().getLRCWC() |
java.util.ArrayList |
RLIGetLRCWC(java.lang.String lfnpat,
org.globus.replica.rls.RLSOffsetLimit offlim)
Deprecated. Use getRLI().getLRCWC() |
java.util.ArrayList |
RLILRCList()
Deprecated. Use getRLI().lrcList() |
boolean |
RLIMappingExists(java.lang.String lfn,
java.lang.String lrc)
Deprecated. Use getRLI().mappingExists() |
int |
SetConfiguration(java.lang.String option,
java.lang.String value)
Set server configuration. |
void |
SetTimeout(int seconds)
Set timeout value for IO calls. |
org.globus.replica.rls.RLSStats |
Stats()
Return stats about an RLS server. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int RLS_SUCCESS
public static final int RLS_GLOBUSERR
public static final int RLS_INVHANDLE
public static final int RLS_BADURL
public static final int RLS_NOMEMORY
public static final int RLS_OVERFLOW
public static final int RLS_BADARG
public static final int RLS_PERM
public static final int RLS_BADMETHOD
public static final int RLS_INVSERVER
public static final int RLS_MAPPING_NEXIST
public static final int RLS_LFN_EXIST
public static final int RLS_LFN_NEXIST
public static final int RLS_PFN_EXIST
public static final int RLS_PFN_NEXIST
public static final int RLS_LRC_EXIST
public static final int RLS_LRC_NEXIST
public static final int RLS_DBERROR
public static final int RLS_RLI_EXIST
public static final int RLS_RLI_NEXIST
public static final int RLS_MAPPING_EXIST
public static final int RLS_INV_ATTR_TYPE
public static final int RLS_ATTR_EXIST
public static final int RLS_ATTR_NEXIST
public static final int RLS_INV_OBJ_TYPE
public static final int RLS_INV_ATTR_OP
public static final int RLS_UNSUPPORTED
public static final int RLS_TIMEOUT
public static final int RLS_TOO_MANY_CONNECTIONS
public static final int RLS_ATTR_VALUE_NEXIST
public static final int RLS_ATTR_INUSE
public static final int ADMIN_PING
public static final int ADMIN_QUIT
public static final int ADMIN_SSU
public static final int RLIFLAG_BLOOMFILTER
| Constructor Detail |
public RLSClient()
throws RLSException
public RLSClient(java.lang.String url)
throws RLSException
url - The location of the RLS server. It should be of the form
rls://host[:port] or rlsn://host[:port]. The latter form is used
if no authentication is desired.
public RLSClient(java.lang.String url,
java.lang.String proxyfile)
throws RLSException
url - The location of the RLS server. It should be of the form
rls://host[:port] or rlsn://host[:port]. The latter form is used
if no authentication is desired.proxyfile - Proxy certificate filename to use for authentication.
public RLSClient(java.lang.String url,
java.lang.String certfile,
java.lang.String keyfile)
throws RLSException
url - The location of the RLS server. It should be of the form
rls://host[:port] or rlsn://host[:port]. The latter form is used
if no authentication is desired.certfile - Certificate file to use for authentication.keyfile - Key file to use for authentication.| Method Detail |
public void Admin(int cmd)
throws RLSException
cmd - Command to be sent to RLS server.
See admin commands.
RLSException
public static void Certificate(java.lang.String certfile,
java.lang.String keyfile)
public static void ProxyCertificate(java.lang.String proxyfile)
public void Close()
throws RLSException
RLSExceptionpublic java.lang.String getErrorMessage(int rc)
rc - Status code.
public RLSClient.LRC getLRC()
public RLSClient.RLI getRLI()
public int GetTimeout()
public void SetTimeout(int seconds)
seconds - Timeout value.public java.lang.String GetURL()
public void LRCAttrAdd(java.lang.String key,
org.globus.replica.rls.RLSAttribute attr)
throws RLSException
getLRC().attributeAdd()
key - Logical or Physical File Name (LFN or PFN) that identifies
object attribute should be added to.attr - Attribute to be added to object. See
object types.
RLSException
public void LRCAttrCreate(java.lang.String name,
int objtype,
int valtype)
throws RLSException
getLRC().attributeCreate()
name - Name of attribute.objtype - Object (LFN or PFN) type that attribute applies to. See
object types.valtype - Type of attribute value. See
attribute types.
RLSException
public void LRCAttrDelete(java.lang.String name,
int objtype,
boolean clearvalues)
throws RLSException
RLSException
public java.util.ArrayList LRCAttrGet(java.lang.String name,
int objtype)
throws RLSException
getLRC().attributeGet()
name - Name of attribute. If name is null all attributes of the
specified objtype are returned.objtype - Object (LFN or PFN) type that attribute applies to.
See object types.
RLSAttribute objects.
RLSException
public void LRCAttrModify(java.lang.String key,
org.globus.replica.rls.RLSAttribute attr)
throws RLSException
getLRC().attributeModify()
key - Name of object (LFN or PFN).attr - Attribute to be modified.
RLSException
public void LRCAttrRemove(java.lang.String key,
org.globus.replica.rls.RLSAttribute attr)
throws RLSException
getLRC().attributeRemove()
key - Name of object (LFN or PFN).attr - Attribute to be removed.
RLSException
public java.util.ArrayList LRCAttrSearch(java.lang.String name,
int objtype,
int op,
org.globus.replica.rls.RLSAttribute op1,
org.globus.replica.rls.RLSAttribute op2,
org.globus.replica.rls.RLSOffsetLimit offlim)
throws RLSException
getLRC().attributeSearch()
name - Name of attribute.objtype - Object (LFN or PFN) type that attribute applies to.op - Operator to be used in searching for values. See
operators.offlim - Offset and limit used to retrieve results incrementally.
Use null, or 0,0, to retrieve all results.
RLSAttributeObject
objects.
RLSException
public java.util.ArrayList LRCAttrValueGet(java.lang.String key,
java.lang.String name,
int objtype)
throws RLSException
getLRC().attributeValueGet()
key - Logical or Physical File Name (LFN or PFN) that identifies
object attributes should be retrieved for.name - Name of attribute to retrieve. If null all attributes for
key, objtype are returned.objtype - Object (LFN or PFN) type that attribute applies to.
RLSAttribute objects.
RLSException
public void LRCAdd(java.lang.String lfn,
java.lang.String pfn)
throws RLSException
getLRC().add()
lfn - LFN to add pfn mapping to, should already exist.pfn - PFN that lfn should map to.
RLSException
public void LRCClear()
throws RLSException
getLRC().clear()
RLSException
public void LRCCreate(java.lang.String lfn,
java.lang.String pfn)
throws RLSException
getLRC().create()
lfn - LFN to add pfn mapping to, should not exist.pfn - PFN that lfn should map to.
RLSException
public void LRCDelete(java.lang.String lfn,
java.lang.String pfn)
throws RLSException
getLRC().delete()
lfn - LFN to remove mapping from.pfn - PFN that LFN maps to be removed.
RLSException
public boolean LRCExists(java.lang.String key,
int objtype)
throws RLSException
getLRC().exists()
key - Name of object.objtype - Type of object.
RLSException
public java.util.ArrayList LRCGetLFN(java.lang.String pfn,
org.globus.replica.rls.RLSOffsetLimit offlim)
throws RLSException
getLRC().getLFN()
pfn - PFN to search for.offlim - Offset and limit used to retrieve results incrementally.
Use null, or 0,0, to retrieve all results.
RLSString2 objects containing matching lfn,pfn mappings.
RLSException
public java.util.ArrayList LRCGetLFN(java.lang.String pfn)
throws RLSException
getLRC().getLFN()
pfn - PFN to search for.
rls.RLSString2 objects containing matching lfn,pfn mappings.
RLSException
public java.util.ArrayList LRCGetLFNWC(java.lang.String pfnpat,
org.globus.replica.rls.RLSOffsetLimit offlim)
throws RLSException
getLRC().getLFNWC()
pfnpat - PFN pattern to search for.offlim - Offset and limit used to retrieve results incrementally.
Use null, or 0,0, to retrieve all results.
rls.RLSString2
objects containing matching lfn,pfn mappings.
RLSException
public java.util.ArrayList LRCGetLFNWC(java.lang.String pfnpat)
throws RLSException
getLRC().getLFNWC()
pfnpat - PFN pattern to search for.
rls.RLSString2
objects containing matching lfn,pfn mappings.
RLSException
public java.util.ArrayList LRCGetPFN(java.lang.String lfn,
org.globus.replica.rls.RLSOffsetLimit offlim)
throws RLSException
getLRC().gePLFN()
lfn - LFN to search for.offlim - Offset and limit used to retrieve results incrementally.
Use null, or 0,0, to retrieve all results.
rls.RLSString2 objects
containing matching lfn,pfn mappings.
RLSException
public java.util.ArrayList LRCGetPFN(java.lang.String lfn)
throws RLSException
getLRC().gePLFN()
lfn - LFN to search for.
rls.RLSString2
objects containing matching lfn,pfn mappings.
RLSException
public java.util.ArrayList LRCGetPFNWC(java.lang.String lfnpat,
org.globus.replica.rls.RLSOffsetLimit offlim)
throws RLSException
getLRC().gePLFNWC()
lfnpat - LFN pattern to search for.offlim - Offset and limit used to retrieve results incrementally.
Use null, or 0,0, to retrieve all results.
rls.RLSString2
objects containing matching lfn,pfn mappings.
RLSException
public java.util.ArrayList LRCGetPFNWC(java.lang.String lfnpat)
throws RLSException
getLRC().gePLFNWC()
lfnpat - LFN pattern to search for.
rls.RLSString2
objects containing matching lfn,pfn mappings.
RLSException
public boolean LRCMappingExists(java.lang.String lfn,
java.lang.String pfn)
throws RLSException
getLRC().mappingExists()
lfn - Name of LFN.pfn - Name of PFN.
RLSException
public void LRCRLIAdd(java.lang.String rliurl,
int flags,
java.lang.String pattern)
throws RLSException
getLRC().rliAdd()
flags - Should be zero or
RLSClient.RLIFLAG_BLOOMFILTER
if the RLI should be updated via Bloom filters.pattern - If not NULL used to filter which LFNs are sent to rli_url.
Standard Unix wildcard characters (*, ?) may be used to do wildcard
matches. Patterns are ignored if Bloom filters are used for updates.
RLSException
public void LRCRLIDelete(java.lang.String rliurl,
java.lang.String pattern)
throws RLSException
getLRC().rliDelete()
pattern - If not null then only the specific rli_url/pattern is
removed, else all partition information for rli_url is removed.
RLSException
public java.util.ArrayList LRCRLIGetPart(java.lang.String rliurl,
java.lang.String pattern)
throws RLSException
getLRC().rliGetPart()
pattern - If not NULL returns only partitions with matching patterns,
otherwise all patterns are retrieved.
rls.RLSString2 objects,
containing the RLI URLs and patterns (if any) updated by the
LRC.
RLSException
public org.globus.replica.rls.RLSRLIInfo LRCRLIInfo(java.lang.String rliurl)
throws RLSException
getLRC().rliInfo()
RLSRLIInfo object.
RLSException
public java.util.ArrayList LRCRLIList()
throws RLSException
getLRC().rliList()
RLSException
public java.util.ArrayList RLIGetLRC(java.lang.String lfn,
org.globus.replica.rls.RLSOffsetLimit offlim)
throws RLSException
getRLI().getLRC()
lfn - LFN to search for.offlim - Offset and limit used to retrieve results incrementally.
Use null, or 0,0, to retrieve all results.
rls.RLSString2
objects containing matching lfn,lrc mappings.
RLSException
public java.util.ArrayList RLIGetLRC(java.lang.String lfn)
throws RLSException
getRLI().getLRC()
rls.RLSString2
objects containing matching lfn,lrc mappings.
RLSException
public java.util.ArrayList RLIGetLRCWC(java.lang.String lfnpat,
org.globus.replica.rls.RLSOffsetLimit offlim)
throws RLSException
getRLI().getLRCWC()
lfnpat - LFN pattern to search for.offlim - Offset and limit used to retrieve results incrementally.
Use null, or 0,0, to retrieve all results.
rls.RLSString2 objects
containing matching lfn,lrc mappings.
RLSException
public java.util.ArrayList RLIGetLRCWC(java.lang.String lfnpat)
throws RLSException
getRLI().getLRCWC()
lfnpat - LFN pattern to search for.
rls.RLSString2 objects
containing matching lfn,lrc mappings.
RLSException
public boolean RLIExists(java.lang.String key,
int objtype)
throws RLSException
getRLI().exists()
key - Name of object.objtype - Type of object.
RLSException
public java.util.ArrayList RLILRCList()
throws RLSException
getRLI().lrcList()
RLSException
public boolean RLIMappingExists(java.lang.String lfn,
java.lang.String lrc)
throws RLSException
getRLI().mappingExists()
lfn - Name of LFN.lrc - Name of LRC.
RLSException
public java.util.ArrayList GetConfiguration(java.lang.String option)
throws RLSException
option - Configuration option to retreive. If null all
options are returned
RLSString2 objects containing configuration option names and values.
RLSException
public int SetConfiguration(java.lang.String option,
java.lang.String value)
throws RLSException
option - Configuration option to set.value - Value to set.
RLSException
public org.globus.replica.rls.RLSStats Stats()
throws RLSException
RLSExceptionpublic static int OSSystem(java.lang.String cmd)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||