public class TieredStoreConfig extends Object implements IdentifiedDataSerializable
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
Default value for if tiered-store is enabled.
|
Constructor and Description |
---|
TieredStoreConfig() |
TieredStoreConfig(TieredStoreConfig tieredStoreConfig) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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 stream
|
TieredStoreConfig |
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.
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public static final boolean DEFAULT_ENABLED
public TieredStoreConfig()
public TieredStoreConfig(TieredStoreConfig tieredStoreConfig)
public boolean isEnabled()
public TieredStoreConfig setEnabled(boolean enabled)
enabled
- enabled parameter.public MemoryTierConfig getMemoryTierConfig()
MemoryTierConfig
of this tiered-store configuration.public TieredStoreConfig setMemoryTierConfig(MemoryTierConfig memoryTierConfig)
memoryTierConfig
- memory tier configuration.public DiskTierConfig getDiskTierConfig()
TSDiskTierConfig
of this tiered-store configuration.public TieredStoreConfig setDiskTierConfig(DiskTierConfig diskTierConfig)
diskTierConfig
- disk tier configuration.public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getClassId()
IdentifiedDataSerializable
getClassId
in interface IdentifiedDataSerializable
Copyright © 2023 Hazelcast, Inc.. All rights reserved.