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

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

public class WsrGroupInfoImpl
extends Object
implements WsrGroupInfo

This interface encapsulates information pertaining to a group.


Constructor Summary
WsrGroupInfoImpl()
           
WsrGroupInfoImpl(String groupId)
           
WsrGroupInfoImpl(String groupId, boolean isSource, byte[] marshalledBytesOfAddresses)
           
WsrGroupInfoImpl(String groupId, boolean isSource, EndpointReferenceType source, EndpointReferenceType destination)
           
 
Method Summary
 byte[] getBytesOfAddresses()
          Get a byte representation of the Source and Destination Addresses
 EndpointReferenceType getDestination()
          Returns the destination of this group
 Calendar getGroupExpiryTime()
          Returns the GroupExpiryTime
 String getGroupId()
          Retrieve the groupId.
 GDuration getGroupMaxIdleDuration()
          Returns the groupMaxIdleDuration
 long getLastSequenceNumber()
          If we do have information regarding the last message of a group, proceed to retrieve it
 long getSequenceNumberLastDelivered()
          If we do have information regarding the Sequence Number last Delivered of a group, proceed to retrieve it
 EndpointReferenceType getSource()
          Returns the source of this group
 boolean hasGroupExpiryTime()
          Checks if GroupExpiryTime parameter is present
 boolean hasGroupMaxIdleDuration()
          Checks if GroupMaxIdleDuration parameter is present
 boolean hasLastSequenceNumber()
          Check to see if we have information regarding the last message of a group.
 boolean isDestination()
          Checks if this node is the destination of the group in question
 boolean isSource()
          Checks if this node is the source of the group in question
 void setDestination(EndpointReferenceType destination)
          sets the destination of this group
 void setGroupExpiryTime(Calendar groupExpiryTime)
          sets the groupExpiryTime
 void setGroupId(String groupId)
          sets the groupId.
 void setGroupMaxIdleDuration(GDuration groupMaxIdleDuration)
          sets the groupMaxIdleDuration
 void setHasGroupExpiryTime(boolean hasGroupExpiryTime)
          sets the hasGroupExpiryTime parameter
 void setHasGroupMaxIdleDuration(boolean hasGroupMaxIdleDuration)
          sets the hasGroupExpiryTime parameter
 void setHasLastSequenceNumber(boolean hasLastSequenceNumber)
          Sets the variable with boolean value if we have information regarding the last message of the group
 void setIsSource(boolean isSource)
          sets the isSource parameter
 void setLastSequenceNumber(long lastSequenceNumber)
          sets the hasLastSequenceNumber parameter
 void setSequenceNumberLastDelivered(long sequenceNumberLastDelivered)
          sets the sequenceNumberLastDelivered parameter
 void setSource(EndpointReferenceType source)
          sets the source of this group
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WsrGroupInfoImpl

public WsrGroupInfoImpl()

WsrGroupInfoImpl

public WsrGroupInfoImpl(String groupId)

WsrGroupInfoImpl

public WsrGroupInfoImpl(String groupId,
                        boolean isSource,
                        EndpointReferenceType source,
                        EndpointReferenceType destination)

WsrGroupInfoImpl

public WsrGroupInfoImpl(String groupId,
                        boolean isSource,
                        byte[] marshalledBytesOfAddresses)
Method Detail

getGroupId

public String getGroupId()
Retrieve the groupId.

Specified by:
getGroupId in interface WsrGroupInfo

setGroupId

public void setGroupId(String groupId)
sets the groupId.


hasGroupExpiryTime

public boolean hasGroupExpiryTime()
Checks if GroupExpiryTime parameter is present

Specified by:
hasGroupExpiryTime in interface WsrGroupInfo

setHasGroupExpiryTime

public void setHasGroupExpiryTime(boolean hasGroupExpiryTime)
sets the hasGroupExpiryTime parameter


getGroupExpiryTime

public Calendar getGroupExpiryTime()
Returns the GroupExpiryTime

Specified by:
getGroupExpiryTime in interface WsrGroupInfo

setGroupExpiryTime

public void setGroupExpiryTime(Calendar groupExpiryTime)
sets the groupExpiryTime


hasGroupMaxIdleDuration

public boolean hasGroupMaxIdleDuration()
Checks if GroupMaxIdleDuration parameter is present

Specified by:
hasGroupMaxIdleDuration in interface WsrGroupInfo

setHasGroupMaxIdleDuration

public void setHasGroupMaxIdleDuration(boolean hasGroupMaxIdleDuration)
sets the hasGroupExpiryTime parameter


getGroupMaxIdleDuration

public GDuration getGroupMaxIdleDuration()
Returns the groupMaxIdleDuration

Specified by:
getGroupMaxIdleDuration in interface WsrGroupInfo

setGroupMaxIdleDuration

public void setGroupMaxIdleDuration(GDuration groupMaxIdleDuration)
sets the groupMaxIdleDuration


hasLastSequenceNumber

public boolean hasLastSequenceNumber()
Check to see if we have information regarding the last message of a group.

Specified by:
hasLastSequenceNumber in interface WsrGroupInfo

setHasLastSequenceNumber

public void setHasLastSequenceNumber(boolean hasLastSequenceNumber)
Sets the variable with boolean value if we have information regarding the last message of the group


getLastSequenceNumber

public long getLastSequenceNumber()
If we do have information regarding the last message of a group, proceed to retrieve it

Specified by:
getLastSequenceNumber in interface WsrGroupInfo

setLastSequenceNumber

public void setLastSequenceNumber(long lastSequenceNumber)
sets the hasLastSequenceNumber parameter


getSequenceNumberLastDelivered

public long getSequenceNumberLastDelivered()
If we do have information regarding the Sequence Number last Delivered of a group, proceed to retrieve it

Specified by:
getSequenceNumberLastDelivered in interface WsrGroupInfo

setSequenceNumberLastDelivered

public void setSequenceNumberLastDelivered(long sequenceNumberLastDelivered)
sets the sequenceNumberLastDelivered parameter


isSource

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

Specified by:
isSource in interface WsrGroupInfo

setIsSource

public void setIsSource(boolean isSource)
sets the isSource parameter


isDestination

public boolean isDestination()
Checks if this node is the destination of the group in question

Specified by:
isDestination in interface WsrGroupInfo

getSource

public EndpointReferenceType getSource()
Returns the source of this group

Specified by:
getSource in interface WsrGroupInfo

setSource

public void setSource(EndpointReferenceType source)
sets the source of this group


getDestination

public EndpointReferenceType getDestination()
Returns the destination of this group

Specified by:
getDestination in interface WsrGroupInfo

setDestination

public void setDestination(EndpointReferenceType destination)
sets the destination of this group


getBytesOfAddresses

public byte[] getBytesOfAddresses()
Get a byte representation of the Source and Destination Addresses

Specified by:
getBytesOfAddresses in interface WsrGroupInfo

toString

public String toString()
Overrides:
toString in class Object


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