Coherence POF Configuration Generation
-
Upload
oracle-coherence -
Category
Technology
-
view
614 -
download
3
description
Transcript of Coherence POF Configuration Generation
![Page 1: Coherence POF Configuration Generation](https://reader033.fdocuments.us/reader033/viewer/2022061122/546f9db7b4af9f1c0b8b4605/html5/thumbnails/1.jpg)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.1
![Page 2: Coherence POF Configuration Generation](https://reader033.fdocuments.us/reader033/viewer/2022061122/546f9db7b4af9f1c0b8b4605/html5/thumbnails/2.jpg)
POF Configuration GeneratorHarvey RajaPrincipal Member Technical StaffOracle Coherence
![Page 3: Coherence POF Configuration Generation](https://reader033.fdocuments.us/reader033/viewer/2022061122/546f9db7b4af9f1c0b8b4605/html5/thumbnails/3.jpg)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.3 3 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions.The development, release, and timing of any features or functionality described for Oracle’s products remain at the sole discretion of Oracle.
![Page 4: Coherence POF Configuration Generation](https://reader033.fdocuments.us/reader033/viewer/2022061122/546f9db7b4af9f1c0b8b4605/html5/thumbnails/4.jpg)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.4
Agenda
How we got here?
What’s the problem?
The red pill…
![Page 5: Coherence POF Configuration Generation](https://reader033.fdocuments.us/reader033/viewer/2022061122/546f9db7b4af9f1c0b8b4605/html5/thumbnails/5.jpg)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.5
POF Through The Ages…
Traditionally for an object to be serialized using POF two mechanisms exist:
– Object implements PortableObject
– A PofSerializer is registered for the Class type of the Object
In Coherence 3.7.1 we introduce the @Portable and @PortableProperty annotations
The intention was to ease the developer experience…
![Page 6: Coherence POF Configuration Generation](https://reader033.fdocuments.us/reader033/viewer/2022061122/546f9db7b4af9f1c0b8b4605/html5/thumbnails/6.jpg)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.6
Examples
Teleporting the atom…
Portable ObjectPofSerializerPOF Annotations
![Page 7: Coherence POF Configuration Generation](https://reader033.fdocuments.us/reader033/viewer/2022061122/546f9db7b4af9f1c0b8b4605/html5/thumbnails/7.jpg)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.7
POF Configuration Generator
Generates POF configuration file based on classes
Predictable type-id generation
Generational– Accepts previous POF configuration file
Operates against a GAR and supported by maven GAR plugin
![Page 8: Coherence POF Configuration Generation](https://reader033.fdocuments.us/reader033/viewer/2022061122/546f9db7b4af9f1c0b8b4605/html5/thumbnails/8.jpg)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.8
POF Configuration Generator
Can be invoked command line or consumable API
Classes are not loaded by the JVM
No dependency on third party disassembler
Potential integration as a part of application startup
![Page 9: Coherence POF Configuration Generation](https://reader033.fdocuments.us/reader033/viewer/2022061122/546f9db7b4af9f1c0b8b4605/html5/thumbnails/9.jpg)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.9
![Page 10: Coherence POF Configuration Generation](https://reader033.fdocuments.us/reader033/viewer/2022061122/546f9db7b4af9f1c0b8b4605/html5/thumbnails/10.jpg)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.10
![Page 11: Coherence POF Configuration Generation](https://reader033.fdocuments.us/reader033/viewer/2022061122/546f9db7b4af9f1c0b8b4605/html5/thumbnails/11.jpg)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.11