Package com.hazelcast.config
Class TieredStoreConfig
- java.lang.Object
-
- com.hazelcast.config.TieredStoreConfig
-
- All Implemented Interfaces:
DataSerializable
,IdentifiedDataSerializable
public class TieredStoreConfig extends java.lang.Object implements IdentifiedDataSerializable
Tiered-Store configuration.- Since:
- 5.1
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEFAULT_ENABLED
Default value for if tiered-store is enabled.
-
Constructor Summary
Constructors Constructor Description TieredStoreConfig()
TieredStoreConfig(TieredStoreConfig tieredStoreConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getClassId()
Returns type identifier for this class.DiskTierConfig
getDiskTierConfig()
Returns the disk tier config of this tiered-store configuration.int
getFactoryId()
Returns DataSerializableFactory factory ID for this class.MemoryTierConfig
getMemoryTierConfig()
Returns the memory tier config of this tiered-store configuration.int
hashCode()
boolean
isEnabled()
Returns whether tiered-store is enabled on the related data structure.void
readData(ObjectDataInput in)
Reads fields from the input streamTieredStoreConfig
setDiskTierConfig(DiskTierConfig diskTierConfig)
Sets the disk tier config of this tiered-store configuration.TieredStoreConfig
setEnabled(boolean enabled)
Sets whether tiered-store is enabled on the related data structure.TieredStoreConfig
setMemoryTierConfig(MemoryTierConfig memoryTierConfig)
Sets the memory tier config of this tiered-store configuration.java.lang.String
toString()
void
writeData(ObjectDataOutput out)
Writes object fields to output stream
-
-
-
Field Detail
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLED
Default value for if tiered-store is enabled.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TieredStoreConfig
public TieredStoreConfig()
-
TieredStoreConfig
public TieredStoreConfig(TieredStoreConfig tieredStoreConfig)
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Returns whether tiered-store is enabled on the related data structure.- Returns:
- true if tiered-store is enabled, false otherwise.
-
setEnabled
public TieredStoreConfig setEnabled(boolean enabled)
Sets whether tiered-store is enabled on the related data structure.- Parameters:
enabled
- enabled parameter.- Returns:
- this TieredStoreConfig
-
getMemoryTierConfig
public MemoryTierConfig getMemoryTierConfig()
Returns the memory tier config of this tiered-store configuration.- Returns:
MemoryTierConfig
of this tiered-store configuration.
-
setMemoryTierConfig
public TieredStoreConfig setMemoryTierConfig(MemoryTierConfig memoryTierConfig)
Sets the memory tier config of this tiered-store configuration.- Parameters:
memoryTierConfig
- memory tier configuration.- Returns:
- this TieredStoreConfig
-
getDiskTierConfig
public DiskTierConfig getDiskTierConfig()
Returns the disk tier config of this tiered-store configuration.- Returns:
TSDiskTierConfig
of this tiered-store configuration.
-
setDiskTierConfig
public TieredStoreConfig setDiskTierConfig(DiskTierConfig diskTierConfig)
Sets the disk tier config of this tiered-store configuration.- Parameters:
diskTierConfig
- disk tier configuration.- Returns:
- this TieredStoreConfig
-
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
writeData
public void writeData(ObjectDataOutput out) throws java.io.IOException
Description copied from interface:DataSerializable
Writes object fields to output stream- Specified by:
writeData
in interfaceDataSerializable
- Parameters:
out
- output- Throws:
java.io.IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the output stream has been closed.
-
readData
public void readData(ObjectDataInput in) throws java.io.IOException
Description copied from interface:DataSerializable
Reads fields from the input stream- Specified by:
readData
in interfaceDataSerializable
- Parameters:
in
- input- Throws:
java.io.IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the input stream has been closed.
-
getFactoryId
public int getFactoryId()
Description copied from interface:IdentifiedDataSerializable
Returns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryId
in interfaceIdentifiedDataSerializable
- Returns:
- factory ID
-
getClassId
public int getClassId()
Description copied from interface:IdentifiedDataSerializable
Returns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassId
in interfaceIdentifiedDataSerializable
- Returns:
- type ID
-
-