coherence pof configuration generation

11
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 1

Upload: oracle-coherence

Post on 22-Nov-2014

613 views

Category:

Technology


3 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Coherence POF Configuration Generation

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.1

Page 2: Coherence POF Configuration Generation

POF Configuration GeneratorHarvey RajaPrincipal Member Technical StaffOracle Coherence

Page 3: Coherence POF Configuration Generation

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

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

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

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.6

Examples

Teleporting the atom…

Portable ObjectPofSerializerPOF Annotations

Page 7: Coherence POF Configuration Generation

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

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

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.9

Page 10: Coherence POF Configuration Generation

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.10

Page 11: Coherence POF Configuration Generation

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.11