|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The IShareMe interface specifies the methods to start and stop your ShareMe peer as well as the method that allows users of this class to query the other peers.
A class implementing this interface should also provide a constructor taking a java.util.Properties object as argument and should throw the at.ac.tuwien.infosys.rnue.helpers.ShareMeException exception in case of an error (e.g., in case no properties are specified).
Method Summary | |
ISearchResult |
search(java.lang.String searchString)
This method queries all known hosts (i.e., all the hosts stored in the host list) for the given search string. |
void |
start()
This method starts all the threads used by your ShareMe peer and should throw the at.ac.tuwien.infosys.rnue.helpers.ShareMeException in case of an error. |
void |
stop()
This method stops all the threads used by your ShareMe peer and should throw the at.ac.tuwien.infosys.rnue.helpers.ShareMeException in case of an error. |
Method Detail |
public void start() throws ShareMeException
ShareMeException
public void stop() throws ShareMeException
ShareMeException
public ISearchResult search(java.lang.String searchString) throws ShareMeException
searchString
- a string describing the information we are
looking for
ShareMeException
- If the search string is null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |