org.jacorb.notification.servant

Class ProxyPullSupplierImpl

Implemented Interfaces:
Configurable, Disposable, FilterAdminOperations, FilterStage, ManageableServant, MessageConsumer, NotifySubscribeOperations, ProxyPullSupplierOperations, ProxySupplierOperations, PullSupplierOperations, PullSupplierOperations, QoSAdminOperations
Known Direct Subclasses:
ECProxyPullSupplierImpl

public class ProxyPullSupplierImpl
extends AbstractProxySupplier
implements ProxyPullSupplierOperations

Version:
$Id: ProxyPullSupplierImpl.java,v 1.7 2004/05/06 12:39:59 nicolas Exp $

Author:
Alphonse Bendt

Field Summary

Fields inherited from class org.jacorb.notification.servant.AbstractProxySupplier

scheduleDeliverPendingMessagesOperation_

Fields inherited from class org.jacorb.notification.servant.AbstractProxy

admin_, channelContext_, id_, isIDPublic_, lifetimeFilter_, logger_, offerManager_, priorityFilter_, qosSettings_, subscriptionManager_, thisServant_

Method Summary

ProxyType
MyType()
Object
activate()
void
connect_any_pull_consumer(PullConsumer consumer)
void
deliverMessage(Message message)
Deliver Event to the underlying Consumer.
void
deliverPendingData()
void
disableDelivery()
protected void
disconnectClient()
void
disconnect_pull_supplier()
void
enableDelivery()
MessageConsumer
getMessageConsumer()
Servant
getServant()
List
getSubsequentFilterStages()
boolean
hasMessageConsumer()
Any
pull()
Any
try_pull(BooleanHolder hasEvent)

Methods inherited from class org.jacorb.notification.servant.AbstractProxySupplier

MyAdmin, configure, connectClient, disableDelivery, dispose, enableDelivery, enqueue, getAllMessages, getAtLeastMessages, getErrorThreshold, getExecutor, getMessageBlocking, getMessageNoBlock, getPendingMessagesCount, getUpToMessages, handleFailedPushOperation, hasPendingData, isEnabled, isPushSupplier, obtain_offered_types, preActivate, setTaskExecutor, setTaskExecutor, subscription_change

Methods inherited from class org.jacorb.notification.servant.AbstractProxy

MyType, _default_POA, add_filter, assertConnected, assertNotConnected, checkStillConnected, configure, connectClient, connectionResumed, connectionSuspended, deactivate, disconnectClient, dispose, getErrorCounter, getFilters, getID, getLifetimeFilter, getORB, getPOA, getPriorityFilter, getTaskProcessor, get_all_filters, get_filter, get_qos, handleDisconnected, hasInterFilterGroupOperatorOR, hasLifetimeFilter, hasPriorityFilter, incErrorCounter, isConnected, isDisposed, isIDPublic, isSuspended, lifetime_filter, lifetime_filter, preActivate, priority_filter, priority_filter, remove_all_filters, remove_filter, resetErrorCounter, resume_connection, setDisposeHook, setID, setORB, setOfferManager, setPOA, setSubscriptionManager, setTaskProcessor, set_qos, suspend_connection, validate_event_qos, validate_qos

Method Details

MyType

public ProxyType MyType()
Specified by:
MyType in interface ProxySupplierOperations
Overrides:
MyType in interface AbstractProxy


activate

public Object activate()
Specified by:
activate in interface ManageableServant


connect_any_pull_consumer

public void connect_any_pull_consumer(PullConsumer consumer)
            throws AlreadyConnected
Specified by:
connect_any_pull_consumer in interface ProxyPullSupplierOperations


deliverMessage

public void deliverMessage(Message message)
Deliver Event to the underlying Consumer. As our Consumer is a PullConsumer we simply put the Events in a Queue. The PullConsumer will pull the Events out of the Queue at a later time.
Specified by:
deliverMessage in interface MessageConsumer


deliverPendingData

public void deliverPendingData()
Specified by:
deliverPendingData in interface MessageConsumer


disableDelivery

public void disableDelivery()
Specified by:
disableDelivery in interface MessageConsumer
Overrides:
disableDelivery in interface AbstractProxySupplier


disconnectClient

protected void disconnectClient()
Overrides:
disconnectClient in interface AbstractProxy


disconnect_pull_supplier

public void disconnect_pull_supplier()
Specified by:
disconnect_pull_supplier in interface PullSupplierOperations


enableDelivery

public void enableDelivery()
Specified by:
enableDelivery in interface MessageConsumer
Overrides:
enableDelivery in interface AbstractProxySupplier


getMessageConsumer

public MessageConsumer getMessageConsumer()
Specified by:
getMessageConsumer in interface FilterStage


getServant

public Servant getServant()


getSubsequentFilterStages

public List getSubsequentFilterStages()
Specified by:
getSubsequentFilterStages in interface FilterStage


hasMessageConsumer

public boolean hasMessageConsumer()
Specified by:
hasMessageConsumer in interface FilterStage


pull

public Any pull()
            throws Disconnected
Specified by:
pull in interface PullSupplierOperations


try_pull

public Any try_pull(BooleanHolder hasEvent)
            throws Disconnected
Specified by:
try_pull in interface PullSupplierOperations