All Packages Class Hierarchy This Package Previous Next Index
Interface edu.cmu.owl.so.notification.EventChannel
- public interface interface EventChannel
This interface represents the event channel interface. Through this interface
It is through this interface that all clients to the subsystem will talk to
the subsystem
- Version:
- 1.0
-
addPullConsumer()
- This method adds a pull consumer to the channel
-
addPullProducer(PullProducerHandle)
- This method adds a pull producer to this channel
-
addPushConsumer(PushConsumerHandle)
- This method adds a push producer to this channel.
-
addPushProducer()
- This method adds a push producer to the channel
-
getChannelName()
- This method returns the channel name
-
getNPullConsumers()
- This method returns the number of pull consumers in the channel
-
getNPullProducers()
- This method returns the number of pull producers in the channel
-
getNPushConsumers()
- This method returns the number of push consumers in the channel
-
getNPushProducers()
- This method returns the number of push producers in the channel
-
ping()
- This method is used for testing purposes
getChannelName
public abstract String getChannelName() throws RemoteException
- This method returns the channel name
- Returns:
- the name of this channel
- Throws: RemoteException
- if anything went wrong in the communication
getNPushProducers
public abstract int getNPushProducers() throws RemoteException
- This method returns the number of push producers in the channel
- Returns:
- the number of push producers in the channel
- Throws: RemoteException
- if anything went wrong in the communication
getNPushConsumers
public abstract int getNPushConsumers() throws RemoteException
- This method returns the number of push consumers in the channel
- Returns:
- the number of push consumers in the channel
- Throws: RemoteException
- if anything went wrong in the communication
getNPullProducers
public abstract int getNPullProducers() throws RemoteException
- This method returns the number of pull producers in the channel
- Returns:
- the number of pull producers in the channel
- Throws: RemoteException
- if anything went wrong in the communication
getNPullConsumers
public abstract int getNPullConsumers() throws RemoteException
- This method returns the number of pull consumers in the channel
- Returns:
- the number of pull consumers in the channel
- Throws: RemoteException
- if anything went wrong in the communication
addPushConsumer
public abstract void addPushConsumer(PushConsumerHandle consumerHandle) throws RemoteException
- This method adds a push producer to this channel.
- Parameters:
- consumerHandle - a remote object implemented by the consumer that the channel
will use to notify it
- Throws: RemoteException
- if anything went wrong in the communication
addPullProducer
public abstract void addPullProducer(PullProducerHandle producerHandle) throws RemoteException
- This method adds a pull producer to this channel
- Parameters:
- producerHandle - a remote object implemented by the producer that the channel
will use to contact for "pulling" events
- Throws: RemoteException
- if anything went wrong in the communication
addPushProducer
public abstract PushProducerHandle addPushProducer() throws RemoteException
- This method adds a push producer to the channel
- Returns:
- a remote object implemented by the Notification System that will be used
by the producer to "push" events
- Throws: RemoteException
- if anything went wrong in the communication
addPullConsumer
public abstract PullConsumerHandle addPullConsumer() throws RemoteException
- This method adds a pull consumer to the channel
- Returns:
- a remote object implemented by the Notification System that will be used
by the consumer to "pull" for events
- Throws: RemoteException
- if anything went wrong in the communication
ping
public abstract void ping() throws RemoteException
- This method is used for testing purposes
- Throws: RemoteException
- if anything went wrong in the communication
All Packages Class Hierarchy This Package Previous Next Index