|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
LinkTable.java
LinkTable provides a mechanism to manipulate the exports, linked
by, and linked from tables that a host has. The exports table is a
list of all nodes which are currently exported by the host. the
linked by table contains tuples of all hosts linking information
belonging to this host, along with the element that they are
sharing (encoded as an xpath expression). The linked from table
contains a list of tuples of remote hosts, application ID's and
elements (again, encoded as xpath expressions) of elements which
the local host is linking from. Each Host
, including
the LocalHost
is expected to have a LinkTable.
Created: Fri Jul 20 15:38:21 2001
Method Summary | |
void |
addExport(org.w3c.dom.Element element,
java.lang.Integer appID)
Denotes that the given element is available for linking. |
void |
addExport(java.lang.String path,
java.lang.Integer appID)
Denotes that the given element is available for linking. |
void |
addLinkedBy(java.lang.Object primaryID,
org.w3c.dom.Element element,
java.lang.Integer localAppID)
Adds another entry to the linked by table (a host has linked to an element) |
void |
addLinkedBy(java.lang.Object primaryID,
java.lang.String path,
java.lang.Integer localAppID)
Add another entry to the linked By table (a host has linked to an element) |
void |
addLinkedFrom(java.lang.Object primaryID,
java.lang.String src,
org.w3c.dom.Element dest,
java.lang.Integer remoteAppID,
java.lang.Integer localAppID)
Adds another entry to the linked from table (the local host has linked to a remote element) |
void |
addLinkedFrom(java.lang.Object primaryID,
java.lang.String src,
java.lang.String dest,
java.lang.Integer remoteAppID,
java.lang.Integer localAppID)
Adds another entry to the linked from table (the local host has linked to a remote element) |
java.util.Enumeration |
getExportsList()
Returns the exports table. |
java.util.Enumeration |
getLinkedByHostList(java.lang.Object primaryID)
Returns data on all elements linked by the given host |
java.util.Enumeration |
getLinkedByList()
Returns the linked by table. |
java.util.Enumeration |
getLinkedFromHostList(java.lang.Object primaryID)
Returns data on all elements linked from the given host |
java.util.Enumeration |
getLinkedFromList()
Returns the linked from table |
java.lang.String |
getLinkTableMessage()
Gets a textual description of the linktable to be sent over the network. |
boolean |
isExported(org.w3c.dom.Element element,
java.lang.Integer appID)
Returns true if the given element is being exported |
boolean |
isExported(java.lang.String path,
java.lang.Integer appID)
Returns true if the given element is being exported |
boolean |
isLinkedBy(org.w3c.dom.Element element,
java.lang.Integer appID)
Returns true if the given local element is linked by another host |
boolean |
isLinkedBy(java.lang.Object primaryID,
org.w3c.dom.Element element,
java.lang.Integer appID)
Returns true if the given local element is linked the given host. |
boolean |
isLinkedBy(java.lang.Object primaryID,
java.lang.String path,
java.lang.Integer appID)
Returns true if the given local element is linked by the given host |
boolean |
isLinkedBy(java.lang.String path,
java.lang.Integer appID)
Returns true if the given local element is linked by another host |
boolean |
isLinkedFrom(org.w3c.dom.Element element,
java.lang.Integer appID)
Returns true if the given element is linked from a remote host |
boolean |
isLinkedFrom(java.lang.Object primaryID,
org.w3c.dom.Element element,
java.lang.Integer appID)
Returns true if the given element is linked from the given host |
boolean |
isLinkedFrom(java.lang.Object primaryID,
java.lang.String element,
java.lang.Integer appID)
Returns true if the given element is linked from the given host |
boolean |
isLinkedFrom(java.lang.String element,
java.lang.Integer appID)
Returns true if the given element is linked from a remote host |
boolean |
isShared(org.w3c.dom.Element element,
java.lang.Integer appID)
Returns true if the given element is either linked by someone, or linked from someone |
boolean |
isShared(java.lang.String element,
java.lang.Integer appID)
Returns true if the given element is either linked by someone, or linked from someone |
void |
removeExport(org.w3c.dom.Element element,
java.lang.Integer appID)
Denotes that the given element is no longer available for linking |
void |
removeExport(java.lang.String path,
java.lang.Integer appID)
Denotes that the given element is no longer available for linking |
void |
removeLinkedBy(java.lang.Object primaryID,
org.w3c.dom.Element element,
java.lang.Integer localAppID)
Remove an entry from the linked By table (a host has stopped linking to an element) |
void |
removeLinkedBy(java.lang.Object primaryID,
java.lang.String path,
java.lang.Integer localAppID)
Remove an entry from the linked By table (a host has stopped linking to an element) |
void |
removeLinkedFrom(org.w3c.dom.Element localElement,
java.lang.Integer localAppID)
Removes an entry from the linked From table (i.e. |
void |
setLinks(java.lang.Object links)
Provides a quick way for giving the LinkTable new data. |
Method Detail |
public java.util.Enumeration getExportsList()
public java.util.Enumeration getLinkedByList()
public java.util.Enumeration getLinkedFromList()
public java.util.Enumeration getLinkedFromHostList(java.lang.Object primaryID)
primaryID
- The primaryID of the host being checked
null
if none.
The contents of the Enumeration are left to the implementorpublic java.util.Enumeration getLinkedByHostList(java.lang.Object primaryID)
primaryID
- The primaryID of the host being checked
null
if none.
The contents of the Enumeration are left to the implementorpublic void setLinks(java.lang.Object links)
links
- The new data to be given to the LinkTable. The
encoding of which is left to the implementor.public void addExport(java.lang.String path, java.lang.Integer appID)
path
- The element encoded as an xpath expression.appID
- The id of the application that owns that elementpublic void addExport(org.w3c.dom.Element element, java.lang.Integer appID)
element
- The elementappID
- The ID of the application that owns the element.public void removeExport(org.w3c.dom.Element element, java.lang.Integer appID)
element
- The ElementappID
- The ID of the application that owns the elementpublic void removeExport(java.lang.String path, java.lang.Integer appID)
path
- a The element encoded as an XPath expressionappID
- The ID of the application that owns that elementpublic void addLinkedBy(java.lang.Object primaryID, java.lang.String path, java.lang.Integer localAppID)
primaryID
- the primary ID of the host which linked to the
elementpath
- The element (encoded as an XPath expression) to
which it linkedlocalAppID
- The ID of the application to which the
element belongspublic void addLinkedBy(java.lang.Object primaryID, org.w3c.dom.Element element, java.lang.Integer localAppID)
primaryID
- The primary ID of the host which linked to the
elementelement
- The element to which it linkedlocalAppID
- The ID of the application to which the
element belongspublic void removeLinkedBy(java.lang.Object primaryID, java.lang.String path, java.lang.Integer localAppID)
primaryID
- The primary ID of the remote hostpath
- The element (encoded as an xpath expression) to
which the remote host stopped linking.localAppID
- The ID of the local application to which the
element belongedpublic void removeLinkedBy(java.lang.Object primaryID, org.w3c.dom.Element element, java.lang.Integer localAppID)
primaryID
- The primary ID of the remote hostelement
- The element to which the remote host stopped
linkinglocalAppID
- The ID of the local application to which the
element belongedpublic void addLinkedFrom(java.lang.Object primaryID, java.lang.String src, org.w3c.dom.Element dest, java.lang.Integer remoteAppID, java.lang.Integer localAppID)
primaryID
- The primary ID of the remote hostsrc
- the remote element encoded as an xpath expressiondest
- the Local element under which the remote element
will be linkedremoteAppID
- The ID of the remote application exporting
the element src
localAppID
- The ID of the local application linking to
the remote elementpublic void addLinkedFrom(java.lang.Object primaryID, java.lang.String src, java.lang.String dest, java.lang.Integer remoteAppID, java.lang.Integer localAppID)
primaryID
- The primary ID of the remote hostsrc
- the remote element encoded as an xpath expressiondest
- the Local element under which the remote element
will be linked (encoded as an XPath expression)remoteAppID
- The ID of the remote application exporting
the element src
localAppID
- The ID of the local application linking to
the remote elementpublic void removeLinkedFrom(org.w3c.dom.Element localElement, java.lang.Integer localAppID)
localElement
- the local elementlocalAppID
- the ID of the application to which the element belongspublic boolean isLinkedBy(java.lang.String path, java.lang.Integer appID)
path
- The element encoded as an xpath expressionappID
- The ID of the application to which this element
belongs
public boolean isLinkedBy(org.w3c.dom.Element element, java.lang.Integer appID)
element
- The elementappID
- The ID of the application to which this element
belongs
public boolean isLinkedBy(java.lang.Object primaryID, java.lang.String path, java.lang.Integer appID)
primaryID
- The primary ID of the remote hostpath
- The element encoded as an xpath expressionappID
- The ID of the application to which this element
belongs
public boolean isLinkedBy(java.lang.Object primaryID, org.w3c.dom.Element element, java.lang.Integer appID)
primaryID
- the primary ID of the remote hostelement
- The elementappID
- The ID of the application to which this element
belongs
public boolean isExported(java.lang.String path, java.lang.Integer appID)
path
- The element encoded as an xpath expressionappID
- The ID of the application to which the element belongs
public boolean isExported(org.w3c.dom.Element element, java.lang.Integer appID)
element
- The elementappID
- The ID of the application to which the element belongs
public boolean isLinkedFrom(java.lang.Object primaryID, org.w3c.dom.Element element, java.lang.Integer appID)
primaryID
- The primary ID of the remote hostelement
- The elementappID
- The ID of the local application to which this
element belongs
public boolean isLinkedFrom(java.lang.Object primaryID, java.lang.String element, java.lang.Integer appID)
primaryID
- The primary ID of the remote hostelement
- The element, encoded as an xpath expressionappID
- The ID of the local application to which this
element belongs
public boolean isLinkedFrom(org.w3c.dom.Element element, java.lang.Integer appID)
element
- The elementappID
- The ID of the local application to which this
element belongs
public boolean isLinkedFrom(java.lang.String element, java.lang.Integer appID)
element
- The element, encoded as an xpath expressionappID
- The ID of the local application to which this
element belongs
public boolean isShared(org.w3c.dom.Element element, java.lang.Integer appID)
element
- The elementappID
- The ID of the application to which this element belongs
public boolean isShared(java.lang.String element, java.lang.Integer appID)
element
- The element, encoded as an xpath expressionappID
- The ID of the application to which this element belongs
public java.lang.String getLinkTableMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |