use of org.omg.CosNotifyFilter.InvalidConstraint 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
}
Aggregations