1 28 29 package ist.coach.coachEmfServicesComponents.AlarmChannelProviderComposition; 30 import ist.coach.coachEmfCommon.Utils; 31 import ist.coach.coachEmfServices.EmfBasicLog.*; 32 33 39 public class objectDeletionSegImpl 40 extends ist.coach.coachEmfServicesComponents.AlarmChannelProviderComposition.objectDeletionSeg 41 { 42 48 54 public objectDeletionSegImpl() 55 { 56 } 57 58 64 67 public void 68 push(ist.coach.itut_q816Components.ObjectDeletion event) 69 { 70 String [] excludedEventTypes = get_main_segment().excludedeventTypes(); 74 for (int i = 0; i < excludedEventTypes.length; i++) { 75 if (excludedEventTypes[i].equals("ObjectDeletion")) 76 return; 77 } 78 String [] excludedEventSources = get_main_segment().excludedSourceClasses(); 79 for (int i = 0; i < excludedEventSources.length; i++) { 80 if (excludedEventSources[i].equals(event.sourceClass)) 81 return; 82 } 83 String [] eventTypes = get_main_segment().eventTypes(); 84 boolean eventSupported = false; 85 for (int i = 0; i < eventTypes.length; i++) { 86 if (eventTypes[i].equals("ObjectDeletion")) { 87 eventSupported = true; 88 break; 89 } 90 } 91 if (! eventSupported) return; 92 93 String [] eventSources = get_main_segment().sourceClasses(); 94 boolean eventSourceSupported = false; 95 for (int i = 0; i < eventSources.length; i++) { 96 if (eventSources[i].equals(event.sourceClass)) { 97 eventSourceSupported = true; 98 break; 99 } 100 } 101 if (!eventSourceSupported) return; 102 get_context().push_objectDeletion_alarm(event); 103 BasicLog logSupport = get_context().get_connection_basic_log(); 104 Utils.pretty_log(logSupport, Utils.name2string(event.source), 105 event.sourceClass, 106 (short) LogSeverity._Info, 107 "ObjectDeletion " + event.notificationIdentifier); 108 } 109 } 110 | Popular Tags |