Class Pdx
java.lang.Object
org.apache.geode.management.configuration.AbstractConfiguration<PdxInfo>
org.apache.geode.management.configuration.Pdx
- All Implemented Interfaces:
Serializable,Identifiable<String>,JsonSerializable
Used to configure PDX serialization for a cache.
- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.geode.management.configuration.AbstractConfiguration
CLUSTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()ReturnsPDX_IDgetLinks()voidsetAutoSerializer(AutoSerializer autoSerializer) voidsetDiskStoreName(String diskStoreName) Setting a non-null diskStoreName causes the Pdx information to be persisted to the named disk store.voidsetIgnoreUnreadFields(Boolean ignoreUnreadFields) Setting ignoreUnreadFields to true can save memory during pdx deserialization but if the deserialized object is reserialized then the unread field data will be lost.voidsetPdxSerializer(ClassName pdxSerializer) voidsetReadSerialized(Boolean readSerialized) Setting readSerialized to true causes any pdx deserialization to produce instances of org.apache.geode.pdx.PdxInstance interface in the geode-core module instead of a domain class instance.Methods inherited from class org.apache.geode.management.configuration.AbstractConfiguration
getCreationCommandType, getGroup, getGroupName, isCluster, isGlobalRuntime
-
Field Details
-
PDX_ID
- See Also:
-
PDX_ENDPOINT
- See Also:
-
-
Constructor Details
-
Pdx
public Pdx()
-
-
Method Details
-
getId
ReturnsPDX_ID- Specified by:
getIdin interfaceIdentifiable<String>- Specified by:
getIdin classAbstractConfiguration<PdxInfo>- Returns:
- an identifier uniquely identifying this Object.
-
getLinks
- Specified by:
getLinksin classAbstractConfiguration<PdxInfo>
-
getAutoSerializer
-
setAutoSerializer
- Parameters:
autoSerializer- theAutoSerializerto use- Throws:
IllegalArgumentException- if a pdxSerializer has already been set
-
isReadSerialized
-
setReadSerialized
Setting readSerialized to true causes any pdx deserialization to produce instances of org.apache.geode.pdx.PdxInstance interface in the geode-core module instead of a domain class instance.- Parameters:
readSerialized- a Boolean specifying whether Pdx deserialization should produce only instances of org.apache.geode.pdx.PdxInstance
-
getPdxSerializer
-
setPdxSerializer
- Parameters:
pdxSerializer- the class name given must implement the org.apache.geode.pdx.PdxSerializer interface from the geode-core module.- Throws:
IllegalArgumentException- if an autoSerializer has already been set
-
isIgnoreUnreadFields
-
setIgnoreUnreadFields
Setting ignoreUnreadFields to true can save memory during pdx deserialization but if the deserialized object is reserialized then the unread field data will be lost. Unread fields will only exist if a class serialized with pdx has multiple versions.- Parameters:
ignoreUnreadFields- a Boolean specifying if unread fields should be ignored when deserializing
-
getDiskStoreName
-
setDiskStoreName
Setting a non-null diskStoreName causes the Pdx information to be persisted to the named disk store. To configure Pdx to use the default disk store, set the diskStoreName to "DEFAULT".- Parameters:
diskStoreName- the name of the disk store to persist Pdx information to
-