Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Example: Aperi Reporter

Revision as of 13:28, 23 January 2007 by Laverone.us.ibm.com (Talk | contribs) (Initial version)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Example Reporter

This example shows how the agent should send a request to the server. The agent handler contacts the data server and retrieves the server status. The example also includes the client code necessary to exercise the agent handler.

Instructions

  1. Extract the latest 0.2 code to your Eclipse workspace.
  2. Download the sample code.
  3. Import the sample
    • File \-> Import \-> Existing Projects into Workspace
    • Import both projects from the archive and click finish.
      Example_Reporter.jpg
  4. Run the Example_Reporter launch configuration. Note: Compare this launch configuration with the "RunAperiAgent" launch configuration. It should be the same as the agent launch configuration with the addition of the "Example_Reporter" bundle.
  5. Start derby and the data server.
  6. Run the Example_Reporter_Client launch configuration.
    • The console should output the message, "Request completed successfully.". If it does, check the agent log for the message, "HWM0001I: Server memory: {color:blue}<memory>{color}".
    • If the console displays an exception (1) check that the agent started successfully (2) correct the hostname and port information in the "example.AgentRequestHandler.client.Application" class.

Back to the top