Package org.apache.geode.management
Class PartitionAttributesData
java.lang.Object
org.apache.geode.management.PartitionAttributesData
Composite date type used to distribute attributes for a
PartitionedRegion.- Since:
- GemFire 7.0
-
Constructor Summary
ConstructorsConstructorDescriptionPartitionAttributesData(int redundantCopies, long totalMaxMemory, int totalNumBuckets, int localMaxMemory, String colocatedWith, String partitionResolver, long recoveryDelay, long startupRecoveryDelay, String[] partitionListeners) This constructor is to be used by internal JMX framework only. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the PartitionedRegion that this PartitionedRegion is colocated with.intReturns the maximum amount of local memory that can be used by the region.String[]Returns a list of Classes that are configured as listeners for the Region.Returns a list of Classes that are configured as resolvers for the Region.longReturns the delay (in milliseconds) that a member will wait while trying to satisfy the redundancy of data hosted on other members.intReturns the number of redundant copies for this PartitionedRegion.longReturns the delay (in milliseconds) that a new member will wait while trying to satisfy the redundancy of data hosted on other members.longReturns the maximum total size (in megabytes) of the Region.intReturns the total number of buckets for the whole region.toString()String representation of PartitionAttributesData
-
Constructor Details
-
PartitionAttributesData
@ConstructorProperties({"redundantCopies","totalMaxMemory","totalNumBuckets","localMaxMemory","colocatedWith","partitionResolver","recoveryDelay","startupRecoveryDelay","partitionListeners"}) public PartitionAttributesData(int redundantCopies, long totalMaxMemory, int totalNumBuckets, int localMaxMemory, String colocatedWith, String partitionResolver, long recoveryDelay, long startupRecoveryDelay, String[] partitionListeners) This constructor is to be used by internal JMX framework only. User should not try to create an instance of this class.- Parameters:
redundantCopies- the number of redundant copies for this PartitionedRegiontotalMaxMemory- the maximum total size (in megabytes) of the RegiontotalNumBuckets- the total number of buckets for the whole regionlocalMaxMemory- the maximum amount of local memory that can be used by the regioncolocatedWith- the name of the PartitionedRegion that this PartitionedRegion is colocated withpartitionResolver- a list of Classes that are configured as resolvers for the RegionrecoveryDelay- the delay (in milliseconds) that a member will wait while trying to satisfy the redundancy of data hosted on other membersstartupRecoveryDelay- the delay (in milliseconds) that a new member will wait while trying to satisfy the redundancy of data hosted on other memberspartitionListeners- an array of Classes that are configured as listeners for the Region
-
-
Method Details
-
getRedundantCopies
public int getRedundantCopies()Returns the number of redundant copies for this PartitionedRegion.- Returns:
- the number of redundant copies for this PartitionedRegion
-
getTotalMaxMemory
public long getTotalMaxMemory()Returns the maximum total size (in megabytes) of the Region.- Returns:
- the maximum total size (in megabytes) of the Region
-
getTotalNumBuckets
public int getTotalNumBuckets()Returns the total number of buckets for the whole region.- Returns:
- the total number of buckets for the whole region
-
getLocalMaxMemory
public int getLocalMaxMemory()Returns the maximum amount of local memory that can be used by the region.- Returns:
- the maximum amount of local memory that can be used by the region
-
getColocatedWith
Returns the name of the PartitionedRegion that this PartitionedRegion is colocated with.- Returns:
- the name of the PartitionedRegion that this PartitionedRegion is colocated with
-
getPartitionResolver
Returns a list of Classes that are configured as resolvers for the Region.- Returns:
- a list of Classes that are configured as resolvers for the Region
-
getRecoveryDelay
public long getRecoveryDelay()Returns the delay (in milliseconds) that a member will wait while trying to satisfy the redundancy of data hosted on other members.- Returns:
- the delay (in milliseconds) that a member will wait while trying to satisfy the redundancy of data hosted on other members
-
getStartupRecoveryDelay
public long getStartupRecoveryDelay()Returns the delay (in milliseconds) that a new member will wait while trying to satisfy the redundancy of data hosted on other members.- Returns:
- the delay (in milliseconds) that a new member will wait while trying to satisfy the redundancy of data hosted on other members
-
getPartitionListeners
Returns a list of Classes that are configured as listeners for the Region.- Returns:
- an array of Classes that are configured as listeners for the Region
-
toString
String representation of PartitionAttributesData
-