|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dermi.DHTHandler
public class DHTHandler
Constructor Summary | |
---|---|
DHTHandler(java.lang.String bunshinPropsPath,
java.lang.String context,
java.lang.String path,
java.lang.String url,
java.net.URL[] URLsList)
|
Method Summary | |
---|---|
void |
addLinks(Id id,
java.util.Collection links)
Puts the outgoing links of a specific identifier in the networks and notifier with a notify message to the id owners. |
java.util.Collection |
getIncomingLinks(Id key)
Returns the incoming links of the specific key |
java.util.Collection |
getOutgoingLinks(Id key)
Returns the outgoing links of the specific key |
void |
insert(Id id,
java.io.Serializable value)
|
void |
insert(java.lang.String str,
java.io.Serializable value)
|
void |
insert(java.lang.String keywords,
java.lang.String key,
java.io.Serializable value)
SEARCH |
boolean |
insertSecure(Id id,
java.io.Serializable value,
java.lang.String pass)
SECURE |
boolean |
insertSecure(Id id,
java.io.Serializable value,
java.lang.String pass,
boolean getcheck)
SECURE |
void |
insertURL(Id id,
java.net.URL url)
|
void |
leave()
|
bunshin.util.ResultSortedQueue |
query(java.lang.String keywords)
|
void |
remove(Id id,
java.lang.String field)
|
void |
remove(java.lang.String keywords,
java.lang.String key)
|
void |
removeLinkListener(Id id)
Removes the remote callback which notifies the link updates |
void |
removeLinks(Id id,
java.util.Collection links)
Removes the outgoing links of a specific identifier in the networks and notifier with a notify message to the id owners. |
void |
removeURL(Id id)
|
java.io.Serializable |
retrieve(Id id)
|
java.io.Serializable |
retrieve(Id id,
java.lang.String field)
|
java.io.Serializable |
retrieve(java.lang.String key)
|
java.io.Serializable |
retrieveSecure(Id id,
java.lang.String pass)
|
java.net.URL |
retrieveURL(Id id)
|
void |
setLinkListener(Id id,
bunshin.RemoteListener listener)
Sets a remote callback which notifies the link updates |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DHTHandler(java.lang.String bunshinPropsPath, java.lang.String context, java.lang.String path, java.lang.String url, java.net.URL[] URLsList) throws RemoteException
RemoteException
Method Detail |
---|
public void insert(Id id, java.io.Serializable value) throws RemoteException
RemoteException
public void insert(java.lang.String str, java.io.Serializable value) throws RemoteException
RemoteException
public java.io.Serializable retrieve(Id id) throws RemoteException
RemoteException
public java.io.Serializable retrieve(Id id, java.lang.String field) throws RemoteException
RemoteException
public java.io.Serializable retrieve(java.lang.String key) throws RemoteException
RemoteException
public void remove(Id id, java.lang.String field) throws RemoteException
RemoteException
public void insertURL(Id id, java.net.URL url) throws RemoteException
RemoteException
public java.net.URL retrieveURL(Id id) throws RemoteException
RemoteException
public void removeURL(Id id) throws RemoteException
RemoteException
public boolean insertSecure(Id id, java.io.Serializable value, java.lang.String pass) throws RemoteException
RemoteException
public boolean insertSecure(Id id, java.io.Serializable value, java.lang.String pass, boolean getcheck) throws RemoteException
RemoteException
public java.io.Serializable retrieveSecure(Id id, java.lang.String pass) throws RemoteException
RemoteException
public void insert(java.lang.String keywords, java.lang.String key, java.io.Serializable value) throws RemoteException
RemoteException
public bunshin.util.ResultSortedQueue query(java.lang.String keywords) throws RemoteException
RemoteException
public void remove(java.lang.String keywords, java.lang.String key) throws RemoteException
RemoteException
public void leave() throws RemoteException
RemoteException
public void addLinks(Id id, java.util.Collection links) throws RemoteException
Id
- of the keyCollection
- of the links ids
RemoteException
public void removeLinks(Id id, java.util.Collection links) throws RemoteException
Id
- of the keyCollection
- of the links ids
RemoteException
public void setLinkListener(Id id, bunshin.RemoteListener listener) throws RemoteException
Id
- of the keyRemoteListener
- callback
RemoteException
public void removeLinkListener(Id id) throws RemoteException
Id
- of the key
RemoteException
public java.util.Collection getIncomingLinks(Id key) throws RemoteException
Id
- of the keyCollection
- of the links ids
RemoteException
public java.util.Collection getOutgoingLinks(Id key) throws RemoteException
Id
- of the keyCollection
- of the links ids
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |