Class TagProviderService2VersionAdapter.ParameterVersionJavaSerializationCodec
java.lang.Object
com.inductiveautomation.ignition.gateway.tags.distributed.TagProviderService2VersionAdapter.ParameterVersionJavaSerializationCodec
- All Implemented Interfaces:
com.inductiveautomation.metro.api.MessageCodec
- Enclosing class:
- TagProviderService2VersionAdapter
protected static class TagProviderService2VersionAdapter.ParameterVersionJavaSerializationCodec
extends Object
implements com.inductiveautomation.metro.api.MessageCodec
This class does some trickery to avoid sending our new Parameters and ParameterValues to old gateays.
It uses a custom serializer to swap those out for objects that are compatible with older version.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectInputStream
Note that when Metro is used with Ignition, this method never gets called.decode
(InputStream inputStream) getId()
protected byte[]
serialize
(Serializable object)
-
Field Details
-
ID
- See Also:
-
logger
protected static final org.apache.log4j.Logger logger
-
-
Constructor Details
-
ParameterVersionJavaSerializationCodec
protected ParameterVersionJavaSerializationCodec()
-
-
Method Details
-
getId
- Specified by:
getId
in interfacecom.inductiveautomation.metro.api.MessageCodec
-
serialize
- Throws:
IOException
-
encode
- Specified by:
encode
in interfacecom.inductiveautomation.metro.api.MessageCodec
- Throws:
Exception
-
decode
- Specified by:
decode
in interfacecom.inductiveautomation.metro.api.MessageCodec
- Throws:
Exception
-
createObjectInputStream
Note that when Metro is used with Ignition, this method never gets called. Instead, ModuleSerializationCodec.createObjectInputStream gets called.- Throws:
IOException
-