Can I create multiple GeoEvent Definitions within the same adapter?

2052
3
02-25-2014 03:44 AM
MarkWebb
New Contributor II
I have a stream of data that is XML.  The XML data that I am receiving is following many different XML schemas and therefore the data is different.  Is is possible to create separate GeoEvent Definitions for each XML document type in the same adapter?  What are my options here?

Thanks,
Mark
0 Kudos
3 Replies
VladislavPlechnoy
New Contributor III
Mark,

The answer to your question is 'YES you can'.
GeoEvent Processor (GEP) gallery page has different examples of adapters that support multiple GeoEvent formats.
The only thing here to mention is that the number and structure of those different GeoEvent Definitions (GEDs) must be predefined.
When new adapter component is registered with the GEP it should declare all GEDs it produces. All GEDs that adapter produces should be specified in the adapter Definition. Take a look at this sample Trimble TAIP adapter definition xml. It is available on our public GitHub repository. It declares three different GEDs that Trimble TAIP adapter can produce https://github.com/Esri/trimble-for-geoevent/blob/master/trimble-taip-adapter/src/main/resources/ada... Similarly your adapter can support as many GEDs as you like.

Let me know if you need more details on this.

Vlad Plechnoy.
0 Kudos
MarkWebb
New Contributor II
Vlad,

Thank you very much.  I was not aware that I could define all this information in XML files.  So I learned 2 things today.

Cheers,
Mark
0 Kudos
VladislavPlechnoy
New Contributor III
Mark,

Actually there are two options for defining GEDs in the component definition code:
1) You can define them inside of component definition represented by an xml as you saw in the sample.
2) You can write an actual java class that does the same thing.

You choose which method you prefer but you need to pick the one.
Should you need more information on either one please let know.

Thanks,
Vlad.
0 Kudos