Simulating GeoEvents from a service

先决条件:

To complete this task, you must have an input that was configured using the Receive text from a TCP socket Input Connector. You must also have a feature layer that will serve as the source data for the simulation. Before completing this task, you should import the corresponding GeoEvent Definition from the feature layer.

GeoEvent Simulator can be used to simulate a stream of GeoEvents into GeoEvent Processor using a feature layer as the data source.

步骤:
  1. Open GeoEvent Simulator from the Windows Start menu.
  2. Select Layer from the drop-down list in the upper left corner of GeoEvent Simulator.
  3. Click the Load Layer button to the right of the text box next to the drop-down to open the Load From Layer dialog box.
  4. Click the button next to the Layer text box to open the Select Layer dialog box.
  5. In the Connection section, enter the information and credentials to connect to the ArcGIS Server (or ArcGIS Online account) that contains the layer you want to simulate.
  6. Click Connect to connect to the ArcGIS Server.
  7. Click the Browse to Layer button.

    The Custom Layer option should only be used by advanced users. If you know the complete URL specifying the layer you want to simulate, you can enter it in the URL text box in the Custom Layer section and skip the next steps.

  8. Select the layer you want to simulate by selecting the appropriate Folder, Service, and Layer from the drop-down lists.
  9. Click OK to select the layer.

    The Layer text box in the Load From Layer dialog box is now populated with the location of the simulation file.

  10. Now, you must connect to GeoEvent Processor to select the GeoEvent Definition that will be used to interpret the simulated data. Click the button next to the GeoEvent Definition drop-down list to open the GeoEvent Processor dialog box.
  11. Enter the server name and port to connect to GeoEvent Processor, and click OK. The typical port number used is 6143.

    You should notice that the GeoEvent Definition drop-down list is now populated with the complete list of GeoEvent Definitions available from GeoEvent Processor.

  12. Select the GeoEvent Definition that should be used to interpret the simulated features from the GeoEvent Definition drop-down list.
  13. Click Load to load the feature layer into GeoEvent Simulator.

    The text box at the top of the dialog box is now populated with the location of the feature layer.

  14. In the Server text box, enter the name of the server where GeoEvent Processor is running. In the second text box, enter the port number used by the input that is configured to receive GeoEvents as text.
  15. Click the Connect button to the right to connect to the input. The button initially shows a disconnected icon to indicate the current state.

    The icon on the button changes after GeoEvent Simulator is successfully connected to the input.

  16. The default playback rate is one GeoEvent per second (1,000 milliseconds). To change the default, enter the number of GeoEvents you want to send per burst to the left of the Messages Per label, and set the time interval between bursts (in milliseconds) to the right of the Messages Per label.

    Alternatively, you can choose to use the Real Rate. This option will simulate the playback of GeoEvents using the actual time intervals between GeoEvents that are represented in the raw data.

  17. Click Play to begin simulating GeoEvents into the input. After clicking Play, the icon on the button toggles to Pause.

    Click Pause to stop the playback at any time. You can also click the Step Forward button to step through the simulation sending only one GeoEvent at a time.

6/13/2014