com.gemstone.gemfire.cache.partition.PartitionRebalanceInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gemfire-core Show documentation
Show all versions of gemfire-core Show documentation
SnappyData store based off Pivotal GemFireXD
/*
* Copyright (c) 2010-2015 Pivotal Software, Inc. All rights reserved.
*
* Licensed 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. See accompanying
* LICENSE file.
*/
package com.gemstone.gemfire.cache.partition;
import java.util.Set;
/**
* The detailed results of rebalancing a partitioned region.
*
* @since 6.0
*/
public interface PartitionRebalanceInfo {
/**
* Returns the {@link com.gemstone.gemfire.cache.Region#getFullPath()
* full path} of the partitioned region that these details describe.
*
* @return the full name of partioned region that these details describe.
*/
public String getRegionPath();
/**
* Returns a Set
of detailed information about each member that
* had rebalancable resources at the time that the rebalance started.
*
* @return a Set
of detailed information about each member that
* had rebalancable resources at the time that the rebalance started
*/
public Set getPartitionMemberDetailsBefore();
/**
* Returns a Set
of detailed information about each member that
* had rebalancable resources at the time that the rebalance completed.
*
* @return a Set
of detailed information about each member that
* had rebalancable resources at the time that the rebalance completed
*/
public Set getPartitionMemberDetailsAfter();
/**
* Returns the time, in milliseconds, that the rebalance operation took for
* this region.
*
* @return the time, in milliseconds, that the rebalance operation took for
* this region.
*/
public long getTime();
/**
* Returns the number of buckets created during the rebalance operation.
*
* @return the number of buckets created during the rebalance operation
*/
public int getBucketCreatesCompleted();
/**
* Returns the size, in bytes, of all of the buckets that were created as
* part of the rebalance operation.
*
* @return the size, in bytes, of all of the buckets that were created as
* part of the rebalance operation
*/
public long getBucketCreateBytes();
/**
* Returns the time, in milliseconds, taken to create buckets for this region.
*
* @return the time, in milliseconds, taken to create buckets for this region
*/
public long getBucketCreateTime();
/**
* Returns the number of buckets removed during the rebalance operation.
*
* @return the number of buckets removed during the rebalance operation
*/
public int getBucketRemovesCompleted();
/**
* Returns the size, in bytes, of all of the buckets that were removed as
* part of the rebalance operation.
*
* @return the size, in bytes, of all of the buckets that were removed as
* part of the rebalance operation
*/
public long getBucketRemoveBytes();
/**
* Returns the time, in milliseconds, taken to remove buckets for this region.
*
* @return the time, in milliseconds, taken to remove buckets for this region
*/
public long getBucketRemoveTime();
/**
* Returns the number of buckets transferred for this region.
*
* @return the number of buckets transferred for this region
*/
public int getBucketTransfersCompleted();
/**
* Returns the size, in bytes, of buckets that were transferred for this
* region.
*
* @return the size, in bytes, of buckets that were transferred for this
* region
*/
public long getBucketTransferBytes();
/**
* Returns the amount of time, in milliseconds, it took to transfer buckets
* for this region.
*
* @return the amount of time, in milliseconds, it took to transfer buckets
* for this region
*/
public long getBucketTransferTime();
/**
* Returns the number of primaries that were transferred for this region.
*
* @return the number of primaries that were transferred for this region
*/
public int getPrimaryTransfersCompleted();
/**
* Returns the time, in milliseconds, spent transferring primaries for this
* region.
*
* @return the time, in milliseconds, spent transferring primaries for this
* region
*/
public long getPrimaryTransferTime();
}