
com.groupbyinc.flux.common.transport.TransportAddressSerializers.class Maven / Gradle / Ivy
???? 3 ? @com/groupbyinc/flux/common/transport/TransportAddressSerializers java/lang/Object TransportAddressSerializers.java logger -Lcom/groupbyinc/flux/common/logging/ESLogger; ADDRESS_REGISTRY ?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; ?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; ()V
this BLcom/groupbyinc/flux/common/transport/TransportAddressSerializers; addAddressType :(Lcom/groupbyinc/flux/common/transport/TransportAddress;)V java/lang/Exception 5com/groupbyinc/flux/common/transport/TransportAddress uniqueAddressTypeId ()S java/lang/Short valueOf (S)Ljava/lang/Short;
! =com/groupbyinc/flux/common/google/common/collect/ImmutableMap # containsKey (Ljava/lang/Object;)Z % &
$ ' java/lang/IllegalStateException ) java/lang/StringBuilder +
,
Address [ . append -(Ljava/lang/String;)Ljava/lang/StringBuilder; 0 1
, 2 (I)Ljava/lang/StringBuilder; 0 4
, 5 ] already bound 7 toString ()Ljava/lang/String; 9 :
, ; (Ljava/lang/String;)V =
* > -com/groupbyinc/flux/common/collect/MapBuilder @
newMapBuilder @(Ljava/util/Map;)Lcom/groupbyinc/flux/common/collect/MapBuilder; B C
A D put U(Ljava/lang/Object;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/collect/MapBuilder; F G
A H immutableMap A()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; J K
A L address 7Lcom/groupbyinc/flux/common/transport/TransportAddress; addressFromStream k(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/common/transport/TransportAddress; java/io/IOException R 0com/groupbyinc/flux/common/io/stream/StreamInput T readShort V
U W get &(Ljava/lang/Object;)Ljava/lang/Object; Y Z
$ [ No transport address mapped to [ ] ] _
S > readFrom F(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/lang/Object; b c d input 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; addressUniqueId S addressType addressToStream m(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;Lcom/groupbyinc/flux/common/transport/TransportAddress;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput m
writeShort (S)V o p
n q writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V s t u out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; *com/groupbyinc/flux/common/logging/Loggers z getLogger @(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/logging/ESLogger; | }
{ ~ ? of ? K
$ ? :com/groupbyinc/flux/common/transport/DummyTransportAddress ? INSTANCE