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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.yahoo.component.Version
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 Details
-
VersionedRPCNetwork
-
-
Method Details
-
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)
-