Class CacheRebalanceConfiguration
- java.lang.Object
-
- org.apache.ignite.internal.visor.VisorDataTransferObject
-
- org.apache.ignite.internal.management.cache.CacheRebalanceConfiguration
-
- All Implemented Interfaces:
Externalizable,Serializable
public class CacheRebalanceConfiguration extends VisorDataTransferObject
Data transfer object for cache rebalance configuration properties.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheRebalanceConfiguration()Default constructor.CacheRebalanceConfiguration(CacheConfiguration ccfg)Create data transfer object for rebalance configuration properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetBatchesPrefetchCnt()intgetBatchSize()CacheRebalanceModegetMode()longgetPartitionedDelay()intgetRebalanceOrder()longgetThrottle()longgetTimeout()protected voidreadExternalData(byte protoVer, ObjectInput in)Load object's specific data content.StringtoString()protected voidwriteExternalData(ObjectOutput out)Save object's specific data content.-
Methods inherited from class org.apache.ignite.internal.visor.VisorDataTransferObject
getProtocolVersion, readExternal, toList, toSet, writeExternal
-
-
-
-
Constructor Detail
-
CacheRebalanceConfiguration
public CacheRebalanceConfiguration()
Default constructor.
-
CacheRebalanceConfiguration
public CacheRebalanceConfiguration(CacheConfiguration ccfg)
Create data transfer object for rebalance configuration properties.- Parameters:
ccfg- Cache configuration.
-
-
Method Detail
-
getMode
public CacheRebalanceMode getMode()
- Returns:
- Cache rebalance mode.
-
getBatchSize
public int getBatchSize()
- Returns:
- Cache rebalance batch size.
-
getPartitionedDelay
public long getPartitionedDelay()
- Returns:
- Rebalance partitioned delay.
-
getThrottle
public long getThrottle()
- Returns:
- Time in milliseconds to wait between rebalance messages.
-
getTimeout
public long getTimeout()
- Returns:
- Rebalance timeout.
-
getBatchesPrefetchCnt
public long getBatchesPrefetchCnt()
- Returns:
- Batches count
-
getRebalanceOrder
public int getRebalanceOrder()
- Returns:
- Cache rebalance order.
-
writeExternalData
protected void writeExternalData(ObjectOutput out) throws IOException
Save object's specific data content.- Specified by:
writeExternalDatain classVisorDataTransferObject- Parameters:
out- Output object to write data content.- Throws:
IOException- If I/O errors occur.
-
readExternalData
protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundExceptionLoad object's specific data content.- Specified by:
readExternalDatain classVisorDataTransferObject- Parameters:
protoVer- Input object version.in- Input object to load data content.- Throws:
IOException- If I/O errors occur.ClassNotFoundException- If the class for an object being restored cannot be found.
-
-