Class RPCServiceAddress

    • Constructor Detail

      • RPCServiceAddress

        public RPCServiceAddress​(String serviceName,
                                 com.yahoo.jrt.Spec connectionSpec)
        Constructs a service address from the given specifications. The last component of the service is stored as the session name.
        Parameters:
        serviceName - The full service name of the address.
        connectionSpec - The connection specification.
      • RPCServiceAddress

        public RPCServiceAddress​(String serviceName,
                                 String connectionSpec)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isMalformed

        public boolean isMalformed()
        Returns whether or not this service address is malformed.
        Returns:
        True if malformed.
      • getServiceName

        public String getServiceName()
        Returns the name of the remove service.
        Returns:
        The service name.
      • getSessionName

        public String getSessionName()
        Returns the name of the remote session.
        Returns:
        The session name.
      • getConnectionSpec

        public com.yahoo.jrt.Spec getConnectionSpec()
        Returns the connection spec for the remote service.
        Returns:
        The connection spec.
      • setTarget

        public void setTarget​(RPCTarget target)
        Sets the RPC target to be used when communicating with the remote service.
        Parameters:
        target - The target to set.
      • getTarget

        public RPCTarget getTarget()
        Returns the RPC target to be used when communicating with the remove service.
        Returns:
        The target to use.