Tuxedo
0

Using the CORBA Notification Service

 Previous Next Contents Index View as PDF  

CosNotifyFilter::FilterFactory::create_filter

Synopsis

Determines which events are delivered to a subscription.

OMG IDL

Filter create_filter (
in string constraint_grammar)
raises (InvalidGrammar);

Exceptions

CosNotifyFilter::InvalidGrammar

Indicates the constraint_grammar is not supported.

Description

Used in the subscriber application to create a new filter object. This filter is used to determine which events are delivered to a subscription. The subscriber must set up the filter and add it to the proxy within five minutes; otherwise, the filter will be destroyed. The filter grammar must be set to Tobj_Notification::Constraint_grammar; otherwise, the InvalidGrammar exception is raised.

Return Value

Returns the new filter's object reference.

Examples

Note: Code examples shown here are abbreviated. For complete code examples, see "Creating a Subscription" on page  4-16.

C++ code example:

filter_factory->create_filter(
Tobj_Notification::CONSTRAINT_GRAMMAR
);

Java code example:

CosNotifyChannelAdmin::StructuredProxyPushSupplier Class

This class is used by event subscriber applications. The OMG IDL for this class is as follows:

Module CosNotifyChannelAdmin
{
interface StructuredProxyPushSupplier :
ProxySupplier,
CosNotifyComm::StructuredPushSupplier {
    void connect_structured_push_consumer (
in CosNotifyComm::StructuredPushConsumer push_consumer)
raises(CosEventChannelAdmin::AlreadyConnected,
CosEventChannelAdmin::TypeError );
};
// The following operations are inherited.
void set_qos(in QoSProperties qos)
raises (UnsupportedQoS);
FilterID add_filter (in Filter new_filter );
Filter get_filter( in FilterID filter )
raises ( FilterNotFound);
void disconnect_structured_push_supplier();
readonly attribute ProxyType MyType;
};
}; //CosNotifyChannelAdmin

 

Back to Top Previous Next
Contact e-docsContact BEAwebmasterprivacy