|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.events.impl.XmlrpcEventService
public class XmlrpcEventService
XML-RPC server for Activemath event system
| Constructor Summary | |
|---|---|
XmlrpcEventService(EventManager manager)
|
|
| Method Summary | |
|---|---|
void |
onActivemathEvent(ActivemathEvent event)
Remote event delivery. |
boolean |
publishEvent(Hashtable props)
Remote event publication. |
int |
subscribe(String listenerUrl,
String refId,
Vector include,
Vector exclude)
Subscribe to remote events. |
int |
unsubscribe(String listenerUrl,
String refId)
Unsubscribe a remote client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlrpcEventService(EventManager manager)
| Method Detail |
|---|
public int subscribe(String listenerUrl,
String refId,
Vector include,
Vector exclude)
throws MalformedURLException
If a client has already subscribed with the same URL and refId,
the previous subscription is replaced.
A subscription should be terminated with a matching @see unsubscribe().
A subscription is terminated when there have been a certain number of consecutive delivery errors to a client (currently 3).
listenerUrl - - XMLRPC callback urlrefId - - reference id passed to the callbackinclude - - list of event tags or types to include in the subscriptionexclude - - list of event tags or types to exclude from the subscription
MalformedURLException
public int unsubscribe(String listenerUrl,
String refId)
Parameters must match a previous subscriptions. Errors are ignored.
listenerUrl - refId -
public void onActivemathEvent(ActivemathEvent event)
This will deliver an event that has happened locally to all remote subscribers.
onActivemathEvent in interface ActivemathEventListenerevent - the event to respond topublic boolean publishEvent(Hashtable props)
This will publish an event at the EventManager on behalf of a remote client. The following attributes will be overridden: ts, id, source.
Open issues:
props - map describing the event attributes
true on success
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||