Ticket #240 (closed enhancement: fixed)

Opened 5 months ago

Last modified 3 months ago

Monitoring multiple targets

Reported by: fcohen Owned by:
Priority: major Milestone:
Version: 5.2 Keywords:
Cc:

Description (last modified by mvillalobos) (diff)


Change History

  Changed 5 months ago by fcohen

  • description modified (diff)

  Changed 5 months ago by fcohen

  • type changed from defect to enhancement

  Changed 5 months ago by fcohen

Here is my proposed solution to ticket 240:

<monitoring enablednodes="true" enabledtarget="true" targethost="http://localhost">
    <targethost name="host1" location="http://192.168.1.102:8011/targethost1" enabled="true"/>
    <targethost name="host2" location="http://192.168.1.102/targethost1" enabled="true"/>
    <targethost name="host3" location="http://192.168.1.102/targethost1" enabled="false"/>
    <testnode name="node1" location="http://localhost:51111"/>
</monitoring>

The <targehost> entries use 51111 by default. This is overridden in the location attributed.

TestMaker ignores entries with the enabled attribute set to false.

-Frank

follow-up: ↓ 7   Changed 4 months ago by fcohen

  • version changed from 5.3 to 5.2

  Changed 3 months ago by jack

  • status changed from new to closed
  • resolution set to fixed

I've tested this ticket and it worked according to Max's directions.

  Changed 3 months ago by jack

  • status changed from closed to reopened
  • resolution deleted

in reply to: ↑ 4   Changed 3 months ago by mvillalobos

  • description modified (diff)

Replying to fcohen:

  Changed 3 months ago by mvillalobos

  • description modified (diff)

<monitoring enablednodes="true" enabledtarget="true" targethost="http://localhost">

<targethost name="host1" location="http://192.168.1.102:8011/targethost1" enabled="true"/> <targethost name="host2" location="http://192.168.1.102/targethost1" enabled="true"/> <targethost name="host3" location="http://192.168.1.102/targethost1" enabled="false"/>

</monitoring>

In the previous XML, there's a conflict between the targethost attribute in the <monitoring> tag and the list of targethost elements that go inside the <monitoring> tag.

When parsing the XML, you wrote reader.getMonitoring().getTargethost() and the compiler had a conflict because it didn't know if it was searching the targethost in the <monitoring> tag or the list of targethosts inside it.

To solve that, we used the tag <host> for the list of multiple hosts and left targethost for the one that is an attribute of the tag <monitoring>, so the XML will be like this:

<monitoring enablednodes="true" enabledtarget="true" targethost="http://localhost">

<host name="host1" location="http://192.168.1.102:8011/targethost1" enabled="true"/> <host name="host2" location="http://192.168.1.102/targethost1" enabled="true"/> <host name="host3" location="http://192.168.1.102/targethost1" enabled="false"/>

</monitoring>

  Changed 3 months ago by fcohen

Max wrote:

For ticket, 240, which Jack needs to check, there was a little thing to fix. ControlRunner? was throwing the information of all hosts together in a file named AppHost?, but now it throws the information of the multiple targets in separate files. It was a big mistake from my part not explaining this commit. It tends to happen when the commit is just a small change.

  Changed 3 months ago by fcohen

  • status changed from reopened to closed
  • resolution set to fixed

Confirmed working. Closing this ticket. -Frank

Note: See TracTickets for help on using tickets.