org.jboss.ha.framework.interfaces
Class SubPartitionsInfo

java.lang.Object
  extended byorg.jboss.ha.framework.interfaces.SubPartitionsInfo
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class SubPartitionsInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Holder class that knows about a set of HA(sub)Partition currently building the overall cluster. Exchanged between HASessionState instances to share the same knowledge.

See Also:
SubPartitionInfo (src) , HASessionState (src) , HASessionStateImpl (src) , Serialized Form

Field Summary
protected  long groupId
           
 SubPartitionInfo (src) [] partitions
           
 
Constructor Summary
SubPartitionsInfo()
           
 
Method Summary
 java.lang.Object clone()
           
 long getNextGroupId()
          return the next distinct id for a new group
 SubPartitionInfo (src) getSubPartitionWithName(java.lang.String name)
          Returns the SubPartitionInfo (src) instance in this group that has the given name.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

partitions

public SubPartitionInfo (src) [] partitions

groupId

protected long groupId
Constructor Detail

SubPartitionsInfo

public SubPartitionsInfo()
Method Detail

getNextGroupId

public long getNextGroupId()
return the next distinct id for a new group


getSubPartitionWithName

public SubPartitionInfo (src)  getSubPartitionWithName(java.lang.String name)
Returns the SubPartitionInfo (src) instance in this group that has the given name.


clone

public java.lang.Object clone()

toString

public java.lang.String toString()