com.atlassian.jira.cluster
Class Message

java.lang.Object
  extended by com.atlassian.jira.cluster.Message

public class Message
extends Object

Represents the set of messages that can be sent in the cluster

Since:
v6.1

Nested Class Summary
static class Message.MessageType
           
 
Field Summary
static String DELIMITER
           
 
Method Summary
 boolean equals(Object o)
           
static Message fromString(String message)
           
 Message.MessageType getMessageType()
           
 String getSupplementalInformation()
           
 int hashCode()
           
static Message importFinishedMessage(Boolean success)
           
static Message importStartedMessage()
           
static Message indexMessage(Message.MessageType messageType)
           
static Message pluginMessage(String supplementalInformation)
           
static Message refreshListenersMessage()
          Factory method for a message that tells nodes in a cluster to refresh their listeners.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DELIMITER

public static final String DELIMITER
See Also:
Constant Field Values
Method Detail

refreshListenersMessage

public static Message refreshListenersMessage()
Factory method for a message that tells nodes in a cluster to refresh their listeners.

Returns:
a non-null message
Since:
6.2

getSupplementalInformation

public String getSupplementalInformation()

fromString

public static Message fromString(String message)

pluginMessage

public static Message pluginMessage(String supplementalInformation)

indexMessage

public static Message indexMessage(Message.MessageType messageType)

importFinishedMessage

public static Message importFinishedMessage(Boolean success)

importStartedMessage

public static Message importStartedMessage()

getMessageType

public Message.MessageType getMessageType()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2014 Atlassian. All Rights Reserved.