org.jacorb.notification.servant
Class AbstractProxyConsumer
java.lang.Object
org.jacorb.notification.servant.AbstractProxy
org.jacorb.notification.servant.AbstractProxyConsumer
- All Implemented Interfaces:
- org.jacorb.config.Configurable, FilterStage, FilterStageSource, JMXManageable, NotifyingDisposable, IServantLifecyle, AbstractProxyConsumerMBean, AbstractProxyMBean, IProxyConsumer, org.omg.CosNotification.QoSAdminOperations, org.omg.CosNotifyComm.NotifyPublishOperations, org.omg.CosNotifyFilter.FilterAdminOperations, org.picocontainer.Disposable
- Direct Known Subclasses:
- ProxyPullConsumerImpl, ProxyPushConsumerImpl, SequenceProxyPullConsumerImpl, SequenceProxyPushConsumerImpl, StructuredProxyPullConsumerImpl, StructuredProxyPushConsumerImpl, TypedProxyPullConsumerImpl, TypedProxyPushConsumerImpl
public abstract class AbstractProxyConsumer
- extends AbstractProxy
- implements IProxyConsumer, org.omg.CosNotifyComm.NotifyPublishOperations, AbstractProxyConsumerMBean
- Version:
- $Id: AbstractProxyConsumer.java,v 1.24 2011-05-10 15:40:39 nick.cross Exp $
- Author:
- Alphonse Bendt
|
Field Summary |
protected org.omg.CosNotifyChannelAdmin.SupplierAdmin |
supplierAdmin_
|
| Methods inherited from class org.jacorb.notification.servant.AbstractProxy |
activate, add_filter, checkDestroyStatus, checkIsConnected, checkIsNotConnected, checkStillConnected, configure, connectionResumed, connectionSuspended, deactivate, destroy, disconnectClient, 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, MyType, 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 |
supplierAdmin_
protected final org.omg.CosNotifyChannelAdmin.SupplierAdmin supplierAdmin_
AbstractProxyConsumer
protected AbstractProxyConsumer(IAdmin admin,
ORB orb,
POA poa,
org.jacorb.config.Configuration conf,
TaskProcessor taskProcessor,
MessageFactory messageFactory,
org.omg.CosNotifyChannelAdmin.SupplierAdmin supplierAdmin,
OfferManager offerManager,
SubscriptionManager subscriptionManager)
getMessageFactory
protected MessageFactory getMessageFactory()
getSubsequentFilterStages
public final List getSubsequentFilterStages()
- Specified by:
getSubsequentFilterStages in interface FilterStageSource
setSubsequentDestinations
public void setSubsequentDestinations(List list)
schedulePullTask
protected void schedulePullTask(MessageSupplier target)
checkMessageProperties
protected void checkMessageProperties(Message m)
- check if a Message is acceptable to the QoS Settings of this ProxyConsumer
getFirstStage
public FilterStage getFirstStage()
- Specified by:
getFirstStage in interface IProxyConsumer
getStopTimeSupported
public boolean getStopTimeSupported()
- Specified by:
getStopTimeSupported in interface AbstractProxyConsumerMBean- Specified by:
getStopTimeSupported in interface IProxyConsumer
getStartTimeSupported
public boolean getStartTimeSupported()
- Specified by:
getStartTimeSupported in interface AbstractProxyConsumerMBean- Specified by:
getStartTimeSupported in interface IProxyConsumer
MyAdmin
public final org.omg.CosNotifyChannelAdmin.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(org.omg.CosNotification.EventType[] added,
org.omg.CosNotification.EventType[] removed)
throws org.omg.CosNotifyComm.InvalidEventType
- Specified by:
offer_change in interface org.omg.CosNotifyComm.NotifyPublishOperations
- Throws:
org.omg.CosNotifyComm.InvalidEventType
obtain_subscription_types
public final org.omg.CosNotification.EventType[] obtain_subscription_types(org.omg.CosNotifyChannelAdmin.ObtainInfoMode obtainInfoMode)
removeListener
protected void removeListener()
- removes the listener. subscription_change will no more be issued to the connected Supplier
- Specified by:
removeListener in class AbstractProxy
clientDisconnected
protected final void clientDisconnected()
- Specified by:
clientDisconnected in class AbstractProxy
connectClient
protected void connectClient(Object client)
- Overrides:
connectClient in class AbstractProxy
processMessage
protected void processMessage(Message mesg)
getMessageCount
public final int getMessageCount()
- Specified by:
getMessageCount in interface AbstractProxyConsumerMBean
newMessages
protected Message[] newMessages(org.omg.CosNotification.StructuredEvent[] events)
Copyright © 2012 JacORB. All Rights Reserved.