Class AutoSerializer

  • java.lang.Object
    • org.apache.geode.management.configuration.AutoSerializer
  • All Implemented Interfaces:
    java.io.Serializable

    public class AutoSerializer
    extends java.lang.Object
    implements java.io.Serializable
    The configuration of a org.apache.geode.pdx.ReflectionBasedAutoSerializer found in the gemfire-core module that is used for easy PDX serialization. At least one pattern is required if the AutoSerializer is used for a ClusterManagementService.create(T).
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AutoSerializer​(boolean portable, java.lang.String... patterns)
      Creates an AutoSerializer.
      AutoSerializer​(java.lang.Boolean portable, java.util.List<java.lang.String> patterns)
      Creates an AutoSerializer.
      AutoSerializer​(java.lang.String... patterns)
      Creates an AutoSerializer that is not portable.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getPatterns()  
      java.lang.Boolean isPortable()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AutoSerializer

        public AutoSerializer​(java.lang.String... patterns)
        Creates an AutoSerializer that is not portable.
        Parameters:
        patterns - regular expressions that will cause the auto serializer to serialize any classes whose fully qualified class name matches one of the patterns. If no patterns are given, and the operation is CREATE, then an exception will be thrown.
      • AutoSerializer

        public AutoSerializer​(boolean portable,
                              java.lang.String... patterns)
        Creates an AutoSerializer.
        Parameters:
        portable - if true then any attempt to serialize a class that is not supported by the native client will fail.
        patterns - regular expressions that will cause the auto serializer to serialize any classes whose fully qualified class name matches one of the patterns. If no patterns are given, and the operation is CREATE, then an exception will be thrown.
      • AutoSerializer

        public AutoSerializer​(java.lang.Boolean portable,
                              java.util.List<java.lang.String> patterns)
        Creates an AutoSerializer.
        Parameters:
        portable - if true then any attempt to serialize a class that is not supported by the native client will fail.
        patterns - regular expressions that will cause the auto serializer to serialize any classes whose fully qualified class name matches one of the patterns. If no patterns are given, and the operation is CREATE, then an exception will be thrown.
    • Method Detail

      • isPortable

        public java.lang.Boolean isPortable()
      • getPatterns

        public java.util.List<java.lang.String> getPatterns()