org.jacorb.notification
Class EventChannelImpl
java.lang.Object
org.jacorb.notification.AbstractEventChannel
org.jacorb.notification.EventChannelImpl
- All Implemented Interfaces:
- AbstractEventChannelMBean, AdminPropertiesAdminOperations, org.picocontainer.Disposable, Disposable, EventChannelImplMBean, EventChannelOperations, EventChannelOperations, IServantLifecyle, JMXManageable, NotifyingDisposable, QoSAdminOperations
- public class EventChannelImpl
- extends AbstractEventChannel
- implements EventChannelOperations, EventChannelImplMBean
- Version:
- $Id: EventChannelImpl.java,v 1.34 2006/02/20 19:25:26 alphonse.bendt Exp $
- Author:
- Alphonse Bendt
Methods inherited from class org.jacorb.notification.AbstractEventChannel |
activate, deactivate, default_filter_factory, destroy, dispose, get_admin, get_all_consumeradmins, get_all_supplieradmins, get_consumeradmin_internal, get_qos, get_supplieradmin_internal, getDefaultConsumerAdminServant, getDefaultSupplierAdminServant, getID, getJMXNotificationTypes, getJMXObjectName, getMaxNumberOfConsumers, getMaxNumberOfSuppliers, getMBeanName, getNumberOfConnectedClients, getPOA, isDefaultConsumerAdminActive, isDefaultSupplierAdminActive, isPersistent, new_for_consumers_servant, new_for_suppliers_servant, registerDisposable, set_admin, set_qos, setJMXCallback, setMaxNumberOfConsumers, setMaxNumberOfSuppliers, validate_qos |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventChannelImpl
public EventChannelImpl(IFactory factory,
ORB orb,
POA poa,
org.apache.avalon.framework.configuration.Configuration config,
FilterFactory filterFactory,
EventChannelFactory factoryRef)
newServant
public Servant newServant()
- Specified by:
newServant
in interface IServantLifecyle
newConsumerAdmin
protected AbstractAdmin newConsumerAdmin(int id)
- Specified by:
newConsumerAdmin
in class AbstractEventChannel
newSupplierAdmin
protected AbstractSupplierAdmin newSupplierAdmin(int id)
- Specified by:
newSupplierAdmin
in class AbstractEventChannel
MyFactory
public EventChannelFactory MyFactory()
- The MyFactory attribute is a readonly attribute that maintains the object reference of the
event channel factory, which created a given Notification Service EventChannel instance.
- Specified by:
MyFactory
in interface EventChannelOperations
default_consumer_admin
public ConsumerAdmin default_consumer_admin()
- The default_consumer_admin attribute is a readonly attribute that maintains a reference to
the default ConsumerAdmin instance associated with the target EventChannel instance. Each
EventChannel instance has an associated default ConsumerAdmin instance, which exists upon
creation of the channel and is assigned the unique identifier of zero. Subsequently, clients
can create additional Event Service style ConsumerAdmin instances by invoking the inherited
operation, and additional Notification Service style ConsumerAdmin instances by invoking the
new_for_consumers operation defined by the EventChannel interface.
- Specified by:
default_consumer_admin
in interface EventChannelOperations
default_supplier_admin
public SupplierAdmin default_supplier_admin()
- The default_supplier_admin attribute is a readonly attribute that maintains a reference to
the default SupplierAdmin instance associated with the target EventChannel instance. Each
EventChannel instance has an associated default SupplierAdmin instance, which exists upon
creation of the channel and is assigned the unique identifier of zero. Subsequently, clients
can create additional Event Service style SupplierAdmin instances by invoking the inherited
for_suppliers operation, and additional Notification Service style SupplierAdmin instances by
invoking the new_for_suppliers operation defined by the EventChannel interface.
- Specified by:
default_supplier_admin
in interface EventChannelOperations
new_for_consumers
public ConsumerAdmin new_for_consumers(InterFilterGroupOperator filterGroupOperator,
IntHolder intHolder)
- The new_for_consumers operation is invoked to create a new Notification Service style
ConsumerAdmin instance. The operation accepts as an input parameter a boolean flag, which
indicates whether AND or OR semantics will be used when combining the filter objects
associated with the newly created ConsumerAdmin instance with those associated with a
supplier proxy, which was created by the ConsumerAdmin during the evaluation of each event
against a set of filter objects. The new instance is assigned a unique identifier by the
target EventChannel instance that is unique among all ConsumerAdmin instances currently
associated with the channel. Upon completion, the operation returns the reference to the new
ConsumerAdmin instance as the result of the operation, and the unique identifier assigned to
the new ConsumerAdmin instance as the output parameter.
- Specified by:
new_for_consumers
in interface EventChannelOperations
new_for_suppliers
public SupplierAdmin new_for_suppliers(InterFilterGroupOperator filterGroupOperator,
IntHolder intHolder)
- Specified by:
new_for_suppliers
in interface EventChannelOperations
get_consumeradmin
public ConsumerAdmin get_consumeradmin(int identifier)
throws AdminNotFound
- Specified by:
get_consumeradmin
in interface EventChannelOperations
- Throws:
AdminNotFound
get_supplieradmin
public SupplierAdmin get_supplieradmin(int identifier)
throws AdminNotFound
- Specified by:
get_supplieradmin
in interface EventChannelOperations
- Throws:
AdminNotFound
for_consumers
public ConsumerAdmin for_consumers()
- Return the consumerAdmin interface (event style)
- Specified by:
for_consumers
in interface EventChannelOperations
for_suppliers
public SupplierAdmin for_suppliers()
- Return the supplierAdmin interface (event style)
- Specified by:
for_suppliers
in interface EventChannelOperations
getMBeanType
public java.lang.String getMBeanType()
- Specified by:
getMBeanType
in class AbstractEventChannel
getIOR
public java.lang.String getIOR()
- Specified by:
getIOR
in interface EventChannelImplMBean