Class TagProviderService2VersionAdapter.SubPropertyConditionSerializationCodec
java.lang.Object
com.inductiveautomation.ignition.gateway.tags.distributed.TagProviderService2VersionAdapter.SubPropertyConditionSerializationCodec
- All Implemented Interfaces:
com.inductiveautomation.metro.api.MessageCodec
- Enclosing class:
- TagProviderService2VersionAdapter
public static class TagProviderService2VersionAdapter.SubPropertyConditionSerializationCodec
extends Object
implements com.inductiveautomation.metro.api.MessageCodec
Swaps serialVersionUID of SubPropertyCondition to allow previous classes to deserialize even though they
have different serialVersionUID.
Supports AlarmFilter and TagQueryFilter
Supports AlarmFilter and TagQueryFilter
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSubPropertyConditionSerializationCodec
(Function<Object[], Version> versionExtractor) -
Method Summary
Modifier and TypeMethodDescriptiondecode
(InputStream inputStream) getId()
int
indexOf
(byte[] bytes, byte[] subset) protected byte[]
serialize
(Serializable object)
-
Field Details
-
ID
- See Also:
-
logger
protected static final org.apache.log4j.Logger logger
-
-
Constructor Details
-
SubPropertyConditionSerializationCodec
- Parameters:
versionExtractor
- Function to extract Version from ServiceInvocation arguments
-
-
Method Details
-
getId
- Specified by:
getId
in interfacecom.inductiveautomation.metro.api.MessageCodec
-
encode
- Specified by:
encode
in interfacecom.inductiveautomation.metro.api.MessageCodec
- Throws:
Exception
-
serialize
- Throws:
IOException
-
indexOf
public int indexOf(byte[] bytes, byte[] subset) -
decode
- Specified by:
decode
in interfacecom.inductiveautomation.metro.api.MessageCodec
- Throws:
Exception
-