@ Override public NamingRegisterRequest decode ( final byte [ ] buf ) { final AvroNamingRegisterRequest avroNamingRegisterRequest = AvroUtils . fromBytes ( buf , AvroNamingRegisterRequest . class ) ; return new NamingRegisterRequest ( new NameAssignmentTuple ( factory . getNewInstance ( avroNamingRegisterRequest . getId ( ) . toString ( ) ) , new InetSocketAddress ( avroNamingRegisterRequest . getHost ( ) . toString ( ) , avroNamingRegisterRequest . getPort ( ) ) ) ) ; }
Decodes the bytes to a name assignment .