use of org.omg.CosNotification.EventHeader in project ACS by ACS-Community.
the class StructuredEventCreator method getCORBAEvent.
/**
* Method used to create a pre-filled CORBA event.
*
* @param typeName
* The structured event's type_name.
* @param eventName
* Name of the event.
* @return A pre-filled CORBA event.
*/
private StructuredEvent getCORBAEvent(String typeName, String eventName) {
// return value
StructuredEvent event = new StructuredEvent();
// event.header.fixed_header.event_type
String channelDomain = alma.acscommon.ALMADOMAIN.value;
EventType event_type = new EventType(channelDomain, typeName);
//
FixedEventHeader fixed_header = new FixedEventHeader(event_type, eventName);
// event.header.variable_header
Property[] variable_header = new Property[0];
// event.header
event.header = new EventHeader(fixed_header, variable_header);
return event;
}
use of org.omg.CosNotification.EventHeader in project ACS by ACS-Community.
the class NCPublisher method getCORBAEvent.
/**
* Method used to create a pre-filled CORBA event.
*
* @param typeName
* The structured event's type_name.
* @param eventName
* Name of the event.
* @return A pre-filled CORBA event.
*/
protected StructuredEvent getCORBAEvent(String typeName, String eventName) {
// return value
StructuredEvent event = new StructuredEvent();
// event.header.fixed_header.event_type
String channelDomain = alma.acscommon.ALMADOMAIN.value;
EventType event_type = new EventType(channelDomain, typeName);
FixedEventHeader fixed_header = new FixedEventHeader(event_type, eventName);
// event.header.variable_header
Property[] variable_header = new Property[0];
// event.header
event.header = new EventHeader(fixed_header, variable_header);
return event;
}
Aggregations