Class TestServer.VersionedRPCNetwork
- java.lang.Object
-
- com.yahoo.messagebus.network.rpc.RPCNetwork
-
- com.yahoo.messagebus.network.rpc.test.TestServer.VersionedRPCNetwork
-
- All Implemented Interfaces:
com.yahoo.jrt.MethodHandler
,Network
- Enclosing class:
- TestServer
public static class TestServer.VersionedRPCNetwork extends RPCNetwork
-
-
Constructor Summary
Constructors Constructor Description VersionedRPCNetwork(RPCNetworkParams netParams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.yahoo.component.Version
getVersion()
Returns the version of this network.void
setVersion(com.yahoo.component.Version version)
-
Methods inherited from class com.yahoo.messagebus.network.rpc.RPCNetwork
allocServiceAddress, attach, destroy, flushTargetPool, freeServiceAddress, getConnectionSpec, getIdentity, getMirror, getPort, getSendAdapter, invoke, registerSession, resolveServiceAddress, send, shutdown, sync, unregisterSession, waitUntilReady
-
-
-
-
Constructor Detail
-
VersionedRPCNetwork
public VersionedRPCNetwork(RPCNetworkParams netParams)
-
-
Method Detail
-
getVersion
protected com.yahoo.component.Version getVersion()
Description copied from class:RPCNetwork
Returns the version of this network. This gets called when the "mbus.getVersion" method is invoked on this network, and is separated into its own function so that unit tests can override it to simulate other versions than current.- Overrides:
getVersion
in classRPCNetwork
- Returns:
- The version to claim to be.
-
setVersion
public void setVersion(com.yahoo.component.Version version)
-
-