|
|||||||||
| Home >> All >> com >> fetish >> [ toolkit overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.fetish.toolkit
Class Administrator

java.lang.Objectcom.fetish.toolkit.Administrator
- All Implemented Interfaces:
- java.io.Serializable
- public class Administrator
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
FADA node model.
Class for getting information and manipulating a FADA node
| Field Summary | |
(package private) com.fetish.directory.Directory |
dir
|
(package private) LeaseRenewalManager |
lrm
|
(package private) com.fetish.directory.LUSManager |
lusm
|
(package private) com.fetish.directory.LUSManager[] |
neighbors
|
(package private) ServiceItem[] |
services
|
(package private) java.lang.String |
url
|
| Constructor Summary | |
Administrator()
|
|
| Method Summary | |
boolean |
connect(com.fetish.directory.LUSManager lusm1,
com.fetish.directory.LUSManager lusm2)
Connects two FADA nodes. |
boolean |
connect(java.lang.String url1,
java.lang.String url2)
Connects two FADA nodes. |
void |
disconnect(com.fetish.directory.LUSManager lusm1,
com.fetish.directory.LUSManager lusm2)
Disconnects two FADA nodes. |
void |
disconnect(com.fetish.directory.LUSManager lusm1,
java.lang.String url)
Disconnects two FADA nodes. |
void |
disconnect(java.lang.String url1,
java.lang.String url2)
Disconnects two FADA nodes. |
com.fetish.directory.Directory |
getDirectory(java.lang.String url)
Obtains the Directory specified by the url. |
com.fetish.directory.LUSManager |
getLUSManager(java.lang.String url)
Obtains the LUSManager specified by the url. |
com.fetish.directory.LUSManager[] |
getNeighbors(com.fetish.directory.LUSManager lusm)
Obtains the complete list of neighbors for a given FADA node. |
com.fetish.directory.LUSManager[] |
getNeighbors(java.lang.String url)
Obtains the complete list of neighbors for a given FADA node. |
ServiceItem[] |
getServices(com.fetish.directory.Directory dir)
|
ServiceItem[] |
getServices(java.lang.String url)
Get the list of services registered in a FADA node. |
java.lang.String |
getServiceSID(java.rmi.Remote service)
|
java.lang.String |
getUrl(java.lang.String url)
Obtains the real URL for the FADA identified by the String url. |
void |
isolate(com.fetish.directory.LUSManager lusm)
Deletes all references to known neighbors. |
void |
isolate(java.lang.String url)
Deletes all references to known neighbors. |
void |
stop(com.fetish.directory.LUSManager lusm,
java.lang.String password)
Stop a FADA node. |
void |
stop(java.lang.String url,
java.lang.String password)
Stop a FADA node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
lrm
LeaseRenewalManager lrm
lusm
com.fetish.directory.LUSManager lusm
dir
com.fetish.directory.Directory dir
url
java.lang.String url
neighbors
com.fetish.directory.LUSManager[] neighbors
services
ServiceItem[] services
| Constructor Detail |
Administrator
public Administrator()
| Method Detail |
getLUSManager
public com.fetish.directory.LUSManager getLUSManager(java.lang.String url) throws java.rmi.RemoteException
- Obtains the LUSManager specified by the url.
The url must be in the form <host>[<port>]
getDirectory
public com.fetish.directory.Directory getDirectory(java.lang.String url) throws java.rmi.RemoteException
- Obtains the Directory specified by the url.
The url must be in the form <host>[<port>]
connect
public boolean connect(java.lang.String url1, java.lang.String url2) throws java.rmi.RemoteException
- Connects two FADA nodes.
connect
public boolean connect(com.fetish.directory.LUSManager lusm1, com.fetish.directory.LUSManager lusm2) throws java.rmi.RemoteException
- Connects two FADA nodes.
disconnect
public void disconnect(com.fetish.directory.LUSManager lusm1, com.fetish.directory.LUSManager lusm2) throws java.rmi.RemoteException
- Disconnects two FADA nodes.
disconnect
public void disconnect(java.lang.String url1, java.lang.String url2) throws java.rmi.RemoteException
- Disconnects two FADA nodes.
This method is provided to delete a neighbor that cannot be contacted, but whose ServiceID is known to the first FADA node.
disconnect
public void disconnect(com.fetish.directory.LUSManager lusm1, java.lang.String url) throws java.rmi.RemoteException
- Disconnects two FADA nodes.
This method is provided to delete a neighbor that cannot be contacted, but whose ServiceID is known to the first FADA node.
isolate
public void isolate(java.lang.String url) throws java.rmi.RemoteException
- Deletes all references to known neighbors.
Removes all connections to neighbors, and all connections from neighbors, in the node specified by the url
isolate
public void isolate(com.fetish.directory.LUSManager lusm) throws java.rmi.RemoteException
- Deletes all references to known neighbors.
Removes all connections to neighbors, and all connections from neighbors, in the node specified by the url
getServiceSID
public java.lang.String getServiceSID(java.rmi.Remote service) throws java.rmi.RemoteException
getUrl
public java.lang.String getUrl(java.lang.String url) throws java.rmi.RemoteException
- Obtains the real URL for the FADA identified by the String url.
getNeighbors
public com.fetish.directory.LUSManager[] getNeighbors(java.lang.String url) throws java.rmi.RemoteException
- Obtains the complete list of neighbors for a given FADA node.
The url is a String in the form <host>:[<port>]
getNeighbors
public com.fetish.directory.LUSManager[] getNeighbors(com.fetish.directory.LUSManager lusm) throws java.rmi.RemoteException
- Obtains the complete list of neighbors for a given FADA node.
getServices
public ServiceItem[] getServices(java.lang.String url) throws java.rmi.RemoteException, java.io.IOException, java.lang.ClassNotFoundException
- Get the list of services registered in a FADA node.
getServices
public ServiceItem[] getServices(com.fetish.directory.Directory dir) throws java.rmi.RemoteException, java.io.IOException, java.lang.ClassNotFoundException
stop
public void stop(java.lang.String url, java.lang.String password) throws java.rmi.RemoteException
- Stop a FADA node.
Brings down a FADA node, given its password is known. This method is sensitive to brute force attacks and will be replaced.
stop
public void stop(com.fetish.directory.LUSManager lusm, java.lang.String password) throws java.rmi.RemoteException
- Stop a FADA node.
Brings down a FADA node, given its password is known. This method is sensitive to brute force attacks and will be replaced.
|
|||||||||
| Home >> All >> com >> fetish >> [ toolkit overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.fetish.toolkit.Administrator