FileDocCategorySizeDatePackage
NodeAnswer.javaAPI DocJBoss 4.2.11304Fri Jul 13 20:53:12 BST 2007org.jboss.ejb3.test.clusteredsession

NodeAnswer

public class NodeAnswer extends Object implements Serializable
A data class used to track the identity of the cluster node.
author
Ben Wang

Fields Summary
public VMID
nodeId
public Object
answer
Constructors Summary
public NodeAnswer(VMID node, Object answer)


        
   
      this.nodeId = node;
      this.answer = answer;
   
Methods Summary
public booleanequals(java.lang.Object obj)

      boolean same = (this == obj);
      
      if (!same && obj instanceof NodeAnswer)
      {
         NodeAnswer other = (NodeAnswer) obj;
         same = this.nodeId.equals(other.nodeId)
                && this.answer.equals(other.answer);
      }
      return same;
   
public java.lang.ObjectgetAnswer()

      return this.answer;
   
public java.rmi.dgc.VMIDgetNodeId()

      return this.nodeId;
   
public inthashCode()

      int result = 17;
      result = result * 29 + nodeId.hashCode();
      result = result * 29 + answer.hashCode();
      return result;
   
public java.lang.StringtoString()

      return "{ " + this.nodeId + " ; " + this.answer + " }";