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
  • Field Details

  • Constructor Details

    • SubPropertyConditionSerializationCodec

      public SubPropertyConditionSerializationCodec(Function<Object[],Version> versionExtractor)
      Parameters:
      versionExtractor - Function to extract Version from ServiceInvocation arguments
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface com.inductiveautomation.metro.api.MessageCodec
    • encode

      public InputStream encode(Object data) throws Exception
      Specified by:
      encode in interface com.inductiveautomation.metro.api.MessageCodec
      Throws:
      Exception
    • serialize

      protected byte[] serialize(Serializable object) throws IOException
      Throws:
      IOException
    • indexOf

      public int indexOf(byte[] bytes, byte[] subset)
    • decode

      public Object decode(InputStream inputStream) throws Exception
      Specified by:
      decode in interface com.inductiveautomation.metro.api.MessageCodec
      Throws:
      Exception