No Description

20ddbdef431abe323402f9bcddabff21a804e788.svn-base 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package com.rdlze.radializebase.interfaces;
  2. import java.io.IOException;
  3. import java.io.Serializable;
  4. import java.rmi.Remote;
  5. import java.rmi.RemoteException;
  6. import org.apache.lucene.queryparser.classic.ParseException;
  7. /**
  8. * Class responsible for querying in musicbrainz lucene indexes
  9. * @author kledilson
  10. *
  11. */
  12. public interface MBSearchServerInterface extends Remote, Serializable{
  13. /**
  14. * Searches artist and song on musicbrainz lucene indexes
  15. * @param search String to be searched
  16. * @param index 0 for artist and 1 for song
  17. * @param hitsPerPage number of results for the search
  18. * @return array of xml with the responses
  19. * @throws ParseException
  20. * @throws IOException
  21. */
  22. public String[] search(String search, int index, int hitsPerPage) throws ParseException,
  23. IOException, RemoteException;
  24. /**
  25. * Searches for artist and song given and string that may contains artist and song
  26. * @param bigTitle String containing artist and song ex: black sabbath paranoid live 1982
  27. * @param hitsPerPage number of results for the search
  28. * @return array of xml with the responses
  29. * @throws RemoteException
  30. * @throws ParseException
  31. * @throws IOException
  32. */
  33. public String[] searchBigTitle(String bigTitle, int hitsPerPage) throws RemoteException, ParseException, IOException;
  34. /**
  35. * Method for registering remotes components
  36. * @param remoteObject
  37. * @param nameObject
  38. * @throws RemoteException
  39. */
  40. // public void registerRemoteObject(Remote remoteObject,
  41. // String nameObject) throws RemoteException;
  42. }