default RegionAttributesType.PartitionAttributes convertToConfigPartitionAttributes() { RegionAttributesType.PartitionAttributes configAttributes = new RegionAttributesType.PartitionAttributes(); configAttributes.setColocatedWith(getColocatedWith()); configAttributes.setLocalMaxMemory(Integer.toString(getLocalMaxMemory())); if (getPartitionResolver() != null) { configAttributes .setPartitionResolver(new DeclarableType(getPartitionResolver().getClass().getName())); } configAttributes.setRecoveryDelay(Long.toString(getRecoveryDelay())); configAttributes.setStartupRecoveryDelay(Long.toString(getStartupRecoveryDelay())); configAttributes.setRedundantCopies(Integer.toString(getRedundantCopies())); configAttributes.setTotalMaxMemory(Long.toString(getTotalMaxMemory())); configAttributes.setTotalNumBuckets(Long.toString(getTotalNumBuckets())); return configAttributes; } }
public void setLocalMaxMemory(String maxMemory) { if (partitionAttributes == null) { partitionAttributes = new PartitionAttributes(); } partitionAttributes.setLocalMaxMemory(maxMemory); }