org.jacorb.notification.servant
Class SequenceProxyPullConsumerImpl

java.lang.Object
  extended by org.jacorb.notification.servant.AbstractProxy
      extended by org.jacorb.notification.servant.StructuredProxyPullConsumerImpl
          extended by org.jacorb.notification.servant.SequenceProxyPullConsumerImpl
All Implemented Interfaces:
org.apache.avalon.framework.configuration.Configurable, Disposable, FilterStage, MessageSupplier, AbstractProxyConsumerI, ManageableServant, QoSAdminOperations, ProxyConsumerOperations, SequenceProxyPullConsumerOperations, StructuredProxyPullConsumerOperations, NotifyPublishOperations, SequencePullConsumerOperations, StructuredPullConsumerOperations, FilterAdminOperations

public class SequenceProxyPullConsumerImpl
extends StructuredProxyPullConsumerImpl
implements SequenceProxyPullConsumerOperations

Version:
$Id: SequenceProxyPullConsumerImpl.java,v 1.7 2004/05/06 12:40:00 nicolas Exp $
Author:
Alphonse Bendt

Field Summary
protected  MessageFactory messageFactory_
           
 
Fields inherited from class org.jacorb.notification.servant.StructuredProxyPullConsumerImpl
pollInterval_, pullSync_
 
Fields inherited from class org.jacorb.notification.servant.AbstractProxy
admin_, channelContext_, id_, isIDPublic_, lifetimeFilter_, logger_, offerManager_, priorityFilter_, qosSettings_, subscriptionManager_, thisServant_
 
Constructor Summary
SequenceProxyPullConsumerImpl(AbstractAdmin admin, ChannelContext channelContext)
           
 
Method Summary
protected  void checkMessageProperties(Message mesg)
          check if a Message is acceptable to the QoS Settings of this ProxyConsumer
 void connect_sequence_pull_supplier(SequencePullSupplier sequencePullSupplier)
           
protected  void connectClient(Object client)
           
 void disconnect_sequence_pull_consumer()
           
protected  void disconnectClient()
          invoke the proxy specific disconnect method.
 FilterStage getFirstStage()
           
 MessageConsumer getMessageConsumer()
          get the associated MessageConsumer or null.
 Servant getServant()
           
 java.util.List getSubsequentFilterStages()
          get FilterStages following this Node.
 boolean hasMessageConsumer()
          check if this FilterStage has a MessageConsumer associcated.
 boolean isStartTimeSupported()
           
 boolean isTimeOutSupported()
           
 SupplierAdmin MyAdmin()
           
 ProxyType MyType()
           
 void offer_change(EventType[] added, EventType[] removed)
           
 void preActivate()
           
protected  void runPullEventInternal()
          override superclass impl
protected  void schedulePullTask(MessageSupplier target)
           
 
Methods inherited from class org.jacorb.notification.servant.StructuredProxyPullConsumerImpl
activate, configure, connect_structured_pull_supplier, connectionResumed, connectionSuspended, disconnect_structured_pull_consumer, obtain_subscription_types, runPullMessage, startTask, stopTask
 
Methods inherited from class org.jacorb.notification.servant.AbstractProxy
_default_POA, add_filter, assertConnected, assertNotConnected, checkStillConnected, deactivate, dispose, get_all_filters, get_filter, get_qos, getErrorCounter, getFilters, getID, getLifetimeFilter, getORB, getPOA, getPriorityFilter, getTaskProcessor, handleDisconnected, hasInterFilterGroupOperatorOR, hasLifetimeFilter, hasPriorityFilter, incErrorCounter, isConnected, isDisposed, isIDPublic, isSuspended, lifetime_filter, lifetime_filter, priority_filter, priority_filter, remove_all_filters, remove_filter, resetErrorCounter, resume_connection, set_qos, setDisposeHook, setID, setOfferManager, setORB, setPOA, setSubscriptionManager, setTaskProcessor, 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.SequenceProxyPullConsumerOperations
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.omg.CosNotifyChannelAdmin.StructuredProxyPullConsumerOperations
resume_connection, suspend_connection
 
Methods inherited from interface org.jacorb.notification.interfaces.Disposable
dispose
 

Field Detail

messageFactory_

protected MessageFactory messageFactory_
Constructor Detail

SequenceProxyPullConsumerImpl

public SequenceProxyPullConsumerImpl(AbstractAdmin admin,
                                     ChannelContext channelContext)
Method Detail

MyType

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

disconnect_sequence_pull_consumer

public void disconnect_sequence_pull_consumer()
Specified by:
disconnect_sequence_pull_consumer in interface SequencePullConsumerOperations

connect_sequence_pull_supplier

public void connect_sequence_pull_supplier(SequencePullSupplier sequencePullSupplier)
                                    throws AlreadyConnected
Specified by:
connect_sequence_pull_supplier in interface SequenceProxyPullConsumerOperations
Throws:
AlreadyConnected

runPullEventInternal

protected void runPullEventInternal()
                             throws java.lang.InterruptedException,
                                    Disconnected
override superclass impl

Overrides:
runPullEventInternal in class StructuredProxyPullConsumerImpl
Throws:
java.lang.InterruptedException
Disconnected

disconnectClient

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

Overrides:
disconnectClient in class StructuredProxyPullConsumerImpl

getServant

public Servant getServant()
Overrides:
getServant in class StructuredProxyPullConsumerImpl

getSubsequentFilterStages

public final java.util.List getSubsequentFilterStages()
Description copied from interface: FilterStage
get FilterStages following this Node.

Specified by:
getSubsequentFilterStages in interface FilterStage

preActivate

public void preActivate()
Specified by:
preActivate in interface ManageableServant
Overrides:
preActivate in class AbstractProxy

schedulePullTask

protected void schedulePullTask(MessageSupplier target)

checkMessageProperties

protected void checkMessageProperties(Message mesg)
check if a Message is acceptable to the QoS Settings of this ProxyConsumer


getFirstStage

public FilterStage getFirstStage()
Specified by:
getFirstStage in interface AbstractProxyConsumerI

isTimeOutSupported

public boolean isTimeOutSupported()
Specified by:
isTimeOutSupported in interface AbstractProxyConsumerI

isStartTimeSupported

public boolean isStartTimeSupported()
Specified by:
isStartTimeSupported in interface AbstractProxyConsumerI

MyAdmin

public final SupplierAdmin MyAdmin()

getMessageConsumer

public final MessageConsumer getMessageConsumer()
Description copied from interface: FilterStage
get the associated MessageConsumer or null.

Specified by:
getMessageConsumer in interface FilterStage

hasMessageConsumer

public final boolean hasMessageConsumer()
Description copied from interface: FilterStage
check if this FilterStage has a MessageConsumer associcated.

Specified by:
hasMessageConsumer in interface FilterStage

offer_change

public void offer_change(EventType[] added,
                         EventType[] removed)
                  throws InvalidEventType
Specified by:
offer_change in interface NotifyPublishOperations
Throws:
InvalidEventType

connectClient

protected void connectClient(Object client)
Overrides:
connectClient in class AbstractProxy