Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Nov 22nd, 2010  |  syntax: Java  |  size: 0.68 KB  |  hits: 133  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. package de.fu.alp5.foreign.distributed;
  2.  
  3. import java.rmi.Remote;
  4. import java.rmi.RemoteException;
  5. import java.util.concurrent.CopyOnWriteArraySet;
  6.  
  7. /**
  8.  * Provides methods for remote invocation.
  9.  *
  10.  * @author Konrad Reiche
  11.  * @author David Bialik
  12.  *
  13.  */
  14. public interface TextAnalyzer extends Remote {
  15.  
  16.         /**
  17.          * Adds a new foreign word to the global foreign word list.
  18.          */
  19.         public void addForeignWord(String foreignWord) throws RemoteException;
  20.  
  21.         /**
  22.          * Gets an object copy of the global foreign word list in order to receive
  23.          * all foreign words collected so far.
  24.          */
  25.         public CopyOnWriteArraySet<String> getGlobalForeignWordSet()
  26.                         throws RemoteException;
  27.  
  28. }