GemFire 6.6.2

com.gemstone.gemfire.admin
Class RegionSubRegionSnapshot

java.lang.Object
  extended by com.gemstone.gemfire.admin.RegionSubRegionSnapshot
All Implemented Interfaces:
DataSerializable, Serializable

public class RegionSubRegionSnapshot
extends Object
implements DataSerializable

Class RegionSubRegionSnapshot provides information about Regions. This also provides the information about sub regions This class is used by the monitoring tool.

Since:
5.7
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.gemstone.gemfire.DataSerializable
DataSerializable.Replaceable
 
Constructor Summary
RegionSubRegionSnapshot()
           
RegionSubRegionSnapshot(Region reg)
           
 
Method Summary
 boolean addSubRegion(RegionSubRegionSnapshot snap)
          add the snapshot of sub region
 void fromData(DataInput in)
          Reads the state of this object as primitive data from the given DataInput.
 int getEntryCount()
           
 String getFullPath()
           
 String getName()
           
 RegionSubRegionSnapshot getParent()
           
 Set getSubRegionSnapshots()
           
 void setEntryCount(int entryCount)
           
 void setName(String name)
           
 void setParent(RegionSubRegionSnapshot parent)
           
 void setSubRegionSnapshots(Set subRegionSnapshots)
           
 void toData(DataOutput out)
          Writes the state of this object as primitive data to the given DataOutput.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegionSubRegionSnapshot

public RegionSubRegionSnapshot()

RegionSubRegionSnapshot

public RegionSubRegionSnapshot(Region reg)
Method Detail

addSubRegion

public boolean addSubRegion(RegionSubRegionSnapshot snap)
add the snapshot of sub region

Parameters:
snap - snapshot of sub region
Returns:
true if operation is successful

getEntryCount

public final int getEntryCount()
Returns:
get entry count of region

setEntryCount

public final void setEntryCount(int entryCount)
Parameters:
entryCount - entry count of region

getName

public final String getName()
Returns:
name of region

setName

public final void setName(String name)
Parameters:
name - name of region

getSubRegionSnapshots

public final Set getSubRegionSnapshots()
Returns:
subRegionSnapshots of all the sub regions

setSubRegionSnapshots

public final void setSubRegionSnapshots(Set subRegionSnapshots)
Parameters:
subRegionSnapshots - subRegionSnapshots of all the sub regions

getParent

public final RegionSubRegionSnapshot getParent()
Returns:
snapshot of parent region

setParent

public final void setParent(RegionSubRegionSnapshot parent)
Parameters:
parent - snapshot of parent region

getFullPath

public String getFullPath()
Returns:
full path of region

toData

public void toData(DataOutput out)
            throws IOException
Description copied from interface: DataSerializable
Writes the state of this object as primitive data to the given DataOutput.

Since 5.7 it is possible for any method call to the specified DataOutput to throw GemFireRethrowable. It should not be caught by user code. If it is it must be rethrown.

Specified by:
toData in interface DataSerializable
Throws:
IOException - A problem occurs while writing to out

fromData

public void fromData(DataInput in)
              throws IOException,
                     ClassNotFoundException
Description copied from interface: DataSerializable
Reads the state of this object as primitive data from the given DataInput.

Specified by:
fromData in interface DataSerializable
Throws:
IOException - A problem occurs while reading from in
ClassNotFoundException - A class could not be loaded while reading from in

toString

public String toString()
Overrides:
toString in class Object

GemFire 6.6.2

Copyright © 1997-2012 VMware, Inc. All rights reserved.