org.eclipse.ecf.provider.generic
Class ContainerMessage

java.lang.Object
  extended by org.eclipse.ecf.provider.generic.ContainerMessage
All Implemented Interfaces:
java.io.Serializable

public class ContainerMessage
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
static class ContainerMessage.CreateMessage
           
static class ContainerMessage.CreateResponseMessage
           
static class ContainerMessage.JoinGroupMessage
           
static class ContainerMessage.LeaveGroupMessage
           
static class ContainerMessage.SharedObjectDisposeMessage
           
static class ContainerMessage.SharedObjectMessage
           
static class ContainerMessage.ViewChangeMessage
           
 
Constructor Summary
protected ContainerMessage(ID from, ID to, long seq, java.io.Serializable data)
           
 
Method Summary
static ContainerMessage createJoinGroupMessage(ID from, ID to, long seq, java.io.Serializable data)
           
static ContainerMessage createLeaveGroupMessage(ID from, ID to, long seq, java.io.Serializable data)
           
static ContainerMessage createSharedObjectCreateMessage(ID from, ID to, long seq, java.io.Serializable data)
           
static ContainerMessage createSharedObjectCreateResponseMessage(ID from, ID to, long contSeq, ID soID, java.lang.Throwable e, long sequence)
           
static ContainerMessage createSharedObjectDisposeMessage(ID from, ID to, long seq, ID sharedObjectID)
           
static ContainerMessage createSharedObjectMessage(ID from, ID to, long seq, ID fromSharedObject, java.io.Serializable data)
           
static ContainerMessage createViewChangeMessage(ID from, ID to, long seq, ID[] ids, boolean add, java.io.Serializable data)
           
 java.io.Serializable getData()
           
 ID getFromContainerID()
           
 long getSequence()
           
 ID getToContainerID()
           
 void setData(java.io.Serializable data)
           
 void setFromContainerID(ID fromContainerID)
           
 void setSequence(long sequence)
           
 void setToContainerID(ID toContainerID)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainerMessage

protected ContainerMessage(ID from,
                           ID to,
                           long seq,
                           java.io.Serializable data)
Method Detail

getData

public java.io.Serializable getData()
Returns:
Returns the data.

setData

public void setData(java.io.Serializable data)
Parameters:
data - The data to set.

getFromContainerID

public ID getFromContainerID()
Returns:
Returns the fromContainerID.

setFromContainerID

public void setFromContainerID(ID fromContainerID)
Parameters:
fromContainerID - The fromContainerID to set.

getSequence

public long getSequence()
Returns:
Returns the sequence.

setSequence

public void setSequence(long sequence)
Parameters:
sequence - The sequence to set.

getToContainerID

public ID getToContainerID()
Returns:
Returns the toContainerID.

setToContainerID

public void setToContainerID(ID toContainerID)
Parameters:
toContainerID - The toContainerID to set.

createViewChangeMessage

public static ContainerMessage createViewChangeMessage(ID from,
                                                       ID to,
                                                       long seq,
                                                       ID[] ids,
                                                       boolean add,
                                                       java.io.Serializable data)

createJoinGroupMessage

public static ContainerMessage createJoinGroupMessage(ID from,
                                                      ID to,
                                                      long seq,
                                                      java.io.Serializable data)

createLeaveGroupMessage

public static ContainerMessage createLeaveGroupMessage(ID from,
                                                       ID to,
                                                       long seq,
                                                       java.io.Serializable data)

createSharedObjectCreateMessage

public static ContainerMessage createSharedObjectCreateMessage(ID from,
                                                               ID to,
                                                               long seq,
                                                               java.io.Serializable data)

createSharedObjectCreateResponseMessage

public static ContainerMessage createSharedObjectCreateResponseMessage(ID from,
                                                                       ID to,
                                                                       long contSeq,
                                                                       ID soID,
                                                                       java.lang.Throwable e,
                                                                       long sequence)

createSharedObjectMessage

public static ContainerMessage createSharedObjectMessage(ID from,
                                                         ID to,
                                                         long seq,
                                                         ID fromSharedObject,
                                                         java.io.Serializable data)

createSharedObjectDisposeMessage

public static ContainerMessage createSharedObjectDisposeMessage(ID from,
                                                                ID to,
                                                                long seq,
                                                                ID sharedObjectID)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object