cgl.narada.wsinfra.wsr.storage.impl
Class WsrGroupTerminationInfoImpl

java.lang.Object
  extended by cgl.narada.wsinfra.wsr.storage.impl.WsrGroupTerminationInfoImpl
All Implemented Interfaces:
WsrGroupTerminationInfo

public class WsrGroupTerminationInfoImpl
extends Object
implements WsrGroupTerminationInfo


Constructor Summary
WsrGroupTerminationInfoImpl()
           
WsrGroupTerminationInfoImpl(String groupId)
           
WsrGroupTerminationInfoImpl(String groupId, boolean isGroupComplete, boolean isGroupClosed, boolean isGroupRemoved, boolean isGroupExpiryTimePassed, boolean isGroupMaxIdleDurationPassed, boolean hasLastMessageOfGroup, boolean hasMaxSequenceNumber, boolean isMessageExpired, boolean isMessageFaulted, boolean isSource)
           
 
Method Summary
 String getGroupId()
          Retrieve the groupId.
 boolean hasLastMessageOfGroup()
          Checks to see if the group has Last Message
 boolean hasMaxSequenceNumber()
          Checks to see if the Max Sequence Number is reached
 boolean isGroupClosed()
          Checks to see if the group is closed
 boolean isGroupComplete()
          Checks to see if the group is complete
 boolean isGroupExpiryTimePassed()
          Checks to see if the groupExpiryTime has passed
 boolean isGroupMaxIdleDurationPassed()
          Checks to see if the groupMaxIdleDuration has passed
 boolean isGroupRemoved()
          Checks to see if the group is removed
 boolean isMessageExpired()
          Checks to see if the message is Expired
 boolean isMessageFaulted()
          Checks to see if the message is Faulted
 boolean isSource()
          Checks if this node is the source of the group in question
 void setGroupClosed(boolean isGroupClosed)
          sets isGroupClosed parameter
 void setGroupComplete(boolean isGroupComplete)
          sets isGroupComplete parameter
 void setGroupExpiryTimePassed(boolean isGroupExpiryTimePassed)
          sets isGroupExpiryTimePassed parameter
 void setGroupId(String groupId)
          sets the groupId.
 void setGroupMaxIdleDurationPassed(boolean isGroupMaxIdleDurationPassed)
          sets isGroupMaxIdleDurationPassed parameter
 void setGroupRemoved(boolean isGroupRemoved)
          sets isGroupRemoved parameter
 void setIsSource(boolean isSource)
          sets the isSource parameter
 void setLastMessageOfGroup(boolean hasLastMessageOfGroup)
          sets hasLastMessageOfGroup parameter
 void setMaxSequenceNumber(boolean hasMaxSequenceNumber)
          sets isMaxSequenceNumber parameter
 void setMessageExpired(boolean isMessageExpired)
          sets isMessageExpired parameter
 void setMessageFaulted(boolean isMessageFaulted)
          sets isMessageFaulted parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsrGroupTerminationInfoImpl

public WsrGroupTerminationInfoImpl()

WsrGroupTerminationInfoImpl

public WsrGroupTerminationInfoImpl(String groupId)

WsrGroupTerminationInfoImpl

public WsrGroupTerminationInfoImpl(String groupId,
                                   boolean isGroupComplete,
                                   boolean isGroupClosed,
                                   boolean isGroupRemoved,
                                   boolean isGroupExpiryTimePassed,
                                   boolean isGroupMaxIdleDurationPassed,
                                   boolean hasLastMessageOfGroup,
                                   boolean hasMaxSequenceNumber,
                                   boolean isMessageExpired,
                                   boolean isMessageFaulted,
                                   boolean isSource)
Method Detail

getGroupId

public String getGroupId()
Retrieve the groupId.

Specified by:
getGroupId in interface WsrGroupTerminationInfo

setGroupId

public void setGroupId(String groupId)
sets the groupId.


isGroupComplete

public boolean isGroupComplete()
Checks to see if the group is complete

Specified by:
isGroupComplete in interface WsrGroupTerminationInfo

setGroupComplete

public void setGroupComplete(boolean isGroupComplete)
sets isGroupComplete parameter


isGroupClosed

public boolean isGroupClosed()
Checks to see if the group is closed

Specified by:
isGroupClosed in interface WsrGroupTerminationInfo

setGroupClosed

public void setGroupClosed(boolean isGroupClosed)
sets isGroupClosed parameter


isGroupRemoved

public boolean isGroupRemoved()
Checks to see if the group is removed

Specified by:
isGroupRemoved in interface WsrGroupTerminationInfo

setGroupRemoved

public void setGroupRemoved(boolean isGroupRemoved)
sets isGroupRemoved parameter


isGroupExpiryTimePassed

public boolean isGroupExpiryTimePassed()
Checks to see if the groupExpiryTime has passed

Specified by:
isGroupExpiryTimePassed in interface WsrGroupTerminationInfo

setGroupExpiryTimePassed

public void setGroupExpiryTimePassed(boolean isGroupExpiryTimePassed)
sets isGroupExpiryTimePassed parameter


isGroupMaxIdleDurationPassed

public boolean isGroupMaxIdleDurationPassed()
Checks to see if the groupMaxIdleDuration has passed

Specified by:
isGroupMaxIdleDurationPassed in interface WsrGroupTerminationInfo

setGroupMaxIdleDurationPassed

public void setGroupMaxIdleDurationPassed(boolean isGroupMaxIdleDurationPassed)
sets isGroupMaxIdleDurationPassed parameter


hasLastMessageOfGroup

public boolean hasLastMessageOfGroup()
Checks to see if the group has Last Message

Specified by:
hasLastMessageOfGroup in interface WsrGroupTerminationInfo

setLastMessageOfGroup

public void setLastMessageOfGroup(boolean hasLastMessageOfGroup)
sets hasLastMessageOfGroup parameter


hasMaxSequenceNumber

public boolean hasMaxSequenceNumber()
Checks to see if the Max Sequence Number is reached

Specified by:
hasMaxSequenceNumber in interface WsrGroupTerminationInfo

setMaxSequenceNumber

public void setMaxSequenceNumber(boolean hasMaxSequenceNumber)
sets isMaxSequenceNumber parameter


isMessageExpired

public boolean isMessageExpired()
Checks to see if the message is Expired

Specified by:
isMessageExpired in interface WsrGroupTerminationInfo

setMessageExpired

public void setMessageExpired(boolean isMessageExpired)
sets isMessageExpired parameter


isMessageFaulted

public boolean isMessageFaulted()
Checks to see if the message is Faulted

Specified by:
isMessageFaulted in interface WsrGroupTerminationInfo

setMessageFaulted

public void setMessageFaulted(boolean isMessageFaulted)
sets isMessageFaulted parameter


isSource

public boolean isSource()
Checks if this node is the source of the group in question

Specified by:
isSource in interface WsrGroupTerminationInfo

setIsSource

public void setIsSource(boolean isSource)
sets the isSource parameter



For comments and suggestions please send e-mail to The NaradaBrokering Project