Uses of Class
com.yahoo.messagebus.routing.RoutingTableSpec
Package
Description
This package contains utility classes for the unit tests in the com.yahoo.messagebus.network.rpc package.
This package contains all classes and interfaces that concern routing over message bus.
-
Uses of RoutingTableSpec in com.yahoo.messagebus.network.rpc.test
Modifier and TypeMethodDescriptionvoid
TestServer.setupRouting
(RoutingTableSpec table) Proxies theMessageBus.setupRouting(RoutingSpec)
method by encapsulating the given table specification within the requiredRoutingSpec
.ModifierConstructorDescriptionTestServer
(String name, RoutingTableSpec table, com.yahoo.jrt.slobrok.server.Slobrok slobrok, Protocol protocol) Create a new test server. -
Uses of RoutingTableSpec in com.yahoo.messagebus.routing
Modifier and TypeMethodDescriptionAdds the given hop spec to this.A convenience function to add a new hop to this routing table.Adds a route spec to this.A convenience function to add a new route to this routing table.RoutingTableSpec.clearHops()
Clears the list of hop specs contained in this.RoutingTableSpec.clearRoutes()
Clears the list of routes that are contained in this.RoutingSpec.getTable
(int i) Returns the routing table spec at the given index.RoutingSpec.removeTable
(int i) Returns the routing table spec at the given index.Sets the hop spec at the given index.Sets the route spec at the given index.Modifier and TypeMethodDescriptionRoutingSpec.addTable
(RoutingTableSpec table) Adds a routing table spec to the list of tables.RoutingSpec.setTable
(int i, RoutingTableSpec table) Sets the routing table spec at the given index.boolean
HopSpec.verify
(ApplicationSpec app, RoutingTableSpec table, List<String> errors) Verifies the content of this against the given application.boolean
RouteSpec.verify
(ApplicationSpec app, RoutingTableSpec table, List<String> errors) Verifies the content of this against the given application.ModifierConstructorDescriptionRoutingTable
(RoutingTableSpec spec) Creates a new routing table based on a given specification.Implements the copy constructor.