public OFChannelInfo(@Nonnull DatapathId id, @Nonnull OFAuxId auxId, @Nonnull SocketAddress address) { Preconditions.checkNotNull(id, "id should not be null"); Preconditions.checkNotNull(auxId, "auxId should not be null"); Preconditions.checkNotNull(address, "address should not be null"); this.id = id; this.auxId = auxId; InetSocketAddress socketAddress = (InetSocketAddress) address; this.address = IPAddress.of(socketAddress.getHostString()); this.port = socketAddress.getPort(); }
public IPAddress<?> getAddress() { return address; }