Package com.yahoo.messagebus.network.rpc
Class RPCService
- java.lang.Object
-
- com.yahoo.messagebus.network.rpc.RPCService
-
public class RPCService extends java.lang.Object
An RPCService represents a set of remote sessions matching a service pattern. The sessions are monitored using the slobrok. If multiple sessions are available, round robin is used to balance load between them.- Author:
- havardpe
-
-
Constructor Summary
Constructors Constructor Description RPCService(com.yahoo.jrt.slobrok.api.IMirror mirror, java.lang.String pattern)
Create a new RPCService backed by the given network and using the given service pattern.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RPCServiceAddress
resolve()
Resolve a concrete address from this service.
-
-
-
Constructor Detail
-
RPCService
public RPCService(com.yahoo.jrt.slobrok.api.IMirror mirror, java.lang.String pattern)
Create a new RPCService backed by the given network and using the given service pattern.- Parameters:
mirror
- The naming server to send queries to.pattern
- The pattern to use when querying.
-
-
Method Detail
-
resolve
public RPCServiceAddress resolve()
Resolve a concrete address from this service. This service may represent multiple remote sessions, so this will select one that is online.- Returns:
- A concrete service address.
-
-