An application binds an event filter to an event handler by creating an instance of the CIM_IndicationSubscription class. When a CIM_IndicationSubscription is created, indications for the events specified by the event filter are delivered.
The following example creates a subscription (filterdelivery) and defines the filter property to the filter object created in How to Create an Event Filter, and defines the handler property to the delivery object created in Example 6–2.
CIMClass filterdelivery = cc.getClass(new CIMObjectPath(“CIM_IndicationSubscription”), true, true, true, null); ci = filterdelivery.newInstance(): //Create a property called filter that refers to the filter instance. ci.setProperty("filter", new CIMValue(filter)); //Create a property called handler that refers to the delivery instance. ci.setProperty("handler", new CIMValue(delivery));