org.apache.qpid.test.framework
Class TestClientDetails

java.lang.Object
  extended by org.apache.qpid.test.framework.TestClientDetails

public class TestClientDetails
extends Object

TestClientDetails is used to encapsulate information about an interop test client. It pairs together the unique name of the client, and the route on which it listens to its control messages.

CRC Card
Responsibilities Collaborations
Record test clients control addresses together with their names.


Field Summary
 String clientName
          The test clients name.
 String privateControlKey
          The routing key of the test clients control topic.
 
Constructor Summary
TestClientDetails()
           
 
Method Summary
 boolean equals(Object o)
          Two TestClientDetails are considered to be equal, iff they have the same client name.
 int hashCode()
          Computes a hash code compatible with the equals method; based on the client name alone.
 String toString()
          Outputs the client name and address details.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

clientName

public String clientName
The test clients name.


privateControlKey

public String privateControlKey
The routing key of the test clients control topic.

Constructor Detail

TestClientDetails

public TestClientDetails()
Method Detail

equals

public boolean equals(Object o)
Two TestClientDetails are considered to be equal, iff they have the same client name.

Overrides:
equals in class Object
Parameters:
o - The object to compare to.
Returns:
If the object to compare to is a TestClientDetails equal to this one, false otherwise.

hashCode

public int hashCode()
Computes a hash code compatible with the equals method; based on the client name alone.

Overrides:
hashCode in class Object
Returns:
A hash code for this.

toString

public String toString()
Outputs the client name and address details. Mostly used for debugging purposes.

Overrides:
toString in class Object
Returns:
The client name and address.


Licensed to the Apache Software Foundation