org.jacorb.notification.servant
Class StructuredProxyPullSupplierImpl

java.lang.Object
  extended byorg.jacorb.notification.servant.AbstractProxy
      extended byorg.jacorb.notification.servant.AbstractProxySupplier
          extended byorg.jacorb.notification.servant.StructuredProxyPullSupplierImpl
All Implemented Interfaces:
AbstractProxyMBean, AbstractProxySupplierMBean, java.lang.Comparable, org.apache.avalon.framework.configuration.Configurable, Disposable, org.picocontainer.Disposable, FilterAdminOperations, FilterStage, FilterStageSource, IServantLifecyle, JMXManageable, MessageConsumer, NotifyingDisposable, NotifySubscribeOperations, ProxySupplierOperations, QoSAdminOperations, StructuredProxyPullSupplierImplMBean, StructuredProxyPullSupplierOperations, StructuredPullSupplierOperations

public class StructuredProxyPullSupplierImpl
extends AbstractProxySupplier
implements StructuredProxyPullSupplierOperations, StructuredProxyPullSupplierImplMBean

Version:
$Id: StructuredProxyPullSupplierImpl.java,v 1.17 2006/01/12 22:34:54 alphonse.bendt Exp $
Author:
Alphonse Bendt

Nested Class Summary
 
Nested classes inherited from class org.jacorb.notification.interfaces.JMXManageable
JMXManageable.JMXCallback
 
Field Summary
protected static StructuredEvent UNDEFINED_STRUCTURED_EVENT
          undefined StructuredEvent that is returned on unsuccessful pull operations.
 
Fields inherited from class org.jacorb.notification.servant.AbstractProxy
config_, eventTypes_, logger_, offerManager_, qosSettings_, subscriptionManager_
 
Constructor Summary
StructuredProxyPullSupplierImpl(IAdmin admin, ORB orb, POA poa, org.apache.avalon.framework.configuration.Configuration conf, TaskProcessor taskProcessor, OfferManager offerManager, SubscriptionManager subscriptionManager, ConsumerAdmin consumerAdmin)
           
 
Method Summary
 void connect_structured_pull_consumer(StructuredPullConsumer consumer)
           
 void deliverPendingData()
           
 void disableDelivery()
           
 void disconnect_structured_pull_supplier()
           
protected  void disconnectClient()
          invoke the proxy specific disconnect method.
 void enableDelivery()
           
protected  long getCost()
           
 ProxyType MyType()
           
 Servant newServant()
           
 StructuredEvent pull_structured_event()
           
 StructuredEvent try_pull_structured_event(BooleanHolder hasEvent)
           
 
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, getPendingMessagesCount, getSubsequentFilterStages, getUpToMessages, hasMessageConsumer, hasPendingData, isRetryAllowed, messageQueued, MyAdmin, obtain_offered_types, queueMessage, 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.omg.CosNotifyChannelAdmin.ProxySupplierOperations
lifetime_filter, lifetime_filter, MyAdmin, obtain_offered_types, priority_filter, priority_filter, 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.NotifySubscribeOperations
subscription_change
 
Methods inherited from interface org.jacorb.notification.servant.AbstractProxyMBean
destroy, getClientIOR, getConnected, getErrorCounter, getInterFilterGroupOperator, getStatus, resetErrorCounter
 
Methods inherited from interface org.jacorb.notification.interfaces.MessageConsumer
destroy, isDestroyed
 

Field Detail

UNDEFINED_STRUCTURED_EVENT

protected static final StructuredEvent UNDEFINED_STRUCTURED_EVENT
undefined StructuredEvent that is returned on unsuccessful pull operations.

Constructor Detail

StructuredProxyPullSupplierImpl

public StructuredProxyPullSupplierImpl(IAdmin admin,
                                       ORB orb,
                                       POA poa,
                                       org.apache.avalon.framework.configuration.Configuration conf,
                                       TaskProcessor taskProcessor,
                                       OfferManager offerManager,
                                       SubscriptionManager subscriptionManager,
                                       ConsumerAdmin consumerAdmin)
                                throws org.apache.avalon.framework.configuration.ConfigurationException
Method Detail

MyType

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

connect_structured_pull_consumer

public void connect_structured_pull_consumer(StructuredPullConsumer consumer)
                                      throws AlreadyConnected
Specified by:
connect_structured_pull_consumer in interface StructuredProxyPullSupplierOperations
Throws:
AlreadyConnected

pull_structured_event

public StructuredEvent pull_structured_event()
                                      throws Disconnected
Specified by:
pull_structured_event in interface StructuredPullSupplierOperations
Throws:
Disconnected

try_pull_structured_event

public StructuredEvent try_pull_structured_event(BooleanHolder hasEvent)
                                          throws Disconnected
Specified by:
try_pull_structured_event in interface StructuredPullSupplierOperations
Throws:
Disconnected

disconnect_structured_pull_supplier

public void disconnect_structured_pull_supplier()
Specified by:
disconnect_structured_pull_supplier in interface StructuredPullSupplierOperations

disconnectClient

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

Specified by:
disconnectClient in class AbstractProxy

disableDelivery

public void disableDelivery()

enableDelivery

public void enableDelivery()

deliverPendingData

public void deliverPendingData()

newServant

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

getCost

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