Overview of Testing Applications With the Load Generator and csvgen Adapter

26-2 Oracle Complex Event Processing Developers Guide The Event Inspector service uses a common HTTP pub-sub channel and server to trace events. A trace event must have its binding attribute set to outbound. For more information, see: ■ Section 26.1.3, Event Inspector Event Types ■ Section 26.1.4, Event Inspector HTTP Publish-Subscribe Channel and Server ■ Section 26.4, Tracing Events

26.1.2 Injecting Events

Using the Event Inspector service, you can inject events into any stage of the EPN. The Event Inspector service uses a HTTP pub-sub channel and server to inject events. An injected event must have its binding attribute set to inbound. Using an Event Inspector client, you can inject: ■ A single, simple event by type, such as the StockTick event. In this case, the specific event property types that you can use depends on the client. ■ A single event directly to the HTTP pub-sub channel as a JSON-formatted character string. In this case, you can use any event property that JSON can represent. ■ Multiple events using a file that contains one or more JSON-formatted character strings. In this case, you can use any event property that JSON can represent. The Event Inspector service client will parse the file and inject all its JSON strings to the HTTP pub-sub channel. You can use the GSON Java library to help you convert Java objects to JSON format when creating your input file. For more information, see: ■ http:www.json.org ■ http:code.google.compgoogle-gson ■ Section 26.1.3, Event Inspector Event Types ■ Section 26.1.4, Event Inspector HTTP Publish-Subscribe Channel and Server ■ Section 26.3, Injecting Events

26.1.3 Event Inspector Event Types

All Oracle CEP event types are supported: JavaBean, Java Class, MapEvent, and tuple. The Event Inspector service converts events to the JavaScript Object Notation JSON format before publishing to the trace channel and you must inject events in JSON format. JSON-formatted events must conform to the structure that Example 26–1 shows. Table 26–1 lists the required attributes.