Package com.hazelcast.config
Class DiskTierConfig
- java.lang.Object
-
- com.hazelcast.config.DiskTierConfig
-
- All Implemented Interfaces:
DataSerializable
,IdentifiedDataSerializable
public class DiskTierConfig extends java.lang.Object implements IdentifiedDataSerializable
Disk tier configuration of Tiered-Store.- Since:
- 5.1
-
-
Constructor Summary
Constructors Constructor Description DiskTierConfig()
DiskTierConfig(DiskTierConfig diskTierConfig)
-
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.java.lang.String
getDeviceName()
Returns the device name of this disk tier.int
getFactoryId()
Returns DataSerializableFactory factory ID for this class.int
hashCode()
boolean
isEnabled()
Returns whether disk tier is enabled on the related tiered-store.void
readData(ObjectDataInput in)
Reads fields from the input streamDiskTierConfig
setDeviceName(java.lang.String deviceName)
Sets the device name for this disk tier.DiskTierConfig
setEnabled(boolean enabled)
Sets whether disk tier is enabled on the related tiered-store.java.lang.String
toString()
void
writeData(ObjectDataOutput out)
Writes object fields to output stream
-
-
-
Constructor Detail
-
DiskTierConfig
public DiskTierConfig()
-
DiskTierConfig
public DiskTierConfig(DiskTierConfig diskTierConfig)
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Returns whether disk tier is enabled on the related tiered-store.- Returns:
- true if disk tier is enabled, false otherwise.
-
setEnabled
public DiskTierConfig setEnabled(boolean enabled)
Sets whether disk tier is enabled on the related tiered-store.- Parameters:
enabled
- enabled parameter.- Returns:
- this DiskTierConfig
-
getDeviceName
public java.lang.String getDeviceName()
Returns the device name of this disk tier.- Returns:
- device name.
-
setDeviceName
public DiskTierConfig setDeviceName(@Nonnull java.lang.String deviceName)
Sets the device name for this disk tier.- Parameters:
deviceName
- device name.- Returns:
- this DiskTierConfig
-
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
-
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
-
-