Class RPCServiceAddress

java.lang.Object
com.yahoo.messagebus.network.rpc.RPCServiceAddress
All Implemented Interfaces:
ServiceAddress

public class RPCServiceAddress extends Object implements ServiceAddress
Implements the ServiceAddress interface for the RPC network.
Author:
Haavard Pettersen
  • Constructor Details

    • 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)
    • RPCServiceAddress

      public RPCServiceAddress(RPCServiceAddress blueprint)
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • 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.