Class CacheStoreConfiguration
- java.lang.Object
-
- org.apache.ignite.internal.visor.VisorDataTransferObject
-
- org.apache.ignite.internal.management.cache.CacheStoreConfiguration
-
- All Implemented Interfaces:
Externalizable,Serializable
public class CacheStoreConfiguration extends VisorDataTransferObject
Data transfer object for cache store configuration properties.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheStoreConfiguration()Default constructor.CacheStoreConfiguration(IgniteEx ignite, CacheConfiguration ccfg)Create data transfer object for cache store configuration properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBatchSize()longgetFlushFrequency()intgetFlushSize()intgetFlushThreadCount()@Nullable StringgetStore()StringgetStoreFactory()booleangetWriteBehindCoalescing()booleanisEnabled()booleanisJdbcStore()booleanisReadThrough()booleanisStoreKeepBinary()booleanisWriteBehindEnabled()booleanisWriteThrough()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
-
CacheStoreConfiguration
public CacheStoreConfiguration()
Default constructor.
-
CacheStoreConfiguration
public CacheStoreConfiguration(IgniteEx ignite, CacheConfiguration ccfg)
Create data transfer object for cache store configuration properties.- Parameters:
ignite- Ignite instance.ccfg- Cache configuration.
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Returns:
trueif cache has store.
-
isJdbcStore
public boolean isJdbcStore()
- Returns:
trueif cache has JDBC store.
-
getStore
@Nullable public @Nullable String getStore()
- Returns:
- Cache store class name.
-
getStoreFactory
public String getStoreFactory()
- Returns:
- Cache store factory class name..
-
isReadThrough
public boolean isReadThrough()
- Returns:
- Whether cache should operate in read-through mode.
-
isWriteThrough
public boolean isWriteThrough()
- Returns:
- Whether cache should operate in write-through mode.
-
isWriteBehindEnabled
public boolean isWriteBehindEnabled()
- Returns:
- Flag indicating whether write-behind behaviour should be used for the cache store.
-
getBatchSize
public int getBatchSize()
- Returns:
- Maximum batch size for write-behind cache store operations.
-
getFlushFrequency
public long getFlushFrequency()
- Returns:
- Frequency with which write-behind cache is flushed to the cache store in milliseconds.
-
getFlushSize
public int getFlushSize()
- Returns:
- Maximum object count in write-behind cache.
-
getFlushThreadCount
public int getFlushThreadCount()
- Returns:
- Number of threads that will perform cache flushing.
-
isStoreKeepBinary
public boolean isStoreKeepBinary()
- Returns:
- Keep binary in store flag.
-
getWriteBehindCoalescing
public boolean getWriteBehindCoalescing()
- Returns:
- Write coalescing flag.
-
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.
-
-