|
Ila | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.topoweb.ila.server.spi.RegistrarImpl
Base local Registrar
implementation class. This
class throws the following more specific IlaException
s:
ResolutionException
If this server is not the authority on a given node
IntegrityException
If the given LinkNode
's forelinks are truncated.
DataAccessorException
If the underlying DataAccessor
throws it.
DataAccessor
Field Summary |
Fields inherited from interface org.topoweb.ila.StateConstants |
NF, NK, NV, OK |
Fields inherited from interface org.topoweb.ila.NodeConstants |
BACK, FIRST_PAGE, FORE, LAST_PAGE, LINK_MASK, PAGE_MASK |
Constructor Summary | |
RegistrarImpl(DataAccessor db,
ServiceProviderResolver resolver,
CoLinkPolicy colinkPolicy)
Creates a new instance with the given data accessor and co-link policy. |
Method Summary | |
LinkNode |
register(LinkNode node)
Registers the given node . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RegistrarImpl(DataAccessor db, ServiceProviderResolver resolver, CoLinkPolicy colinkPolicy)
resolver
is used to ensure
that the implementation is the authority server for any given
src
ORI.
db
- a data accessor implementationresolver
- the service resolver (used to do sanity checks
on the arguments)colinkPolicy
- a co-link policy implementationMethod Detail |
public LinkNode register(LinkNode node) throws ResolutionException, DataAccessorException, IlaException
Registrar
node
. The node's forelinks
inherit backlinks to the given node; if any forelinks have been
removed, then their corresponding backlinks are scheduled for
removal. The State
of the
node
is updated and returned.
The states of the node's forelinks (as known by the system) are
returned on a best efforts basis;
if the state of any of the node's forelinks cannot be ascertained
immediately, then they are returned in the
NF
state.
register
in interface Registrar
node
- the node encapsulating information parsed by
a trusted bot
LinkNode
instance encapsulating
the state of knowledge about the given
node
at this moment in time
ResolutionException
- if this server is not the authority on the given
node
DataAccessorException
- if the underlying data accessor throws it
IlaException
- if an error occurs
|
Ila | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |