org.jacorb.notification.servant
Class TypedProxyPullConsumerImpl

java.lang.Object
  extended byorg.jacorb.notification.servant.AbstractProxy
      extended byorg.jacorb.notification.servant.AbstractProxyConsumer
          extended byorg.jacorb.notification.servant.TypedProxyPullConsumerImpl
All Implemented Interfaces:
AbstractProxyConsumerMBean, AbstractProxyMBean, org.apache.avalon.framework.configuration.Configurable, Disposable, org.picocontainer.Disposable, FilterAdminOperations, FilterStage, FilterStageSource, IProxyConsumer, IServantLifecyle, ITypedProxy, JMXManageable, MessageSupplier, MessageSupplierDelegate, NotifyingDisposable, NotifyPublishOperations, ProxyConsumerOperations, PullConsumerOperations, PullConsumerOperations, QoSAdminOperations, TypedProxyPullConsumerImplMBean, TypedProxyPullConsumerOperations

public class TypedProxyPullConsumerImpl
extends AbstractProxyConsumer
implements TypedProxyPullConsumerOperations, MessageSupplier, MessageSupplierDelegate, ITypedProxy, TypedProxyPullConsumerImplMBean

Version:
$Id: TypedProxyPullConsumerImpl.java,v 1.14 2006/03/06 19:53:46 alphonse.bendt Exp $
Author:
Alphonse Bendt

Nested Class Summary
 
Nested classes inherited from class org.jacorb.notification.servant.MessageSupplierDelegate
MessageSupplierDelegate.PullResult
 
Nested classes inherited from class org.jacorb.notification.interfaces.JMXManageable
JMXManageable.JMXCallback
 
Field Summary
 
Fields inherited from class org.jacorb.notification.servant.AbstractProxyConsumer
supplierAdmin_
 
Fields inherited from class org.jacorb.notification.servant.AbstractProxy
config_, eventTypes_, logger_, offerManager_, qosSettings_, subscriptionManager_
 
Constructor Summary
TypedProxyPullConsumerImpl(ITypedAdmin admin, SupplierAdmin supplierAdmin, ORB orb, POA poa, org.apache.avalon.framework.configuration.Configuration config, TaskProcessor taskProcessor, MessageFactory messageFactory, OfferManager offerManager, SubscriptionManager subscriptionManager)
           
 
Method Summary
 void connect_typed_pull_supplier(TypedPullSupplier typedPullSupplier)
           
 void disconnect_pull_consumer()
           
 void disconnectClient()
          invoke the proxy specific disconnect method.
 java.lang.String getSupportedInterface()
           
 ProxyType MyType()
           
 Servant newServant()
           
 MessageSupplierDelegate.PullResult pullMessages()
          the implementation pulls one or more events from its Supplier and hands over the pulled events to the TaskProcessor.
 void queueMessages(MessageSupplierDelegate.PullResult data)
           
 void runPullMessage()
          pull one or more events from the Supplier and hands over the pulled events to the TaskProcessor.
 
Methods inherited from class org.jacorb.notification.servant.AbstractProxyConsumer
checkMessageProperties, clientDisconnected, connectClient, getFirstStage, getMessageConsumer, getMessageCount, getMessageFactory, getStartTimeSupported, getStopTimeSupported, getSubsequentFilterStages, hasMessageConsumer, MyAdmin, newMessages, obtain_subscription_types, offer_change, processMessage, removeListener, schedulePullTask, setSubsequentDestinations
 
