Search in sources :

Example 1 with InvalidGrammar

use of org.omg.CosNotifyFilter.InvalidGrammar in project ACS by ACS-Community.

the class ACSRemoteAccess method createFilter.

/**
	 * This method can not be used in the current implementation of ACS logging
	 * But it will be useful for archiving.
	 */
private void createFilter() {
    // create filter
    if (eventChannel == null)
        return;
    FilterFactory filterFactory = eventChannel.default_filter_factory();
    Filter filter = null;
    try {
        filter = filterFactory.create_filter("EXTENDED_TCL");
    } catch (InvalidGrammar e) {
        System.out.println("Invalid grammar in ACSRemoteAccess::createFilter(): " + e);
    }
    // create constaints
    try {
        ConstraintInfo[] info = filter.add_constraints(createConstraints());
    } catch (InvalidConstraint e) {
        System.out.println("Invalid constraint in ACSRemoteAccess::createFilter(): " + e);
    }
// add constraints to filter
}
Also used : ConstraintInfo(org.omg.CosNotifyFilter.ConstraintInfo) Filter(org.omg.CosNotifyFilter.Filter) InvalidGrammar(org.omg.CosNotifyFilter.InvalidGrammar) InvalidConstraint(org.omg.CosNotifyFilter.InvalidConstraint) FilterFactory(org.omg.CosNotifyFilter.FilterFactory)

Aggregations

ConstraintInfo (org.omg.CosNotifyFilter.ConstraintInfo)1 Filter (org.omg.CosNotifyFilter.Filter)1 FilterFactory (org.omg.CosNotifyFilter.FilterFactory)1 InvalidConstraint (org.omg.CosNotifyFilter.InvalidConstraint)1 InvalidGrammar (org.omg.CosNotifyFilter.InvalidGrammar)1