org.jacorb.notification.servant
Class TypedProxyPullSupplierImpl

java.lang.Object
  extended by org.jacorb.notification.servant.AbstractProxy
      extended by org.jacorb.notification.servant.AbstractProxySupplier
          extended by org.jacorb.notification.servant.TypedProxyPullSupplierImpl
All Implemented Interfaces:
java.lang.Comparable, org.apache.avalon.framework.configuration.Configurable, Disposable, FilterStage, FilterStageSource, JMXManageable, MessageConsumer, NotifyingDisposable, IServantLifecyle, ITypedProxy

public class TypedProxyPullSupplierImpl
extends AbstractProxySupplier
implements ITypedProxy

Version:
$Id: TypedProxyPullSupplierImpl.java,v 1.16 2006/05/17 13:09:39 alphonse.bendt Exp $
Author:
Alphonse Bendt

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jacorb.notification.interfaces.JMXManageable
JMXManageable.JMXCallback
 
Field Summary
 
Fields inherited from class org.jacorb.notification.servant.AbstractProxy
config_, eventTypes_, logger_, offerManager_, qosSettings_, subscriptionManager_
 
Constructor Summary
TypedProxyPullSupplierImpl(ITypedAdmin admin, ConsumerAdmin consumerAdmin, org.omg.CORBA.ORB orb, org.omg.PortableServer.POA poa, org.apache.avalon.framework.configuration.Configuration conf, TaskProcessor taskProcessor, OfferManager offerManager, SubscriptionManager subscriptionManager, org.omg.DynamicAny.DynAnyFactory dynAnyFactory, Repository repository)
           
 
Method Summary
 void connect_typed_pull_consumer(PullConsumer pullConsumer)
           
 void deliverPendingData()
           
 void disconnect_pull_supplier()
           
 void disconnectClient()
          invoke the proxy specific disconnect method.
 org.omg.CORBA.Object get_typed_supplier()
           
protected  long getCost()
           
 int getPendingMessagesCount()
           
 java.lang.String getSupportedInterface()
           
 ProxyType MyType()
           
 org.omg.PortableServer.Servant newServant()
           
 org.omg.CORBA.Any pull()
           
 void queueMessage(Message message)
          Deliver a Message to the associated Consumer.
 org.omg.CORBA.Any try_pull(org.omg.CORBA.BooleanHolder booleanHolder)
           
 
Methods inherited from class org.jacorb.notification.servant.AbstractProxySupplier
clearPendingMessageQueue, clientDisconnected, compareTo, connectClient, dispose, enqueue, getAllMessages, getAtLeastMessages, getDiscardPolicy, getErrorThreshold, getMaxEventsPerConsumer, getMessageBlocking, getMessageConsumer, getMessageNoBlock, getMessageQueueFactory, getNumberOfDiscardedMessages, getOrderPolicy, getSubsequentFilterStages, getUpToMessages, hasMessageConsumer, hasPendingData, isRetryAllowed, messageQueued, MyAdmin, obtain_offered_types, removeListener, setMaxEventsPerConsumer, subscription_change
 
Methods inherited from class org.jacorb.notification.servant.AbstractProxy
activate, add_filter, checkDestroyStatus, checkIsConnected, checkIsNotConnected, checkStillConnected, configure, connectionResumed, connectionSuspended, deactivate, destroy, 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.jacorb.notification.interfaces.MessageConsumer
destroy, isDestroyed
 

Constructor Detail

TypedProxyPullSupplierImpl

public TypedProxyPullSupplierImpl(ITypedAdmin admin,
                                  ConsumerAdmin consumerAdmin,
                                  org.omg.CORBA.ORB orb,
                                  org.omg.PortableServer.POA poa,
                                  org.apache.avalon.framework.configuration.Configuration conf,
                                  TaskProcessor taskProcessor,
                                  OfferManager offerManager,
                                  SubscriptionManager subscriptionManager,
                                  org.omg.DynamicAny.DynAnyFactory dynAnyFactory,
                                  Repository repository)
                           throws org.apache.avalon.framework.configuration.ConfigurationException
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
Method Detail

getPendingMessagesCount

public int getPendingMessagesCount()
Overrides:
getPendingMessagesCount in class AbstractProxySupplier

pull

public org.omg.CORBA.Any pull()
                       throws Disconnected
Throws:
Disconnected

try_pull

public org.omg.CORBA.Any try_pull(org.omg.CORBA.BooleanHolder booleanHolder)
                           throws Disconnected
Throws:
Disconnected

disconnect_pull_supplier

public void disconnect_pull_supplier()

connect_typed_pull_consumer

public void connect_typed_pull_consumer(PullConsumer pullConsumer)
                                 throws AlreadyConnected
Throws:
AlreadyConnected

get_typed_supplier

public org.omg.CORBA.Object get_typed_supplier()

MyType

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

newServant

public org.omg.PortableServer.Servant newServant()
Specified by:
newServant in interface IServantLifecyle

queueMessage

public void queueMessage(Message message)
Description copied from interface: MessageConsumer
Deliver a Message to the associated Consumer.

Specified by:
queueMessage in interface MessageConsumer
Overrides:
queueMessage in class AbstractProxySupplier

deliverPendingData

public void deliverPendingData()

disconnectClient

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

Specified by:
disconnectClient in class AbstractProxy

getCost

protected long getCost()
Specified by:
getCost in class AbstractProxySupplier

getSupportedInterface

public java.lang.String getSupportedInterface()