reloadEventDefinitions
The reloadEventDefinitions method stops all started event publishers, reloads event definitions from the configuration file and starts all valid event publishers with an auto start.
You can make changes in the configuration file and reflect changes without restarting the TIBCO Hawk Agent.
Event Definitions XSD Details
File: <HAWK_HOME>/plugin/commonlogging/eventdefs.xsd
Content:
<?xml version="1.0" encoding="UTF-8"?> <xsd:schema targetNamespace="http://xsd.tns.tibco.com/hawk/cleventpublisher/eventdef" elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:eventdef="http://xsd.tns.tibco.com/hawk/cleventpublisher/eventdef"> <xsd:annotation> <xsd:documentation>Provide details of Event Publisher</xsd:documentation> </xsd:annotation> <xsd:complexType name="EventSourceType"> <xsd:attribute name="id" type="xsd:string" use="required"></xsd:attribute> <xsd:attribute name="methodName" type="xsd:string" use="required"></xsd:attribute> <xsd:attribute name="microAgentName" type="xsd:string" use="required"></xsd:attribute> </xsd:complexType> <xsd:complexType name="EventDataSourceType"> <xsd:sequence> <xsd:element name="EventSource" type="eventdef:EventSourceType" minOccurs="1" maxOccurs="unbounded"></xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="EventDefinitionsType"> <xsd:sequence> <xsd:element name="EventPublishers" type="eventdef:EventPublishersType" minOccurs="1" maxOccurs="1"> </xsd:element> <xsd:element name="EventDataSource" type="eventdef:EventDataSourceType" minOccurs="1" maxOccurs="1"></xsd:element> <xsd:element name="CommonLoggingConfigs" type="eventdef:CommonLoggingConfigsType" minOccurs="1" maxOccurs="1"> </xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="EventPublisherType"> <xsd:sequence> <xsd:element name="CommonLoggingConfigRef" type="eventdef:CommonLoggingConfigRefType" minOccurs="1" maxOccurs="1"> </xsd:element> <xsd:element name="EventDataSourceRef" type="eventdef:EventDataSourceRefType" minOccurs="1" maxOccurs="1"> </xsd:element> <xsd:element name="EventOutput" type="eventdef:EventOutputType" minOccurs="1" maxOccurs="1"> </xsd:element> <xsd:element name="EventSubscribe" type="eventdef:EventSubscribeType" minOccurs="1" maxOccurs="1"> </xsd:element> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required"></xsd:attribute> <xsd:attribute name="validateAtStartup" type="xsd:boolean" use="optional" default="false"></xsd:attribute> </xsd:complexType> <xsd:complexType name="CommonLoggingConfigType"> <xsd:annotation> <xsd:documentation>Common Logging details.</xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="ExtendedModel" type="eventdef:ExtendedModelType" minOccurs="1" maxOccurs="1"></xsd:element> </xsd:sequence> <xsd:attribute name="id" type="xsd:string" use="required"></xsd:attribute> <xsd:attribute name="loggerName" type="xsd:string" use="required"></xsd:attribute> </xsd:complexType> <xsd:element name="EventDefinitions" type="eventdef:EventDefinitionsType"></xsd:element> <xsd:complexType name="EventDataSourceRefType"> <xsd:sequence> <xsd:element name="EventSourceRef" type="eventdef:EventSourceRefType" minOccurs="1" maxOccurs="unbounded"></xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="EventSourceRefType"> <xsd:sequence> <xsd:element name="InputParameters" type="eventdef:InputParametersType" minOccurs="0" maxOccurs="1"></xsd:element> <xsd:element name="EventCorrelation" type="eventdef:EventCorrelationType" minOccurs="0" maxOccurs="1"></xsd:element> </xsd:sequence> <xsd:attribute name="ref" type="xsd:string" use="required"></xsd:attribute> </xsd:complexType> <xsd:complexType name="InputParametersType"> <xsd:sequence> <xsd:element name="InputParameter" type="eventdef:InputParameterType" minOccurs="1" maxOccurs="unbounded"></xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="InputParameterType"> <xsd:simpleContent> <xsd:extension base="xsd:string"> <xsd:attribute name="name" type="xsd:string" use="required"></xsd:attribute> </xsd:extension> </xsd:simpleContent> </xsd:complexType> <xsd:complexType name="EventOutputType"> <xsd:sequence> <xsd:element name="EventElements" type="eventdef:EventElementsType" minOccurs="1" maxOccurs="1"></xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="EventElementsType"> <xsd:choice> <xsd:element name="EventElement" type="eventdef:EventElementType" minOccurs="0" maxOccurs="unbounded"> </xsd:element> <xsd:element name="eventSourceRefs" type="xsd:string" minOccurs="1" maxOccurs="1"></xsd:element> </xsd:choice> </xsd:complexType> <xsd:complexType name="EventElementType"> <xsd:attribute name="source" type="xsd:string" use="required"></xsd:attribute> <xsd:attribute name="output" type="xsd:string" use="optional"></xsd:attribute> </xsd:complexType> <xsd:complexType name="EventSubscribeType"> <xsd:sequence> <xsd:element name="IntervalTime" type="xsd:int" minOccurs="0" maxOccurs="1" nillable="false"> </xsd:element> </xsd:sequence> <xsd:attribute name="sourceEventId" type="xsd:string" use="required"></xsd:attribute> <xsd:attribute name="autoStart" type="xsd:boolean" use="optional" default="false"></xsd:attribute> </xsd:complexType> <xsd:complexType name="FilterType"> <xsd:attribute name="identifier" type="xsd:string" use="required"></xsd:attribute> <xsd:attribute name="operator" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="="></xsd:enumeration> <xsd:enumeration value=">"></xsd:enumeration> <xsd:enumeration value="<"></xsd:enumeration> <xsd:enumeration value="=>"></xsd:enumeration> <xsd:enumeration value="<="></xsd:enumeration> <xsd:enumeration value="!="></xsd:enumeration> </xsd:restriction> </xsd:simpleType> </xsd:attribute> </xsd:complexType> <xsd:complexType name="LoggerType"> <xsd:attribute name="name" type="xsd:string" use="required"></xsd:attribute> <xsd:attribute name="configFile" type="xsd:string" use="optional"></xsd:attribute> </xsd:complexType> <xsd:complexType name="ExtendedModelType"> <xsd:sequence> <xsd:element name="Classpath" type="eventdef:ClasspathType" minOccurs="0" maxOccurs="1"></xsd:element> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required"></xsd:attribute> <xsd:attribute name="packageName" type="xsd:string" use="required"> </xsd:attribute> </xsd:complexType> <xsd:complexType name="EventPublishersType"> <xsd:sequence> <xsd:element name="EventPublisher" type="eventdef:EventPublisherType" minOccurs="1" maxOccurs="unbounded"></xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="CommonLoggingConfigsType"> <xsd:sequence> <xsd:element name="CommonLoggingConfig" type="eventdef:CommonLoggingConfigType" minOccurs="1" maxOccurs="unbounded"> </xsd:element> </xsd:sequence> <xsd:attribute name="logConfigFile" type="xsd:string" use="required"></xsd:attribute> </xsd:complexType> <xsd:complexType name="CommonLoggingConfigRefType"> <xsd:attribute name="ref" type="xsd:string" use="required"></xsd:attribute> </xsd:complexType> <xsd:complexType name="EventCorrelationType"> <xsd:annotation> <xsd:documentation>To correlate with other Event Data Source </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:extension base="xsd:string"> <xsd:attribute name="returnElement" type="xsd:string" use="required"> <xsd:annotation> <xsd:documentation>Return Element of Hawk MicroAgent Method </xsd:documentation> </xsd:annotation></xsd:attribute> </xsd:extension> </xsd:simpleContent> </xsd:complexType> <xsd:complexType name="ClasspathType"> <xsd:sequence> <xsd:element name="path" type="xsd:string" minOccurs="1" maxOccurs="unbounded"></xsd:element> </xsd:sequence> </xsd:complexType> </xsd:schema>
Copyright © Cloud Software Group, Inc. All rights reserved.