org.eclipse.corona.client.ecf
Class EventRouter

java.lang.Object
  extended by org.eclipse.corona.collaboration.CollaborationEventRouter
      extended by org.eclipse.corona.collaboration.ecf.ECFEventRouter
          extended by org.eclipse.corona.client.ecf.EventRouter
All Implemented Interfaces:
IClientEventRouter, ICoronaEventRouter, org.osgi.service.event.EventHandler

public class EventRouter
extends ECFEventRouter
implements IClientEventRouter


Field Summary
static java.lang.String exceptionStatus
           
 
Fields inherited from class org.eclipse.corona.collaboration.ecf.ECFEventRouter
m_Context, m_Topics
 
Constructor Summary
EventRouter(org.osgi.framework.BundleContext context)
          Class constructor.
 
Method Summary
 void handleEvent(org.osgi.service.event.Event osgiEvent)
          Handle the event from OSGI.
 void processEvent(java.lang.Object event)
          Process events.
 void topicCreateCompleted(java.lang.String topicName)
          Set indication that the topic has been created on the server.
 
Methods inherited from class org.eclipse.corona.collaboration.ecf.ECFEventRouter
addTopicListener, dispose, getTopic, removeTopic, removeTopic, removeTopicListener, sendMessage, sendMessage, suppressSend, suppressSend
 
Methods inherited from class org.eclipse.corona.collaboration.CollaborationEventRouter
close, getID, postEvent, sendEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.corona.collaboration.ecf.interfaces.ICoronaEventRouter
addTopicListener, removeTopicListener, sendMessage
 

Field Detail

exceptionStatus

public static java.lang.String exceptionStatus
Constructor Detail

EventRouter

public EventRouter(org.osgi.framework.BundleContext context)
            throws java.lang.Exception
Class constructor. Performs basic initialization for the class instance.

Parameters:
context - Bundle context associated with the bundle that created the class instance.
Throws:
java.lang.Exception
Method Detail

processEvent

public void processEvent(java.lang.Object event)
Process events. The event is received from ALL defined groups and members.

Specified by:
processEvent in interface ICoronaEventRouter
Specified by:
processEvent in class ECFEventRouter
Parameters:
event - The event to be processed.

handleEvent

public void handleEvent(org.osgi.service.event.Event osgiEvent)
Handle the event from OSGI. The event is received from the local instance.

Specified by:
handleEvent in interface org.osgi.service.event.EventHandler
Specified by:
handleEvent in class ECFEventRouter
Parameters:
osgiEvent - The OSGI event to be handled.
See Also:
Event

topicCreateCompleted

public void topicCreateCompleted(java.lang.String topicName)
Set indication that the topic has been created on the server. This method is called by the shared object to indicate that the topic has been created.

Specified by:
topicCreateCompleted in interface IClientEventRouter
Parameters:
topic - Name of topic that was created on the server.

Copyright 2006 IBM Corporation and others.
All Rights Reserved.