|
|||||||||
| Home >> All >> com >> fetish >> [ directory overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.fetish.directory
Interface LUSManager

- All Superinterfaces:
- java.rmi.Remote
- public interface LUSManager
- extends java.rmi.Remote
This interface corresponds to a node of the Directory. Methods includes the management of the hierarchical structure and the propragation of the information updates and the lookup operations.
Methods are organized in two sets.
Hierarchical structure : Methods to manage the connectivity of the LUS Managers.
- isAlone : check if this node has no neighbors.
- getNeighbors : gets all the neighbors for this node.
- connect : add a new neighbor for this node.
- disconnect: remove a node from the neighbor list, and remove this node from the other's neighbor list
Extended lookup : Extends the lookup operation to the nodes connected.
- addLookupResult : callback to the node that starts the search, when a new service implementation is found.
- lookup : extends the search to all but one neighbors of this node.
Method Summary booleanconnect(LUSManager node)
Add a new neighbor to the node.booleandisconnect(LUSManager node)
Remove a neighbor from the list of neighbors.booleandisconnect(java.lang.String node)
Remove a neighbor from the list of neighbors.LookupLocatorgetLocator()
Get the Jini LookupLocator.intgetMaxTime()
Get the maximum time allowed for lookups in millisecondsLUSManager[]getNeighbors()
Get the neighbors of the nodeServiceIDgetServiceID()
Get the LUSManager identifier.java.lang.StringgetUrl()
Get the URL from this node.booleanisAlone()
Check if the node is alone in the FADA architecture.voidisolate()
Isolate the node from the rest of the directory.booleanjustConnect(LUSManager node)
Add a new neighbor to the node.booleanjustDisconnect(LUSManager node)
Remove a neighbor from the list of neighbors.booleanjustDisconnect(java.lang.String node)
Remove a neighbor from the list of neighbors.voidsetMaxTime(int maxTime)
Set the maximum time allowed for lookups in millisecondsvoidstop(java.lang.String password)
Stop and deregister the node as a Jini service.Method Detail setMaxTime
public void setMaxTime(int maxTime) throws java.rmi.RemoteException- Set the maximum time allowed for lookups in milliseconds
getMaxTime
public int getMaxTime() throws java.rmi.RemoteException- Get the maximum time allowed for lookups in milliseconds
getServiceID
public ServiceID getServiceID() throws java.rmi.RemoteException- Get the LUSManager identifier.
This identifier is provided by Jini when the LUSManager is registered as a Jini service.
getUrl
public java.lang.String getUrl() throws java.rmi.RemoteException
- Get the URL from this node.
Returns the Jini URL for this node, in the form jini://<ip/hostname>:<port>
getLocator
public LookupLocator getLocator() throws java.rmi.RemoteException- Get the Jini LookupLocator.
Obtains a reference to the class that performs Unicast discovery.
stop
public void stop(java.lang.String password) throws java.rmi.RemoteException
- Stop and deregister the node as a Jini service.
It first deletes all service registrations by cancelling their leases and destroying the structure that holds them. Then it cancels the Jini lease for this FADA.
isolate
public void isolate() throws java.rmi.RemoteException- Isolate the node from the rest of the directory.
isAlone
public boolean isAlone() throws java.rmi.RemoteException- Check if the node is alone in the FADA architecture.
connect
public boolean connect(LUSManager node) throws java.rmi.RemoteException
- Add a new neighbor to the node.
This method calls the method connect on the node to obtain a
bidirectional connection.
justConnect
public boolean justConnect(LUSManager node) throws java.rmi.RemoteException
- Add a new neighbor to the node.
Adds the specified node to the list of neighbors, after checking
if it's reachable.
This method does NOT call the node to perform a bidirectional connection. It is intended to be called by the method connect() on the remote node.
disconnect
public boolean disconnect(LUSManager node) throws java.rmi.RemoteException
- Remove a neighbor from the list of neighbors.
It also removes the reference on neighbor node to this node
justDisconnect
public boolean justDisconnect(LUSManager node) throws java.rmi.RemoteException
- Remove a neighbor from the list of neighbors.
disconnect
public boolean disconnect(java.lang.String node) throws java.rmi.RemoteException
- Remove a neighbor from the list of neighbors.
It also removes the reference on neighbor node to this node
justDisconnect
public boolean justDisconnect(java.lang.String node) throws java.rmi.RemoteException
- Remove a neighbor from the list of neighbors.
getNeighbors
public LUSManager[] getNeighbors() throws java.rmi.RemoteException
- Get the neighbors of the node
Overview Package Class Use Deprecated Index Home >> All >> com >> fetish >> [ directory overview ] PREV CLASS NEXT CLASS SUMMARY:
JAVADOC |
SOURCE |
DOWNLOAD | NESTED | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
- Set the maximum time allowed for lookups in milliseconds