|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface to the Local Replica Catalog component of an RLS Server.
Method Summary | |
void |
addMapping(java.lang.String guid,
java.lang.String pfn)
add a new mapping to the Catalog. |
boolean |
addRLISubscription(java.lang.String rliURL)
Add an RLI URL to the list of RLI subscribers. |
boolean |
addRLISubscription(java.lang.String lrcURL,
java.lang.String rliURL)
Deprecated. |
boolean |
attributeDefinitionExists(java.lang.String attrName)
do we have an attribute definition for a given attribute name? |
void |
createAttributeDefinition(org.edg.data.util.attribute.AttributeDefinition attrDefn)
Create a new Attribute Definition in the Catalog. |
void |
createAttributeDefinition(java.lang.String attrDefn)
Deprecated. |
void |
deleteMapping(java.lang.String guid)
Deprecated. |
void |
forceRLIUpdate()
Force a bloom filter update to all the RLI subscribers |
org.edg.data.util.attribute.AttributeDefinition |
getAttributeDefinition(java.lang.String attrName)
Get the AttributeDefinition corresponding to the attribute name. |
org.edg.data.util.attribute.AttributeDefinition[] |
getAttributeDefinitions()
Get the current list of attribute definition names and type in an array of AttributeDefinition |
ColumnSizes |
getColumnSizes()
Return the maximum number of characters for a GUID, a PFN and an attribute. |
java.util.Date |
getDatePfnAttribute(java.lang.String pfnName,
java.lang.String attrDefnName)
return the value of a given date attribute for an PFN. |
int |
getDefaultResultLength()
Deprecated. |
float |
getFloatPfnAttribute(java.lang.String pfnName,
java.lang.String attrDefnName)
return the value of a given float attribute for an PFN. |
java.lang.String |
getInterfaceVersion()
|
int |
getIntPfnAttribute(java.lang.String pfnName,
java.lang.String attrDefnName)
return the value of a given int attribute for an PFN. |
java.lang.String[] |
getMappingsByAttribute(java.lang.String SQLQuery)
Deprecated. |
java.lang.String[] |
getMappingsByAttribute(java.lang.String SQLQuery,
int resultLength)
Return the guid to physical filename mappings which contain the PFNs corresponding to the given attributes conditions. |
java.lang.String[] |
getMappingsByAttribute(java.lang.String SQLQuery,
int resultLength,
int resultStart)
Return the guid to physical filename mappings which the PFNs corresponding to the given attributes conditions. |
java.lang.String[] |
getMappingsByGuid(java.lang.String guidPattern)
Deprecated. |
java.lang.String[] |
getMappingsByGuid(java.lang.String guidPattern,
int resultLength)
Return the guid to physical filename mappings which contain a guid thay matches the given guidPattern. |
java.lang.String[] |
getMappingsByGuid(java.lang.String guidPattern,
int resultLength,
int resultStart)
Return the guid to physical filename mappings which contain a guid thay matches the given guidPattern. |
java.lang.String[] |
getMappingsByPfn(java.lang.String pfnPattern)
Deprecated. |
java.lang.String[] |
getMappingsByPfn(java.lang.String pfnPattern,
int resultLength)
Return the guid to physical filename mappings which contain a pfn thay matches the given pfnPattern. |
java.lang.String[] |
getMappingsByPfn(java.lang.String pfnPattern,
int resultLength,
int resultStart)
Return the guid to physical filename mappings which contain a pfn thay matches the given pfnPattern. |
java.lang.String[] |
getMappingsByPfnAttribute(java.lang.String attrName,
java.lang.String attrPattern)
Deprecated. |
java.lang.String[] |
getMappingsByPfnAttribute(java.lang.String attrName,
java.lang.String attrPattern,
int resultLength)
Deprecated. |
java.lang.String[] |
getMappingsByPfnAttribute(java.lang.String attrName,
java.lang.String attrPattern,
int resultLength,
int resultStart)
Deprecated. |
org.edg.data.util.attribute.Mapping[] |
getMappingsWithAttributes(java.lang.String query,
int resultLength)
|
org.edg.data.util.attribute.Mapping[] |
getMappingsWithAttributes(java.lang.String query,
int resultLength,
int resultStart)
|
Metadata |
getMetadata()
|
java.lang.String |
getPfnAttribute(java.lang.String pfnName,
java.lang.String attrDefnName)
Deprecated. |
java.lang.String[] |
getPfns(java.lang.String guid)
For a given guid, return all the physical filenames we map to in this Catalog. |
java.lang.String[] |
getRLISubscriptions()
Return the list of RLIs that currently subscribe to this LRC |
java.lang.String |
getSchemaVersion()
|
java.lang.String |
getStringPfnAttribute(java.lang.String pfnName,
java.lang.String attrDefnName)
return the value of a given string attribute for a PFN. |
java.lang.String |
getVersion()
|
boolean |
guidExists(java.lang.String guid)
Do we have a given guid in the catalog. |
java.lang.String |
guidForPfn(java.lang.String pfn)
For a given pfn, return the guid that points to it. |
boolean |
pfnExists(java.lang.String pfn)
Do we have a given physical filename in the catalog |
java.lang.String |
ping()
Is the server alive. |
void |
removeAttributeDefinition(java.lang.String attrName)
Delete an Attribute Definition from the Catalog. |
void |
removeMapping(java.lang.String guid,
java.lang.String pfn)
remove from the catalog a single guid to pfn mapping. |
void |
removePfnAttribute(java.lang.String pfnName,
java.lang.String attrDefnName)
remove the value of a given attribute for an PFN. |
boolean |
removeRLISubscription(java.lang.String rliURL)
Remove a RLI URL from the list of RLI subscribers. |
java.util.Date |
setDatePfnAttribute(java.lang.String pfnName,
java.lang.String attrDefnName,
java.util.Date attrValue)
Add an attribute value to a PFN attribute of type date. |
void |
setDefaultResultLength(int resultLength)
Deprecated. |
float |
setFloatPfnAttribute(java.lang.String pfnName,
java.lang.String attrDefnName,
float attrValue)
Add an attribute value to a PFN attribute of type float. |
int |
setIntPfnAttribute(java.lang.String pfnName,
java.lang.String attrDefnName,
int attrValue)
Add an attribute value to a PFN attribute of type int. |
java.lang.String |
setPfnAttribute(java.lang.String pfnName,
java.lang.String attrDefnName,
java.lang.String attrValue)
Deprecated. |
java.lang.String |
setStringPfnAttribute(java.lang.String pfnName,
java.lang.String attrDefnName,
java.lang.String attrValue)
Add an attribute value to a PFN attribute of type string. |
Method Detail |
public void addMapping(java.lang.String guid, java.lang.String pfn)
guid
- The guidpfn
- The physical filenamepublic void deleteMapping(java.lang.String guid)
guid
- The guid for which to delete the mappingpublic void removeMapping(java.lang.String guid, java.lang.String pfn)
guid
- the guid whose mapping we look atpfn
- the physical filename to removepublic boolean guidExists(java.lang.String guid)
guid
- The guid we are checking for
public boolean pfnExists(java.lang.String pfn)
pfn
- The physical filename we are checking for
public java.lang.String[] getPfns(java.lang.String guid)
guid
- The GUID
NoSuchGuidException
- If the guid does not exist in the
catalog.public java.lang.String guidForPfn(java.lang.String pfn)
pfn
- The physical filename.
NoSuchPfnException
- If the pfn does not exist in the
catalog.public void createAttributeDefinition(org.edg.data.util.attribute.AttributeDefinition attrDefn)
attrDefn
- the attribute definition
AttributeDefinitionExistsException
- if an attribute with
the given name already existspublic void createAttributeDefinition(java.lang.String attrDefn)
attrDefn
- the attribute definition
AttributeDefinitionExistsException
- if an attribute with
the given name already existspublic org.edg.data.util.attribute.AttributeDefinition getAttributeDefinition(java.lang.String attrName)
attrName
- the attribute name
NoSuchAttributeDefinitionException
- if an attribute with
the given name doesn't existpublic org.edg.data.util.attribute.AttributeDefinition[] getAttributeDefinitions()
null
if there are no
definitionspublic void removeAttributeDefinition(java.lang.String attrName)
attrName
- the name of the attribute definition to removepublic boolean attributeDefinitionExists(java.lang.String attrName)
attrName
- the name of attribute to check for
public java.lang.String setPfnAttribute(java.lang.String pfnName, java.lang.String attrDefnName, java.lang.String attrValue)
pfnName
- The PFNattrDefnName
- the name of attributeattrValue
- The attribute value we'll add.
NoSuchPfnException
- if the PFN does not exist in the Catalog
NoSuchAttributeDefinitionException
- if the definition of
the attribute does not exist in the Catalog.
UnappropriateAttributeTypeException
- if the attribute is not of type stringpublic java.lang.String setStringPfnAttribute(java.lang.String pfnName, java.lang.String attrDefnName, java.lang.String attrValue)
pfnName
- The PFNattrDefnName
- the name of attributeattrValue
- The attribute value we'll add.
NoSuchPfnException
- if the PFN does not exist in the Catalog
NoSuchAttributeDefinitionException
- if the definition of
the attribute does not exist in the Catalog.
UnappropriateAttributeTypeException
- if the attribute is not of type stringpublic int setIntPfnAttribute(java.lang.String pfnName, java.lang.String attrDefnName, int attrValue)
pfnName
- The PFNattrDefnName
- the name of attributeattrValue
- The attribute value we'll add.
NoSuchPfnException
- if the PFN does not exist in the Catalog
NoSuchAttributeDefinitionException
- if the definition of
the attribute does not exist in the Catalog.
UnappropriateAttributeTypeException
- if the attribute is not of type intpublic float setFloatPfnAttribute(java.lang.String pfnName, java.lang.String attrDefnName, float attrValue)
pfnName
- The PFNattrDefnName
- the name of attributeattrValue
- The attribute value we'll add.
NoSuchPfnException
- if the PFN does not exist in the Catalog
NoSuchAttributeDefinitionException
- if the definition of
the attribute does not exist in the Catalog.
UnappropriateAttributeTypeException
- if the attribute is not of type floatpublic java.util.Date setDatePfnAttribute(java.lang.String pfnName, java.lang.String attrDefnName, java.util.Date attrValue)
pfnName
- The PFNattrDefnName
- the name of attributeattrValue
- The attribute value we'll add.
NoSuchPfnException
- if the PFN does not exist in the Catalog
NoSuchAttributeDefinitionException
- if the definition of
the attribute does not exist in the Catalog.
UnappropriateAttributeTypeException
- if the attribute is not of type datepublic java.lang.String getPfnAttribute(java.lang.String pfnName, java.lang.String attrDefnName)
pfnName
- the PFNattrDefnName
- the AttributeDefinition name to check for
NoSuchPfnException
- if the PFN does not exist in the Catalog
NoSuchAttributeDefinitionException
- if the AttributeDefintion
does not exist in the catalog.public java.lang.String getStringPfnAttribute(java.lang.String pfnName, java.lang.String attrDefnName)
pfnName
- the PFNattrDefnName
- the AttributeDefinition name to check for
NoSuchPfnException
- if the PFN does not exist in the Catalog
NoSuchAttributeDefinitionException
- if the AttributeDefintion
does not exist in the catalog.public int getIntPfnAttribute(java.lang.String pfnName, java.lang.String attrDefnName)
pfnName
- the PFNattrDefnName
- the AttributeDefinition name to check for
NoSuchPfnException
- if the PFN does not exist in the Catalog
NoSuchAttributeDefinitionException
- if the AttributeDefintion
does not exist in the catalog.public float getFloatPfnAttribute(java.lang.String pfnName, java.lang.String attrDefnName)
pfnName
- the PFNattrDefnName
- the AttributeDefinition name to check for
NoSuchPfnException
- if the PFN does not exist in the Catalog
NoSuchAttributeDefinitionException
- if the AttributeDefintion
does not exist in the catalog.public java.util.Date getDatePfnAttribute(java.lang.String pfnName, java.lang.String attrDefnName)
pfnName
- the PFNattrDefnName
- the AttributeDefinition name to check for
NoSuchPfnException
- if the PFN does not exist in the Catalog
NoSuchAttributeDefinitionException
- if the AttributeDefintion
does not exist in the catalog.public void removePfnAttribute(java.lang.String pfnName, java.lang.String attrDefnName)
pfnName
- the PFNattrDefnName
- the AttributeDefinition name to check forpublic void setDefaultResultLength(int resultLength)
resultLength
- the number of mappings that will be displayed by
defaultpublic int getDefaultResultLength()
public ColumnSizes getColumnSizes()
public java.lang.String[] getMappingsByGuid(java.lang.String guidPattern)
guidPattern
- The GUID pattern we are searching for
String[]
. This has an even
number of entries in the for {guid, pfn, guid, pfn, ...}
public java.lang.String[] getMappingsByGuid(java.lang.String guidPattern, int resultLength)
guidPattern
- The GUID pattern we are searching forresultLength
- The number of of mappings that will be displayed
String[]
. This has an even
number of entries in the for {guid, pfn, guid, pfn, ...}
public java.lang.String[] getMappingsByGuid(java.lang.String guidPattern, int resultLength, int resultStart)
guidPattern
- The GUID pattern we are searching forresultLength
- The number of of mappings that will be displayedresultStart
- The rank of the first mapping that will be displayed
String[]
. This has an even
number of entries in the for {guid, pfn, guid, pfn, ...}
public java.lang.String[] getMappingsByPfn(java.lang.String pfnPattern)
pfnPattern
- The Physical FileName pattern we are searching for
String[]
. This has an even
number of entries in the for {guid, pfn, guid, pfn, ...}
public java.lang.String[] getMappingsByPfn(java.lang.String pfnPattern, int resultLength)
pfnPattern
- The PFN pattern we are searching forresultLength
- The number of of mappings that will be displayed
String[]
. This has an even
number of entries in the for {guid, pfn, guid, pfn, ...}
public java.lang.String[] getMappingsByPfn(java.lang.String pfnPattern, int resultLength, int resultStart)
pfnPattern
- The PFN pattern we are searching forresultLength
- The number of of mappings that will be displayedresultStart
- The rank of the first mapping that will be displayed
String[]
. This has an even
number of entries in the for {guid, pfn, guid, pfn, ...}
public java.lang.String[] getMappingsByAttribute(java.lang.String SQLQuery)
SQLQuery
- The attributes conditions
String[]
. This has an even
number of entries in the for {guid, pfn, guid, pfn, ...}
public java.lang.String[] getMappingsByAttribute(java.lang.String SQLQuery, int resultLength)
SQLQuery
- The attributes conditionsresultLength
- The number of of mappings that will be displayed
String[]
. This has an even
number of entries in the for {guid, pfn, guid, pfn, ...}
public java.lang.String[] getMappingsByAttribute(java.lang.String SQLQuery, int resultLength, int resultStart)
SQLQuery
- The attributes conditionsresultLength
- The number of of mappings that will be displayedresultStart
- The rank of the first mapping that will be displayed
String[]
. This has an even
number of entries in the for {guid, pfn, guid, pfn, ...}
public java.lang.String[] getMappingsByPfnAttribute(java.lang.String attrName, java.lang.String attrPattern)
public java.lang.String[] getMappingsByPfnAttribute(java.lang.String attrName, java.lang.String attrPattern, int resultLength)
public java.lang.String[] getMappingsByPfnAttribute(java.lang.String attrName, java.lang.String attrPattern, int resultLength, int resultStart)
public boolean addRLISubscription(java.lang.String lrcURL, java.lang.String rliURL)
RLI URL
to the list of RLI subscribers.
rliURL
- The URL for the RLI subscriberpublic boolean addRLISubscription(java.lang.String rliURL)
RLI URL
to the list of RLI subscribers.
rliURL
- The URL for the RLI subscriberpublic boolean removeRLISubscription(java.lang.String rliURL)
RLI URL
from the list of RLI subscribers.
rliURL
- The URL for the RLI subscriberpublic java.lang.String[] getRLISubscriptions()
public void forceRLIUpdate()
public java.lang.String ping()
OK
else it will start with
FAIL
.
public java.lang.String getVersion()
public java.lang.String getInterfaceVersion()
public java.lang.String getSchemaVersion()
public org.edg.data.util.attribute.Mapping[] getMappingsWithAttributes(java.lang.String query, int resultLength)
public org.edg.data.util.attribute.Mapping[] getMappingsWithAttributes(java.lang.String query, int resultLength, int resultStart)
public Metadata getMetadata()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |