com.gemstone.gemfire.admin
Class RegionSubRegionSnapshot
java.lang.Object
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
RegionSubRegionSnapshot
public RegionSubRegionSnapshot()
RegionSubRegionSnapshot
public RegionSubRegionSnapshot(Region reg)
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
Copyright © 1997-2011 VMware, Inc. All rights reserved.