org.objectweb.joram.mom.dest
Class ClusterTest

java.lang.Object
  extended by fr.dyade.aaa.agent.Notification
      extended by org.objectweb.joram.mom.dest.ClusterTest
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

 class ClusterTest
extends Notification

A ClusterTest instance is a notification sent by a topic to another topic for checking if it might be part of a cluster.


Field Summary
(package private)  java.util.Set friends
          Set containing AgentId of topics already in the cluster
private  java.lang.String replyMsgId
          The generated JMS message id. for the reply
private  AgentId replyTo
          The JMS destination to send the reply
private  java.lang.String requestMsgId
          The JMS message id. of the request needed for the reply
private static long serialVersionUID
          define serialVersionUID for interoperability
 
Fields inherited from class fr.dyade.aaa.agent.Notification
detachable, detached, persistent
 
Constructor Summary
ClusterTest(java.util.Set friends, AgentId replyTo, java.lang.String requestMsgId, java.lang.String replyMsgId)
          Constructs a ClusterTest instance.
 
Method Summary
 java.lang.String getReplyMsgId()
          Returns the generated JMS message id. for the reply.
 AgentId getReplyTo()
          Returns the JMS destination to send the reply.
 java.lang.String getRequestMsgId()
          Returns the JMS message id. of the request needed for the reply.
 
Methods inherited from class fr.dyade.aaa.agent.Notification
clone, getContext, getDeadNotificationAgentId, getExpiration, getMessageId, getPriority, isPersistent, setContext, setDeadNotificationAgentId, setExpiration, setPriority, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
define serialVersionUID for interoperability

See Also:
Constant Field Values

friends

java.util.Set friends
Set containing AgentId of topics already in the cluster


replyTo

private AgentId replyTo
The JMS destination to send the reply


requestMsgId

private java.lang.String requestMsgId
The JMS message id. of the request needed for the reply


replyMsgId

private java.lang.String replyMsgId
The generated JMS message id. for the reply

Constructor Detail

ClusterTest

ClusterTest(java.util.Set friends,
            AgentId replyTo,
            java.lang.String requestMsgId,
            java.lang.String replyMsgId)
Constructs a ClusterTest instance.

Parameters:
requester - The original requester.
friends - The current members of the cluster.
replyTo - The JMS destination to send the reply.
requestMsgId - The JMS message id. of the request needed for the reply.
replyMsgId - The generated JMS message id. for the reply.
Method Detail

getReplyTo

public AgentId getReplyTo()
Returns the JMS destination to send the reply.

Returns:
The JMS destination to send the reply.

getRequestMsgId

public java.lang.String getRequestMsgId()
Returns the JMS message id. of the request needed for the reply.

Returns:
The JMS message id. of the request needed for the reply.

getReplyMsgId

public java.lang.String getReplyMsgId()
Returns the generated JMS message id. for the reply.

Returns:
The generated JMS message id. for the reply.


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.