mhansonp commented on a change in pull request #5249: URL: https://github.com/apache/geode/pull/5249#discussion_r441875211
########## File path: geode-management/src/main/java/org/apache/geode/management/internal/operation/RegionRedundancyStatusImpl.java ########## @@ -0,0 +1,103 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for additional information regarding + * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the License. You may obtain a + * copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +package org.apache.geode.management.internal.operation; + +import org.apache.geode.management.runtime.RegionRedundancyStatus; + +/** + * result object used by the cms that only needs to be json serializable + */ +public class RegionRedundancyStatusImpl implements RegionRedundancyStatus { + + public static final String OUTPUT_STRING = + "%s redundancy status: %s. Desired redundancy is %s and actual redundancy is %s."; + + /** + * The name of the region used to create this object. + */ + protected String regionName; + + /** + * The configured redundancy of the region used to create this object. + */ + protected int configuredRedundancy; + + /** + * The actual redundancy of the region used to create this object at time of creation. + */ + protected int actualRedundancy; + + /** + * The {@link RedundancyStatus} of the region used to create this object at time of creation. + */ + protected RedundancyStatus status; + + /** + * Default constructor used for serialization + */ + public RegionRedundancyStatusImpl() {} + + public RegionRedundancyStatusImpl(int configuredRedundancy, int actualRedundancy, Review comment: Sorry misread that... I agree. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
