Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Example: Aperi Reporter"

(Initial version)
 
m (Instructions: Updated links.)
Line 6: Line 6:
  
 
# Extract the latest 0.2 code to your Eclipse workspace.
 
# Extract the latest 0.2 code to your Eclipse workspace.
# Download the [[sample code]].
+
# Download the [[Media:Aperi_Example_Reporter.zip | sample code]].
 
# Import the sample
 
# Import the sample
 
#* File \-> Import \-> Existing Projects into Workspace
 
#* File \-> Import \-> Existing Projects into Workspace
#* Import both projects from the archive and click finish.<BR>[[Example_Reporter.jpg]]
+
#* Import both projects from the archive and click finish.<BR>[[Image:Aperi_Example_Reporter.jpg]]
 
# 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.
 
# 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.
 
# Start derby and the data server.
 
# Start derby and the data server.

Revision as of 13:33, 23 January 2007

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.
      Aperi 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