public static final PravegaNodeUri encode(final NodeUri uri) {
        Preconditions.checkNotNull(uri, "uri");
        return new PravegaNodeUri(uri.getEndpoint(), uri.getPort());
    }
public static final PravegaNodeUri encode ( final NodeUri uri ) { Preconditions . checkNotNull ( uri , "uri" ) ; return new PravegaNodeUri ( uri . getEndpoint ( ) , uri . getPort ( ) ) ; }
Helper to convert NodeURI into PravegaNodeURI.

@param uri Node URI.
@return PravegaNodeURI.