Methods inherited from class org.jacorb.notification.servant.AbstractProxy
activate, add_filter, checkDestroyStatus, checkIsConnected, checkIsNotConnected, checkStillConnected, configure, connectionResumed, connectionSuspended, deactivate, destroy, dispose, get_all_filters, get_filter, get_qos, getClientIOR, getConnected, getErrorCounter, getFilters, getID, getInterFilterGroupOperator, getJMXNotificationTypes, getJMXObjectName, getLifetimeFilter, getMBeanName, getMBeanType, getORB, getPOA, getPriorityFilter, getStatus, getTaskProcessor, handleDisconnected, hasInterFilterGroupOperatorOR, hasLifetimeFilter, hasPriorityFilter, incErrorCounter, isDestroyed, isIDPublic, isSuspended, lifetime_filter, lifetime_filter, priority_filter, priority_filter, registerDisposable, remove_all_filters, remove_filter, resetErrorCounter, resume_connection, sendNotification, sendNotification, set_qos, setJMXCallback, suspend_connection, validate_event_qos, validate_qos
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.omg.CosTypedNotifyChannelAdmin.TypedProxyPullConsumerOperations
resume_connection, suspend_connection
 
Methods inherited from interface org.omg.CosNotifyChannelAdmin.ProxyConsumerOperations
MyAdmin, obtain_subscription_types, validate_event_qos
 
Methods inherited from interface org.omg.CosNotification.QoSAdminOperations
get_qos, set_qos, validate_qos
 
Methods inherited from interface org.omg.CosNotifyFilter.FilterAdminOperations
add_filter, get_all_filters, get_filter, remove_all_filters, remove_filter
 
Methods inherited from interface org.omg.CosNotifyComm.NotifyPublishOperations
offer_change
 
Methods inherited from interface org.jacorb.notification.interfaces.MessageSupplier
destroy
 
Methods inherited from interface org.jacorb.notification.servant.MessageSupplierDelegate
getConnected, isSuspended
 
Methods inherited from interface org.jacorb.notification.servant.AbstractProxyConsumerMBean
getMessageCount, getStartTimeSupported, getStopTimeSupported
 
Methods inherited from interface org.jacorb.notification.servant.AbstractProxyMBean
destroy, getClientIOR, getConnected, getErrorCounter, getInterFilterGroupOperator, getStatus, resetErrorCounter
 

Constructor Detail

TypedProxyPullConsumerImpl

public TypedProxyPullConsumerImpl(ITypedAdmin admin,
                                  SupplierAdmin supplierAdmin,
                                  ORB orb,
                                  POA poa,
                                  org.apache.avalon.framework.configuration.Configuration config,
                                  TaskProcessor taskProcessor,
                                  MessageFactory messageFactory,
                                  OfferManager offerManager,
                                  SubscriptionManager subscriptionManager)
Method Detail

connect_typed_pull_supplier

public void connect_typed_pull_supplier(TypedPullSupplier typedPullSupplier)
                                 throws AlreadyConnected,
                                        TypeError
Specified by:
connect_typed_pull_supplier in interface TypedProxyPullConsumerOperations
Throws:
AlreadyConnected
TypeError

pullMessages

public MessageSupplierDelegate.PullResult pullMessages()
Description copied from interface: MessageSupplierDelegate
the implementation pulls one or more events from its Supplier and hands over the pulled events to the TaskProcessor.

Specified by:
pullMessages in interface MessageSupplierDelegate

queueMessages

public void queueMessages(MessageSupplierDelegate.PullResult data)
Specified by:
queueMessages in interface MessageSupplierDelegate

disconnect_pull_consumer

public void disconnect_pull_consumer()
Specified by:
disconnect_pull_consumer in interface PullConsumerOperations

MyType

public ProxyType MyType()
Specified by:
MyType in interface ProxyConsumerOperations
Specified by:
MyType in class AbstractProxy

disconnectClient

public void disconnectClient()
Description copied from class: AbstractProxy
invoke the proxy specific disconnect method.

Specified by:
disconnectClient in class AbstractProxy

newServant

public Servant newServant()
Specified by:
newServant in interface IServantLifecyle

getSupportedInterface

public java.lang.String getSupportedInterface()
Specified by:
getSupportedInterface in interface TypedProxyPullConsumerImplMBean

runPullMessage

public void runPullMessage()
                    throws Disconnected
Description copied from interface: MessageSupplier
pull one or more events from the Supplier and hands over the pulled events to the TaskProcessor.

Specified by:
runPullMessage in interface MessageSupplier
Throws:
Disconnected