jaugment2.RememberanceAgent
Class RememberanceAgentService
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--jaugment2.jini.simpleService.simpleService
|
+--jaugment2.RememberanceAgent.RememberanceAgentService
- public class RememberanceAgentService
- extends simpleService
- implements java.rmi.Remote
A service wrapping the MIT-Remenberance-Agent and alowing to
integrate it into other services (like the text-editor)
- See Also:
- Serialized Form
| Fields inherited from class java.rmi.server.UnicastRemoteObject |
csf,
port,
portFactoryParamTypes,
portParamTypes,
serialVersionUID,
ssf |
| Fields inherited from class java.rmi.server.RemoteServer |
log,
logname,
serialVersionUID |
| Fields inherited from class java.rmi.server.RemoteObject |
ref,
serialVersionUID |
|
Method Summary |
RememberanceAgentServiceProxyIF.Answer[] |
ask(java.lang.String question,
int numretvals)
|
private java.util.LinkedList |
askme(java.lang.String base,
java.lang.String question,
int numretvals)
|
void |
destroy()
stop this service, destroy any persistent storage and exit |
java.lang.String |
getDocument(int docid,
java.lang.String base)
|
private java.lang.String |
getDocument2(java.lang.String base,
int docid)
|
private void |
loadMe()
|
void |
restart()
restart this service once it has been stopped |
void |
stop(boolean exit)
stop this service. |
| Methods inherited from class jaugment2.jini.simpleService.simpleService |
,
deinit,
deinitBindings,
finalize,
getProxy,
getServiceItem,
getStorageLocation,
init,
initBindings,
initBindings,
load,
save,
setStorageLocation |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone,
exportObject,
exportObject,
exportObject,
exportObject,
readObject,
reexport,
unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost,
getLog,
setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals,
getRef,
hashCode,
toString,
toStub,
writeObject |
| Methods inherited from class java.lang.Object |
getClass,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
proxy
RememberanceAgentServiceProxy proxy
last_question
private java.lang.String last_question
last_retval
private java.util.LinkedList last_retval
RememberanceAgentService
public RememberanceAgentService()
throws java.rmi.RemoteException
RememberanceAgentService
public RememberanceAgentService(net.jini.core.discovery.LookupLocator firstLocator)
throws java.rmi.RemoteException
restart
public void restart()
throws java.lang.Exception
- restart this service once it has been stopped
- Overrides:
- restart in class simpleService
- See Also:
stop
stop
public void stop(boolean exit)
throws java.lang.Exception
- stop this service. If exit is false all references to this
service are still valid but it has deregistered everywhere.
(this includes the RMI-activation-daemon)
- Overrides:
- stop in class simpleService
- Parameters:
exit - stop running- See Also:
restart,
destroy
destroy
public void destroy()
throws java.rmi.RemoteException
- stop this service, destroy any persistent storage and exit
- Overrides:
- destroy in class simpleService
loadMe
private void loadMe()
ask
public RememberanceAgentServiceProxyIF.Answer[] ask(java.lang.String question,
int numretvals)
askme
private java.util.LinkedList askme(java.lang.String base,
java.lang.String question,
int numretvals)
throws java.lang.Exception
getDocument
public java.lang.String getDocument(int docid,
java.lang.String base)
getDocument2
private java.lang.String getDocument2(java.lang.String base,
int docid)