Class CacheNearConfiguration
- java.lang.Object
-
- org.apache.ignite.internal.visor.VisorDataTransferObject
-
- org.apache.ignite.internal.management.cache.CacheNearConfiguration
-
- All Implemented Interfaces:
Externalizable,Serializable
public class CacheNearConfiguration extends VisorDataTransferObject
Data transfer object for near cache configuration properties.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheNearConfiguration()Default constructor.CacheNearConfiguration(CacheConfiguration ccfg)Create data transfer object for near cache configuration properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable IntegergetNearEvictMaxSize()@Nullable StringgetNearEvictPolicy()intgetNearStartSize()booleanisNearEnabled()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
-
CacheNearConfiguration
public CacheNearConfiguration()
Default constructor.
-
CacheNearConfiguration
public CacheNearConfiguration(CacheConfiguration ccfg)
Create data transfer object for near cache configuration properties.- Parameters:
ccfg- Cache configuration.
-
-
Method Detail
-
isNearEnabled
public boolean isNearEnabled()
- Returns:
trueif near cache enabled.
-
getNearStartSize
public int getNearStartSize()
- Returns:
- Near cache start size.
-
getNearEvictPolicy
@Nullable public @Nullable String getNearEvictPolicy()
- Returns:
- Near cache eviction policy.
-
getNearEvictMaxSize
@Nullable public @Nullable Integer getNearEvictMaxSize()
- Returns:
- Near cache eviction policy max size.
-
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.
-
-