Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- ACCEPTED - Static variable in class com.yahoo.messagebus.Result
- acknowledge(Message) - Method in class com.yahoo.messagebus.DestinationSession
-
Convenience method for acknowledging a message for its sender.
- add(ApplicationSpec) - Method in class com.yahoo.messagebus.routing.ApplicationSpec
-
Adds the content of the given application to this.
- add(String, int) - Method in class com.yahoo.messagebus.network.rpc.test.SlobrokState
- addChild(Route) - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Adds a child routing context to this based on a given route.
- addChild(TraceNode) - Method in class com.yahoo.messagebus.TraceNode
-
Adds a child node to this.
- addChild(String) - Method in class com.yahoo.messagebus.TraceNode
-
Convenience method to add a child node containing a note to this.
- addChildren(List<Route>) - Method in class com.yahoo.messagebus.routing.RoutingContext
-
This is a convenience method to more easily add a list of children to this.
- addChildren(List<TraceNode>) - Method in class com.yahoo.messagebus.TraceNode
-
Adds a list of child nodes to this.
- addConsumableError(int) - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Adds the given error code to the list of codes that the associated routing policy may consume.
- addDirective(HopDirective) - Method in class com.yahoo.messagebus.routing.Hop
-
Adds a new directive to this hop.
- addError(int, String) - Method in class com.yahoo.messagebus.routing.RoutingNode
-
This is a convenience method to call
RoutingNode.addError(Error)
. - addError(Error) - Method in class com.yahoo.messagebus.Reply
-
Add an error to this reply.
- addError(Error) - Method in class com.yahoo.messagebus.routing.RoutingNode
-
This is a convenience method to add an error to this.
- addHop(Hop) - Method in class com.yahoo.messagebus.routing.Route
-
Adds a hop to the list of hops that make up this route.
- addHop(HopSpec) - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Adds the given hop spec to this.
- addHop(String) - Method in class com.yahoo.messagebus.routing.RouteSpec
-
Adds the given hop name to this.
- addHop(String, String, List<String>) - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
A convenience function to add a new hop to this routing table.
- addHops(List<String>) - Method in class com.yahoo.messagebus.routing.RouteSpec
-
Adds the given hop names to this.
- addPolicyFactory(String, SimpleProtocol.PolicyFactory) - Method in class com.yahoo.messagebus.test.SimpleProtocol
-
Registers a policy factory with this protocol under a given name.
- addProtocol(Protocol) - Method in class com.yahoo.messagebus.MessageBusParams
-
Adds a new protocol to this.
- addProtocols(List<Protocol>) - Method in class com.yahoo.messagebus.MessageBusParams
-
Registers multiple protocols with this by calling
MessageBusParams.addProtocol(Protocol)
multiple times. - addRecipient(String) - Method in class com.yahoo.messagebus.routing.HopSpec
-
Adds the given recipient to this.
- addRecipients(List<String>) - Method in class com.yahoo.messagebus.routing.HopSpec
-
Adds the given recipients to this.
- addRoute(RouteSpec) - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Adds a route spec to this.
- addRoute(String, List<String>) - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
A convenience function to add a new route to this routing table.
- addService(String, String) - Method in class com.yahoo.messagebus.routing.ApplicationSpec
-
Adds a service name to the list of known services.
- addTable(RoutingTableSpec) - Method in class com.yahoo.messagebus.routing.RoutingSpec
-
Adds a routing table spec to the list of tables.
- allocServiceAddress(RoutingNode) - Method in class com.yahoo.messagebus.network.local.LocalNetwork
- allocServiceAddress(RoutingNode) - Method in interface com.yahoo.messagebus.network.Network
-
Resolves the service address of the recipient referenced by the given routing node.
- allocServiceAddress(RoutingNode) - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
- AllPassThrottlePolicy - Class in com.yahoo.messagebus
-
This is an implementation of the
ThrottlePolicy
that passes all requests (no real throttling). - AllPassThrottlePolicy() - Constructor for class com.yahoo.messagebus.AllPassThrottlePolicy
- APP_FATAL_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
An application specific non-recoverable error.
- APP_TRANSIENT_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
An application specific transient error.
- ApplicationSpec - Class in com.yahoo.messagebus.routing
-
This class holds the specifications of an application running message bus services.
- ApplicationSpec() - Constructor for class com.yahoo.messagebus.routing.ApplicationSpec
-
Constructs a new instance of this class.
- ApplicationSpec(ApplicationSpec) - Constructor for class com.yahoo.messagebus.routing.ApplicationSpec
-
Implements the copy constructor.
- attach(NetworkOwner) - Method in class com.yahoo.messagebus.network.local.LocalNetwork
- attach(NetworkOwner) - Method in interface com.yahoo.messagebus.network.Network
-
Attach the network layer to the given owner.
- attach(NetworkOwner) - Method in class com.yahoo.messagebus.network.NetworkMultiplexer
-
Attach the network owner to this, allowing this to forward messages to it.
- attach(NetworkOwner) - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
B
- build() - Method in class com.yahoo.messagebus.MessagebusConfig.Builder
- build() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
- build() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop.Builder
- build() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route.Builder
- Builder() - Constructor for class com.yahoo.messagebus.MessagebusConfig.Builder
- Builder() - Constructor for class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
- Builder() - Constructor for class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop.Builder
- Builder() - Constructor for class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route.Builder
- Builder(MessagebusConfig) - Constructor for class com.yahoo.messagebus.MessagebusConfig.Builder
- Builder(MessagebusConfig.Routingtable) - Constructor for class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
- Builder(MessagebusConfig.Routingtable.Hop) - Constructor for class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop.Builder
- Builder(MessagebusConfig.Routingtable.Route) - Constructor for class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route.Builder
- buildMethod() - Method in class com.yahoo.messagebus.network.rpc.RPCSend
- buildMethod() - Method in class com.yahoo.messagebus.network.rpc.RPCSendV2
C
- CallStack - Class in com.yahoo.messagebus
-
An wrapper around a stack of frame objects that is aware of the message that owns it.
- CallStack() - Constructor for class com.yahoo.messagebus.CallStack
- canRetry(int) - Method in class com.yahoo.messagebus.routing.Resender
-
Returns whether or not the current
RetryPolicy
supports resending aReply
that contains an error with the given error code. - canRetry(int) - Method in interface com.yahoo.messagebus.routing.RetryPolicy
- canRetry(int) - Method in class com.yahoo.messagebus.routing.RetryTransientErrorsPolicy
- canSend(Message, int) - Method in class com.yahoo.messagebus.AllPassThrottlePolicy
- canSend(Message, int) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
- canSend(Message, int) - Method in class com.yahoo.messagebus.RateThrottlingPolicy
- canSend(Message, int) - Method in class com.yahoo.messagebus.StaticThrottlePolicy
- canSend(Message, int) - Method in interface com.yahoo.messagebus.ThrottlePolicy
-
Returns whether or not the given message can be sent according to the current state of this policy.
- clear() - Method in class com.yahoo.messagebus.CallStack
-
Clear this call stack.
- clear() - Method in class com.yahoo.messagebus.Trace
-
Remove all trace information and set the trace level to 0.
- clear() - Method in class com.yahoo.messagebus.TraceNode
-
Remove all trace information from this tree.
- clearDirectives() - Method in class com.yahoo.messagebus.routing.Hop
-
Clears all directives from this hop.
- clearHops() - Method in class com.yahoo.messagebus.routing.Route
-
Clears the list of hops that make up this route.
- clearHops() - Method in class com.yahoo.messagebus.routing.RouteSpec
-
Clears the list of hops that make up this route.
- clearHops() - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Clears the list of hop specs contained in this.
- clearPolicyCache() - Method in class com.yahoo.messagebus.ProtocolRepository
-
Clears the internal cache of routing policies.
- clearRecipients() - Method in class com.yahoo.messagebus.routing.HopSpec
-
Clears the list of recipients that the selector may choose from.
- clearRoutes() - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Clears the list of routes that are contained in this.
- clearTables() - Method in class com.yahoo.messagebus.routing.RoutingSpec
-
Clears the list of routing table specs contained in this.
- close() - Method in class com.yahoo.messagebus.DestinationSession
-
This method unregisters this session from message bus, effectively disabling any more messages from being delivered to the message handler.
- close() - Method in class com.yahoo.messagebus.IntermediateSession
-
This method unregisters this session from message bus, effectively disabling any more messages from being delivered to the message handler.
- close() - Method in class com.yahoo.messagebus.SourceSession
-
Reject all new messages and wait until no messages are pending.
- com.yahoo.messagebus - package com.yahoo.messagebus
-
This package contains the main API of the message bus.
- com.yahoo.messagebus.network - package com.yahoo.messagebus.network
-
This package declares the API of the network layer required by the message bus.
- com.yahoo.messagebus.network.local - package com.yahoo.messagebus.network.local
- com.yahoo.messagebus.network.rpc - package com.yahoo.messagebus.network.rpc
-
This package contains an RPC implementation of the Network interface declared in the com.yahoo.messagebus.network package.
- com.yahoo.messagebus.network.rpc.test - package com.yahoo.messagebus.network.rpc.test
-
This package contains utility classes for the unit tests in the com.yahoo.messagebus.network.rpc package.
- com.yahoo.messagebus.routing - package com.yahoo.messagebus.routing
-
This package contains all classes and interfaces that concern routing over message bus.
- com.yahoo.messagebus.routing.test - package com.yahoo.messagebus.routing.test
- com.yahoo.messagebus.test - package com.yahoo.messagebus.test
-
This package contains utility classes for the unit tests in the com.yahoo.messagebus package.
- compact() - Method in class com.yahoo.messagebus.TraceNode
-
Compact this tree.
- compareTo(TraceNode) - Method in class com.yahoo.messagebus.TraceNode
- COMPONENT - Static variable in class com.yahoo.messagebus.TraceLevel
-
Traces information about which internal components are processing a routable.
- CONFIG_DEF_MD5 - Static variable in class com.yahoo.messagebus.MessagebusConfig
- CONFIG_DEF_NAME - Static variable in class com.yahoo.messagebus.MessagebusConfig
- CONFIG_DEF_NAMESPACE - Static variable in class com.yahoo.messagebus.MessagebusConfig
- CONFIG_DEF_SCHEMA - Static variable in class com.yahoo.messagebus.MessagebusConfig
- ConfigAgent - Class in com.yahoo.messagebus
-
This class implements subscription to message bus config.
- ConfigAgent(ConfigURI, ConfigHandler) - Constructor for class com.yahoo.messagebus.ConfigAgent
-
Create a config agent that will obtain config for the given handler and configure it programmatically.
- ConfigAgent(MessagebusConfig, ConfigHandler) - Constructor for class com.yahoo.messagebus.ConfigAgent
-
Create a config agent that will configure the given handler with the given config.
- ConfigAgent(String, ConfigHandler) - Constructor for class com.yahoo.messagebus.ConfigAgent
-
Create a config agent that will obtain config for the given handler and configure it programmatically.
- ConfigHandler - Interface in com.yahoo.messagebus
-
This class declares those methods required to be a handler for an instance of the
ConfigAgent
class. - configure(SlobroksConfig) - Method in class com.yahoo.messagebus.network.rpc.SlobrokConfigSubscriber
- configure(MessagebusConfig) - Method in class com.yahoo.messagebus.ConfigAgent
- connect() - Method in interface com.yahoo.messagebus.Connectable
- connect() - Method in class com.yahoo.messagebus.DestinationSession
- connect() - Method in class com.yahoo.messagebus.IntermediateSession
- connect(String, boolean) - Method in class com.yahoo.messagebus.MessageBus
-
Connects the given session to the network, so it will receive requests.
- Connectable - Interface in com.yahoo.messagebus
-
Something which can be connected to a network when ready to receive incoming requests.
- CONNECTION_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
A connection problem occured while sending.
- create() - Method in class com.yahoo.messagebus.routing.HopBlueprint
-
Creates a hop instance from thie blueprint.
- create(IMirror, String) - Static method in interface com.yahoo.messagebus.network.rpc.RPCService
- create(String) - Method in class com.yahoo.messagebus.routing.test.CustomPolicyFactory
- create(String) - Method in interface com.yahoo.messagebus.test.SimpleProtocol.PolicyFactory
-
Creates a new instance of the routing policy that this factory encapsulates.
- createDestinationSession(DestinationSessionParams) - Method in class com.yahoo.messagebus.MessageBus
-
Creates a destination session on top of this message bus using the given handlers and parameter object.
- createDestinationSession(String, boolean, MessageHandler) - Method in class com.yahoo.messagebus.MessageBus
-
This is a convenience method to call
MessageBus.createDestinationSession(DestinationSessionParams)
with default values for theDestinationSessionParams
object. - createDetachedDestinationSession(DestinationSessionParams) - Method in class com.yahoo.messagebus.MessageBus
- createDetachedIntermediateSession(IntermediateSessionParams) - Method in class com.yahoo.messagebus.MessageBus
- createIntermediateSession(IntermediateSessionParams) - Method in class com.yahoo.messagebus.MessageBus
-
Creates an intermediate session on top of this message bus using the given handlers and parameter object.
- createIntermediateSession(String, boolean, MessageHandler, ReplyHandler) - Method in class com.yahoo.messagebus.MessageBus
-
This is a convenience method to call
MessageBus.createIntermediateSession(IntermediateSessionParams)
with default values for theIntermediateSessionParams
object. - createPolicy(String, String) - Method in interface com.yahoo.messagebus.Protocol
-
Create a policy of the named type with the named param passed to the constructor of that policy.
- createPolicy(String, String) - Method in class com.yahoo.messagebus.test.SimpleProtocol
- createReply(Values, String, Trace) - Method in class com.yahoo.messagebus.network.rpc.RPCSend
- createReply(Values, String, Trace) - Method in class com.yahoo.messagebus.network.rpc.RPCSendV2
- createResponse(Values, Reply, Version, byte[]) - Method in class com.yahoo.messagebus.network.rpc.RPCSend
- createResponse(Values, Reply, Version, byte[]) - Method in class com.yahoo.messagebus.network.rpc.RPCSendV2
- createSourceSession(ReplyHandler) - Method in class com.yahoo.messagebus.MessageBus
-
This is a convenience method to call
MessageBus.createSourceSession(SourceSessionParams)
with default values for theSourceSessionParams
object. - createSourceSession(ReplyHandler, SourceSessionParams) - Method in class com.yahoo.messagebus.MessageBus
-
This is a convenience method to call
MessageBus.createSourceSession(SourceSessionParams)
by first assigning the reply handler to the parameter object. - createSourceSession(SourceSessionParams) - Method in class com.yahoo.messagebus.MessageBus
-
Creates a source session on top of this message bus.
- CustomPolicy - Class in com.yahoo.messagebus.routing.test
- CustomPolicy(boolean, List<Integer>, List<Route>) - Constructor for class com.yahoo.messagebus.routing.test.CustomPolicy
- CustomPolicyFactory - Class in com.yahoo.messagebus.routing.test
- CustomPolicyFactory() - Constructor for class com.yahoo.messagebus.routing.test.CustomPolicyFactory
- CustomPolicyFactory(boolean) - Constructor for class com.yahoo.messagebus.routing.test.CustomPolicyFactory
- CustomPolicyFactory(boolean, int) - Constructor for class com.yahoo.messagebus.routing.test.CustomPolicyFactory
- CustomPolicyFactory(boolean, List<Integer>) - Constructor for class com.yahoo.messagebus.routing.test.CustomPolicyFactory
D
- decode(Version, byte[]) - Method in interface com.yahoo.messagebus.Protocol
-
Decodes the protocol specific data into a routable of the correct type.
- decode(Version, byte[]) - Method in class com.yahoo.messagebus.test.SimpleProtocol
- decode(Utf8Array, Version, byte[]) - Method in class com.yahoo.messagebus.network.rpc.RPCSend
- decode(String) - Static method in class com.yahoo.messagebus.TraceNode
-
Build a trace tree from the given string representation (possibly encoded using
TraceNode.encode()
). - DECODE_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
An error occurred while decoding the message.
- dedicated(Network) - Static method in class com.yahoo.messagebus.network.NetworkMultiplexer
-
Returns a network multiplexer with a single
NetworkOwner
, which shuts down when this owner detaches. - deliverMessage(Message, MessageHandler) - Method in class com.yahoo.messagebus.Messenger
-
Convenience method to post a
Messenger.Task
that delivers aMessage
to aMessageHandler
to the queue of tasks to be executed. - deliverMessage(Message, String) - Method in class com.yahoo.messagebus.MessageBus
- deliverMessage(Message, String) - Method in class com.yahoo.messagebus.network.NetworkMultiplexer
- deliverMessage(Message, String) - Method in interface com.yahoo.messagebus.network.NetworkOwner
-
All messages that arrive in the network layer is passed to its owner through this function.
- deliverReply(Reply, ReplyHandler) - Method in class com.yahoo.messagebus.MessageBus
- deliverReply(Reply, ReplyHandler) - Method in class com.yahoo.messagebus.Messenger
-
Convenience method to post a
Messenger.Task
that delivers aReply
to aReplyHandler
to the queue of tasks to be executed. - dequeue() - Method in class com.yahoo.messagebus.test.QueueAdapter
- DestinationSession - Class in com.yahoo.messagebus
-
A session supporting receiving and replying to messages.
- DestinationSessionParams - Class in com.yahoo.messagebus
-
To facilitate several configuration parameters to the
MessageBus.createDestinationSession(DestinationSessionParams)
, all parameters are held by this class. - DestinationSessionParams() - Constructor for class com.yahoo.messagebus.DestinationSessionParams
-
Constructs a new instance of this class with default values.
- DestinationSessionParams(DestinationSessionParams) - Constructor for class com.yahoo.messagebus.DestinationSessionParams
-
Implements the copy constructor.
- destroy() - Method in class com.yahoo.messagebus.DestinationSession
-
Sets the destroyed flag to true.
- destroy() - Method in class com.yahoo.messagebus.IntermediateSession
-
Sets the destroyed flag to true.
- destroy() - Method in class com.yahoo.messagebus.MessageBus
-
Sets the destroyed flag to true.
- destroy() - Method in class com.yahoo.messagebus.Messenger
-
Sets the destroyed flag to true.
- destroy() - Method in interface com.yahoo.messagebus.Messenger.Task
-
This method is called for all tasks, even if
Messenger.Task.run()
was never called. - destroy() - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
-
Sets the destroyed flag to true.
- destroy() - Method in class com.yahoo.messagebus.network.rpc.test.TestServer
-
Sets the destroyed flag to true.
- destroy() - Method in class com.yahoo.messagebus.NetworkMessageBus
-
Irreversibly destroys the content of this.
- destroy() - Method in class com.yahoo.messagebus.routing.Resender
-
Discards all the routing nodes currently scheduled for resending.
- destroy() - Method in interface com.yahoo.messagebus.routing.RoutingPolicy
-
Destroys this factory and frees up any resources it has held.
- destroy() - Method in class com.yahoo.messagebus.routing.test.CustomPolicy
- destroy() - Method in class com.yahoo.messagebus.RPCMessageBus
-
Sets the destroyed flag to true.
- destroy() - Method in class com.yahoo.messagebus.Sequencer
-
Sets the destroyed flag to true.
- destroy() - Method in class com.yahoo.messagebus.SourceSession
-
Sets the destroyed flag to true.
- detach(NetworkOwner) - Method in class com.yahoo.messagebus.network.NetworkMultiplexer
-
Detach the network owner from this, no longer allowing messages to it, and shutting down this is ownerless.
- discard() - Method in class com.yahoo.messagebus.Routable
-
Discards this routable.
- discard() - Method in class com.yahoo.messagebus.routing.RoutingNode
-
Discards this routing node.
- disconnect() - Method in interface com.yahoo.messagebus.Connectable
- disconnect() - Method in class com.yahoo.messagebus.DestinationSession
- disconnect() - Method in class com.yahoo.messagebus.IntermediateSession
- disown() - Method in class com.yahoo.messagebus.network.NetworkMultiplexer
-
Signal that external ownership of this is relinquished, allowing destruction on last owner detachment.
- dispatchGetConfig(ConfigInstance.Producer) - Method in class com.yahoo.messagebus.MessagebusConfig.Builder
- DynamicThrottlePolicy - Class in com.yahoo.messagebus
-
This is an implementation of the
ThrottlePolicy
that offers dynamic limits to the number of pending messages aSourceSession
is allowed to have. - DynamicThrottlePolicy() - Constructor for class com.yahoo.messagebus.DynamicThrottlePolicy
-
Constructs a new instance of this policy and sets the appropriate default values of member data.
- DynamicThrottlePolicy(Timer) - Constructor for class com.yahoo.messagebus.DynamicThrottlePolicy
-
Constructs a new instance of this class using the given clock to calculate efficiency.
E
- EmptyReply - Class in com.yahoo.messagebus
-
The empty reply is the only concrete implementation of a message that is offered by the MessageBus.
- EmptyReply() - Constructor for class com.yahoo.messagebus.EmptyReply
- encode() - Method in class com.yahoo.messagebus.TraceNode
-
Returns a parseable (using
TraceNode.decode(String)
) string representation of this trace node. - encode(Version, Routable) - Method in interface com.yahoo.messagebus.Protocol
-
Encodes the protocol specific data of a routable into a byte array.
- encode(Version, Routable) - Method in class com.yahoo.messagebus.test.SimpleProtocol
- ENCODE_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
An error occured while encoding the message.
- encodeRequest(Version, Route, RPCServiceAddress, Message, long, byte[], int) - Method in class com.yahoo.messagebus.network.rpc.RPCSend
- encodeRequest(Version, Route, RPCServiceAddress, Message, long, byte[], int) - Method in class com.yahoo.messagebus.network.rpc.RPCSendV2
- enqueue(Messenger.Task) - Method in class com.yahoo.messagebus.Messenger
-
Enqueues the given task in the list of tasks that this worker is to process.
- equals(Object) - Method in class com.yahoo.messagebus.network.rpc.RPCServiceAddress
- equals(Object) - Method in class com.yahoo.messagebus.routing.ErrorDirective
- equals(Object) - Method in class com.yahoo.messagebus.routing.Hop
- equals(Object) - Method in class com.yahoo.messagebus.routing.HopSpec
- equals(Object) - Method in class com.yahoo.messagebus.routing.PolicyDirective
- equals(Object) - Method in class com.yahoo.messagebus.routing.Route
- equals(Object) - Method in class com.yahoo.messagebus.routing.RouteDirective
- equals(Object) - Method in class com.yahoo.messagebus.routing.RouteSpec
- equals(Object) - Method in class com.yahoo.messagebus.routing.RoutingSpec
- equals(Object) - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
- equals(Object) - Method in class com.yahoo.messagebus.routing.TcpDirective
- equals(Object) - Method in class com.yahoo.messagebus.routing.VerbatimDirective
- Error - Class in com.yahoo.messagebus
-
This class implements the pair (code, message) that is used in Reply to hold errors.
- Error(int, String) - Constructor for class com.yahoo.messagebus.Error
-
This is the constructor used by anyone adding an error to a message.
- Error(int, String, String) - Constructor for class com.yahoo.messagebus.Error
-
This constructor is used by the network layer to properly tag deserialized errors with the hostname of whatever service produced the error.
- ERROR - Static variable in class com.yahoo.messagebus.TraceLevel
-
Traces whenever an Error is added to a Reply.
- ERROR_LIMIT - Static variable in class com.yahoo.messagebus.ErrorCode
-
No error codes are allowed to be this big.
- ErrorCode - Class in com.yahoo.messagebus
-
This interface contains the reserved error codes that are used for errors that occur within the messagebus.
- ErrorCode() - Constructor for class com.yahoo.messagebus.ErrorCode
- ErrorDirective - Class in com.yahoo.messagebus.routing
-
This class represents an error directive within a
Hop
's selector. - ErrorDirective(String) - Constructor for class com.yahoo.messagebus.routing.ErrorDirective
-
Constructs a new error directive.
F
- FATAL_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
A general non-recoverable error, resending is not possible.
- flushTargetPool() - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
-
The network uses a cache of RPC targets (see
RPCTargetPool
) that allows it to save time by reusing open connections. - flushTargets(boolean) - Method in class com.yahoo.messagebus.network.rpc.RPCTargetPool
-
Closes all unused target connections.
- forward(Routable) - Method in class com.yahoo.messagebus.IntermediateSession
-
Forwards a routable to the next hop in its route.
- freeServiceAddress(RoutingNode) - Method in class com.yahoo.messagebus.network.local.LocalNetwork
- freeServiceAddress(RoutingNode) - Method in interface com.yahoo.messagebus.network.Network
-
Frees the service address from the given routing node.
- freeServiceAddress(RoutingNode) - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
G
- getAllRecipients() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns all configured recipients for this hop.
- getApplyOnRestart() - Method in class com.yahoo.messagebus.MessagebusConfig.Builder
- getApproxSize() - Method in class com.yahoo.messagebus.Message
-
Obtain the approximate size of this message object in bytes.
- getApproxSize() - Method in class com.yahoo.messagebus.test.SimpleMessage
- getBroadcastName() - Method in class com.yahoo.messagebus.DestinationSessionParams
-
Returns whether or not to broadcast the name of this session on the network.
- getBroadcastName() - Method in class com.yahoo.messagebus.IntermediateSessionParams
-
Returns whether or not to broadcast the name of this session on the network.
- getBucketSequence() - Method in class com.yahoo.messagebus.Message
-
Returns the identifier used to order message buckets.
- getCallStack() - Method in class com.yahoo.messagebus.Routable
-
Returns the callstack of this routable.
- getChild(int) - Method in class com.yahoo.messagebus.TraceNode
-
Returns the child trace node at the given index.
- getChildIterator() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns an iterator for the child routing nodes of the owning node.
- getCode() - Method in class com.yahoo.messagebus.Error
-
Return the numerical code of this error.
- getConfig(MessagebusConfig.Builder) - Method in interface com.yahoo.messagebus.MessagebusConfig.Producer
- getConnectionExpireSecs() - Method in class com.yahoo.messagebus.network.rpc.RPCNetworkParams
-
Returns the number of seconds before an idle network connection expires.
- getConnectionSpec() - Method in class com.yahoo.messagebus.DestinationSession
-
Returns the connection spec string for this session.
- getConnectionSpec() - Method in class com.yahoo.messagebus.IntermediateSession
-
Returns the connection spec string for this session.
- getConnectionSpec() - Method in class com.yahoo.messagebus.MessageBus
-
Returns the connection spec string for the network layer of this message bus.
- getConnectionSpec() - Method in class com.yahoo.messagebus.network.local.LocalNetwork
- getConnectionSpec() - Method in interface com.yahoo.messagebus.network.Network
-
Returns a string that represents the connection specs of this network.
- getConnectionSpec() - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
- getConnectionSpec() - Method in class com.yahoo.messagebus.network.rpc.RPCServiceAddress
-
Returns the connection spec for the remote service.
- getContext() - Method in class com.yahoo.messagebus.Routable
-
Returns the context of this routable.
- getContext() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns the policy specific context object.
- getCount(String) - Method in class com.yahoo.messagebus.network.rpc.test.SlobrokState
- getDefMd5() - Method in class com.yahoo.messagebus.MessagebusConfig.Builder
- getDefMd5() - Static method in class com.yahoo.messagebus.MessagebusConfig
- getDefName() - Method in class com.yahoo.messagebus.MessagebusConfig.Builder
- getDefName() - Static method in class com.yahoo.messagebus.MessagebusConfig
- getDefNamespace() - Method in class com.yahoo.messagebus.MessagebusConfig.Builder
- getDefNamespace() - Static method in class com.yahoo.messagebus.MessagebusConfig
- getDirective() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns the policy directive that spawned this.
- getDirective(int) - Method in class com.yahoo.messagebus.routing.Hop
-
Returns the directive at the given index.
- getDirective(int) - Method in class com.yahoo.messagebus.routing.HopBlueprint
-
Returns the directive at the given index.
- getDirectiveIndex() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns the index of the hop directive that spawned this.
- getError() - Method in class com.yahoo.messagebus.Result
-
The error resulting from this send/forward if the message was not accepted.
- getError(int) - Method in class com.yahoo.messagebus.Reply
-
Returns the error at the given position.
- getErrorCodes() - Method in class com.yahoo.messagebus.Reply
-
Retrieves a set of integer error codes
- getErrors() - Method in class com.yahoo.messagebus.Reply
-
Retrieves a (read only) stream of the errors in this reply
- getHop() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns the hop that contains the routing policy that spawned this.
- getHop() - Method in class com.yahoo.messagebus.routing.RoutingTable.HopIterator
-
Returns the current hop.
- getHop(int) - Method in class com.yahoo.messagebus.routing.Route
-
Returns the hop at the given index.
- getHop(int) - Method in class com.yahoo.messagebus.routing.RouteSpec
-
Returns the hop name at the given index.
- getHop(int) - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Returns the hop spec at the given index.
- getHop(String) - Method in class com.yahoo.messagebus.routing.RoutingTable
-
Returns the named hop, may be null.
- getHopIterator() - Method in class com.yahoo.messagebus.routing.RoutingTable
-
Returns an iterator for the hops of this table.
- getHopPrefix() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns the part of the route string that precedes the active policy directive.
- getHopSuffix() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns the remainder of the route string immediately following the active policy directive.
- getHost() - Method in class com.yahoo.messagebus.routing.TcpDirective
-
Returns the host to connect to.
- getHostname() - Method in class com.yahoo.messagebus.network.Identity
-
Returns the hostname for this.
- getIdentity() - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
-
Returns the identity of this network.
- getIdentity() - Method in class com.yahoo.messagebus.network.rpc.RPCNetworkParams
-
Returns the identity to use for the network.
- getIgnoreResult() - Method in class com.yahoo.messagebus.routing.Hop
-
Returns whether or not to ignore the result when routing through this hop.
- getIgnoreResult() - Method in class com.yahoo.messagebus.routing.HopBlueprint
-
Returns whether or not to ignore the result when routing through this hop.
- getIgnoreResult() - Method in class com.yahoo.messagebus.routing.HopSpec
-
Returns whether or not to ignore the result when routing through this hop.
- getImage() - Method in class com.yahoo.messagebus.routing.VerbatimDirective
-
Returns the image to which this is a verbatim match.
- getLevel() - Method in class com.yahoo.messagebus.Trace
-
Returns the trace level.
- getListenPort() - Method in class com.yahoo.messagebus.network.rpc.RPCNetworkParams
-
Returns the port to listen to.
- getMatchedRecipients() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns a list of all configured recipients whose first hop matches this.
- getMaxInputBufferSize() - Method in class com.yahoo.messagebus.network.rpc.RPCNetworkParams
-
Returns the maximum input buffer size allowed for the underlying FNET connection.
- getMaxPendingCount() - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Returns the maximum number of pending messages allowed.
- getMaxPendingCount() - Method in class com.yahoo.messagebus.MessageBus
-
Deprecated.
- getMaxPendingCount() - Method in class com.yahoo.messagebus.MessageBusParams
-
Returns the maximum number of pending messages.
- getMaxPendingCount() - Method in class com.yahoo.messagebus.StaticThrottlePolicy
-
Returns the maximum number of pending messages allowed.
- getMaxPendingSize() - Method in class com.yahoo.messagebus.MessageBus
-
Deprecated.
- getMaxPendingSize() - Method in class com.yahoo.messagebus.MessageBusParams
-
Returns the maximum number of bytes allowed for pending messages.
- getMaxPendingSize() - Method in class com.yahoo.messagebus.StaticThrottlePolicy
-
Returns the maximum total size of pending messages allowed.
- getMaxWindowSize() - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Get the maximum number of pending operations allowed at any time.
- getMessage() - Method in class com.yahoo.messagebus.Error
-
Return the description of this error.
- getMessage() - Method in class com.yahoo.messagebus.Reply
-
Returns the message to which this is a reply.
- getMessage() - Method in class com.yahoo.messagebus.routing.ErrorDirective
-
Returns the error string that is to be assigned to the reply.
- getMessage() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns the message being routed.
- getMessage() - Method in class com.yahoo.messagebus.routing.RoutingNode
-
Returns the message being routed.
- getMessage(int) - Method in class com.yahoo.messagebus.test.Receptor
- getMessageBus() - Method in class com.yahoo.messagebus.NetworkMessageBus
-
Returns the contained message bus object
- getMessageBus() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns the message bus instance on which this is running.
- getMessageBusConfig() - Method in class com.yahoo.messagebus.MessageBusParams
- getMessageHandler() - Method in class com.yahoo.messagebus.DestinationSession
-
Returns the message handler of this session.
- getMessageHandler() - Method in class com.yahoo.messagebus.DestinationSessionParams
-
Returns the handler to receive incoming messages.
- getMessageHandler() - Method in class com.yahoo.messagebus.IntermediateSession
-
Returns the message handler of this session
- getMessageHandler() - Method in class com.yahoo.messagebus.IntermediateSessionParams
-
Returns the handler to receive incoming messages.
- getMinWindowSize() - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Get the minimum number of pending operations allowed at any time.
- getMirror() - Method in class com.yahoo.messagebus.network.local.LocalNetwork
- getMirror() - Method in interface com.yahoo.messagebus.network.Network
-
Returns a reference to a name server mirror.
- getMirror() - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
- getMirror() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns the local mirror of the system's name server.
- getName() - Method in class com.yahoo.messagebus.DestinationSession
-
Returns the name of this session.
- getName() - Method in class com.yahoo.messagebus.DestinationSessionParams
-
Returns the name to register with message bus.
- getName() - Method in class com.yahoo.messagebus.IntermediateSession
-
Returns the name of this session
- getName() - Method in class com.yahoo.messagebus.IntermediateSessionParams
-
Returns the name to register with message bus.
- getName() - Method in interface com.yahoo.messagebus.Protocol
-
Returns a global unique name for this protocol.
- getName() - Method in class com.yahoo.messagebus.routing.HopSpec
-
Returns the protocol-unique name of this hop.
- getName() - Method in class com.yahoo.messagebus.routing.PolicyDirective
-
Returns the name of the policy that this item is to invoke.
- getName() - Method in class com.yahoo.messagebus.routing.RouteDirective
-
Returns the name of the route to insert.
- getName() - Method in class com.yahoo.messagebus.routing.RouteSpec
-
Returns the protocol-unique name of this route.
- getName() - Method in class com.yahoo.messagebus.routing.RoutingTable.HopIterator
-
Returns the name of the current hop.
- getName() - Method in class com.yahoo.messagebus.routing.RoutingTable.RouteIterator
-
Returns the name of the current route.
- getName() - Method in class com.yahoo.messagebus.test.SimpleProtocol
- getName(int) - Static method in class com.yahoo.messagebus.ErrorCode
-
Translates the given error code into its symbolic name.
- getNetwork() - Method in class com.yahoo.messagebus.network.local.LocalServiceAddress
- getNetwork() - Method in class com.yahoo.messagebus.NetworkMessageBus
-
Returns the network of this as a Network
- getNote() - Method in class com.yahoo.messagebus.TraceNode
-
Returns the note assigned to this node.
- getNumChildren() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns the number of children the owning routing node has.
- getNumChildren() - Method in class com.yahoo.messagebus.TraceNode
-
Returns the number of child nodes of this.
- getNumDirectives() - Method in class com.yahoo.messagebus.routing.Hop
-
Returns the number of directives contained in this hop.
- getNumDirectives() - Method in class com.yahoo.messagebus.routing.HopBlueprint
-
Returns the number of directives contained in this hop.
- getNumErrors() - Method in class com.yahoo.messagebus.Reply
-
Returns the number of errors that this reply contains.
- getNumHops() - Method in class com.yahoo.messagebus.routing.Route
-
Returns the number of hops that make up this route.
- getNumHops() - Method in class com.yahoo.messagebus.routing.RouteSpec
-
Returns the number of hops that make up this route.
- getNumHops() - Method in class com.yahoo.messagebus.routing.RoutingTable
-
Returns the number of hops that are contained in this.
- getNumHops() - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Returns the number of hops that are contained in this table.
- getNumProtocols() - Method in class com.yahoo.messagebus.MessageBusParams
-
Returns the number of protocols that are contained in this.
- getNumRecipients() - Method in class com.yahoo.messagebus.routing.HopBlueprint
-
Returns the number of recipients that the selector can choose from.
- getNumRecipients() - Method in class com.yahoo.messagebus.routing.HopSpec
-
Returns the number of recipients that the selector can choose from.
- getNumRecipients() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns the number of configured recipients for this hop.
- getNumRoutes() - Method in class com.yahoo.messagebus.routing.RoutingTable
-
Returns the number of routes that are contained in this.
- getNumRoutes() - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Returns the number of route specs contained in this.
- getNumTables() - Method in class com.yahoo.messagebus.routing.RoutingSpec
-
Returns the number of routing table specs that are contained in this.
- getParam() - Method in class com.yahoo.messagebus.routing.PolicyDirective
-
Returns the parameter string for this policy directive.
- getPatterns() - Method in class com.yahoo.messagebus.network.rpc.test.SlobrokState
- getPendingCount() - Method in class com.yahoo.messagebus.MessageBus
-
Deprecated.
- getPendingCount() - Method in class com.yahoo.messagebus.SourceSession
-
Returns the number of messages sent that have not been replied to yet
- getPendingSize() - Method in class com.yahoo.messagebus.MessageBus
-
Deprecated.
- getPendingSize() - Method in class com.yahoo.messagebus.StaticThrottlePolicy
-
Returns the total size of pending messages.
- getPort() - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
-
Returns the port number this network listens to.
- getPort() - Method in class com.yahoo.messagebus.routing.TcpDirective
-
Returns the port to connect to on the remove host.
- getPrefix(int) - Method in class com.yahoo.messagebus.routing.Hop
-
Returns the prefix of this hop's selector to, but not including, the given index.
- getProtocol() - Method in class com.yahoo.messagebus.EmptyReply
-
Implements the getProtocol() function of Routable to identify this reply as the reserved type.
- getProtocol() - Method in class com.yahoo.messagebus.Routable
-
Return the name of the protocol that defines this routable.
- getProtocol() - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Returns the name of the protocol that this is the routing table for.
- getProtocol() - Method in class com.yahoo.messagebus.test.SimpleMessage
- getProtocol() - Method in class com.yahoo.messagebus.test.SimpleReply
- getProtocol(int) - Method in class com.yahoo.messagebus.MessageBusParams
-
Returns the protocol at the given index.
- getProtocol(Utf8Array) - Method in class com.yahoo.messagebus.MessageBus
- getProtocol(Utf8Array) - Method in class com.yahoo.messagebus.network.NetworkMultiplexer
- getProtocol(Utf8Array) - Method in interface com.yahoo.messagebus.network.NetworkOwner
-
All messages are sent across the network with its accompanying protocol name so that it can be decoded at the receiving end.
- getProtocol(String) - Method in class com.yahoo.messagebus.ProtocolRepository
-
Returns the protocol whose name matches the given argument.
- getRecipient(int) - Method in class com.yahoo.messagebus.routing.HopBlueprint
-
Returns the recipient at the given index.
- getRecipient(int) - Method in class com.yahoo.messagebus.routing.HopSpec
-
Returns the recipients at the given index.
- getRecipient(int) - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns the configured recipient at the given index.
- getReply() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns the reply generated by the associated routing policy.
- getReply(int) - Method in class com.yahoo.messagebus.test.Receptor
- getReplyHandler() - Method in class com.yahoo.messagebus.IntermediateSession
-
Returns the reply handler of this session.
- getReplyHandler() - Method in class com.yahoo.messagebus.IntermediateSessionParams
-
Returns the handler to receive incoming replies.
- getReplyHandler() - Method in class com.yahoo.messagebus.SourceSession
-
Returns the reply handler of this session
- getReplyHandler() - Method in class com.yahoo.messagebus.SourceSessionParams
-
Returns the handler to receive incoming replies.
- getReplyRef() - Method in class com.yahoo.messagebus.routing.RoutingNodeIterator
-
Returns the reply of the current child.
- getResender() - Method in class com.yahoo.messagebus.MessageBus
-
Deprecated.
- getRetry() - Method in class com.yahoo.messagebus.Message
-
Returns the number of times the sending of this message has been retried.
- getRetryDelay() - Method in class com.yahoo.messagebus.Reply
-
Returns the retry request of this reply.
- getRetryDelay(int) - Method in interface com.yahoo.messagebus.routing.RetryPolicy
-
Returns the number of seconds to delay resending a message.
- getRetryDelay(int) - Method in class com.yahoo.messagebus.routing.RetryTransientErrorsPolicy
- getRetryEnabled() - Method in class com.yahoo.messagebus.Message
-
Returns whether or not this message can be resent.
- getRetryPolicy() - Method in class com.yahoo.messagebus.MessageBusParams
-
Returns the retry policy for the resender.
- getReturnSpec() - Method in class com.yahoo.messagebus.network.rpc.RPCSend
- getReturnSpec() - Method in class com.yahoo.messagebus.network.rpc.RPCSendV2
- getRoot() - Method in class com.yahoo.messagebus.Trace
-
Returns the root of the trace tree.
- getRoute() - Method in class com.yahoo.messagebus.Message
-
Returns the route of this routable
- getRoute() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns the route that contains the routing policy that spawned this.
- getRoute() - Method in class com.yahoo.messagebus.routing.RoutingNode
-
Returns the route object as it exists at this point of the tree.
- getRoute() - Method in class com.yahoo.messagebus.routing.RoutingNodeIterator
-
Returns the route of the current child.
- getRoute() - Method in class com.yahoo.messagebus.routing.RoutingTable.RouteIterator
-
Returns the current route.
- getRoute(int) - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Returns the route spec at the given index.
- getRoute(String) - Method in class com.yahoo.messagebus.routing.RoutingTable
-
Returns the named route, may be null.
- getRouteIterator() - Method in class com.yahoo.messagebus.routing.RoutingTable
-
Returns an iterator for the routes of this table.
- getRoutingPolicy(Utf8String, String, String) - Method in class com.yahoo.messagebus.MessageBus
-
Returns a routing policy that corresponds to the argument protocol name, policy name and policy parameter.
- getRoutingPolicy(Utf8String, String, String) - Method in class com.yahoo.messagebus.ProtocolRepository
- getRoutingPolicy(String, String, String) - Method in class com.yahoo.messagebus.MessageBus
-
Returns a routing policy that corresponds to the argument protocol name, policy name and policy parameter.
- getRoutingPolicy(String, String, String) - Method in class com.yahoo.messagebus.ProtocolRepository
-
Creates and returns a routing policy that matches the given arguments.
- getRoutingTable(Utf8String) - Method in class com.yahoo.messagebus.MessageBus
-
Returns a named routing table, may return null.
- getRoutingTable(String) - Method in class com.yahoo.messagebus.MessageBus
-
Returns a named routing table, may return null.
- getRPCNetwork() - Method in class com.yahoo.messagebus.RPCMessageBus
-
Returns the network of this as a RPCNetwork
- getSelectOnRetry() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns whether or not the policy is required to reselect if resending occurs.
- getSelector() - Method in class com.yahoo.messagebus.routing.HopSpec
-
Returns the string selector that resolves the recipients of this hop.
- getSendAdapter(Version) - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
-
Determines and returns the send adapter that is compatible with the given version.
- getSequenceId() - Method in class com.yahoo.messagebus.Message
-
Returns the identifier used to order messages.
- getService() - Method in class com.yahoo.messagebus.Error
-
Returns the name of the service on which this error occured.
- getServiceAddress() - Method in class com.yahoo.messagebus.routing.RoutingNode
-
Returns the service address of this node.
- getServiceName() - Method in class com.yahoo.messagebus.network.rpc.RPCServiceAddress
-
Returns the name of the remove service.
- getServiceName() - Method in class com.yahoo.messagebus.routing.Hop
-
Returns the service name referenced by this hop.
- getServicePrefix() - Method in class com.yahoo.messagebus.network.Identity
-
Returns the service prefix for this.
- getSession() - Method in class com.yahoo.messagebus.routing.TcpDirective
-
Returns the name of the session to route to.
- getSessionName() - Method in class com.yahoo.messagebus.network.local.LocalServiceAddress
- getSessionName() - Method in class com.yahoo.messagebus.network.rpc.RPCServiceAddress
-
Returns the name of the remote session.
- getSize() - Method in class com.yahoo.messagebus.network.rpc.RPCServicePool
-
Returns the number of services available in the pool.
- getSlobrokConfig(Slobrok) - Static method in class com.yahoo.messagebus.network.rpc.test.TestServer
-
Returns the raw config needed to connect to the given slobrok.
- getSlobrokConfigId() - Method in class com.yahoo.messagebus.network.rpc.RPCNetworkParams
-
Returns the config id of the slobrok config.
- getSlobroks() - Method in class com.yahoo.messagebus.network.rpc.SlobrokConfigSubscriber
-
Returns the current slobroks config as an array of connection spec strings.
- getSlobroksConfig() - Method in class com.yahoo.messagebus.network.rpc.RPCNetworkParams
-
Returns the 'slobroks' config, if set, otherwise null.
- getSuffix(int) - Method in class com.yahoo.messagebus.routing.Hop
-
Returns the suffix of this hop's selector from, but not including, the given index.
- getTable(int) - Method in class com.yahoo.messagebus.routing.RoutingSpec
-
Returns the routing table spec at the given index.
- getTarget() - Method in class com.yahoo.messagebus.network.rpc.RPCServiceAddress
-
Returns the RPC target to be used when communicating with the remove service.
- getTarget(Supervisor, RPCServiceAddress) - Method in class com.yahoo.messagebus.network.rpc.RPCTargetPool
-
This method will return a target for the given address.
- getThrottlePolicy() - Method in class com.yahoo.messagebus.SourceSession
- getThrottlePolicy() - Method in class com.yahoo.messagebus.SourceSessionParams
-
Returns the policy to use for throttling output.
- getTimeout() - Method in class com.yahoo.messagebus.SourceSessionParams
-
Returns the number of seconds a message can spend trying to succeed.
- getTimeReceived() - Method in class com.yahoo.messagebus.Message
-
Returns the timestamp for when this message was last seen by message bus.
- getTimeRemaining() - Method in class com.yahoo.messagebus.Message
-
Returns the number of milliseconds that remain before this message times out.
- getTimeRemainingNow() - Method in class com.yahoo.messagebus.Message
-
Returns the number of milliseconds that remain right now before this message times out.
- getTrace() - Method in class com.yahoo.messagebus.Routable
-
Returns the trace object of this routable.
- getTrace() - Method in class com.yahoo.messagebus.routing.RoutingNode
-
Returns the trace object for this node.
- getTransportEventsBeforeWakeup() - Method in class com.yahoo.messagebus.network.rpc.RPCNetworkParams
- getType() - Method in class com.yahoo.messagebus.EmptyReply
-
Implements the getType() function of the root class Routable to identify this reply as the reserved type '0'.
- getType() - Method in class com.yahoo.messagebus.Routable
-
Returns the type of this routable.
- getType() - Method in class com.yahoo.messagebus.test.SimpleMessage
- getType() - Method in class com.yahoo.messagebus.test.SimpleReply
- getValue() - Method in class com.yahoo.messagebus.test.SimpleMessage
- getValue() - Method in class com.yahoo.messagebus.test.SimpleReply
- getVersion() - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
-
Returns the version of this network.
- getVersion() - Method in class com.yahoo.messagebus.network.rpc.test.TestServer.VersionedRPCNetwork
- getWindowSizeBackOff() - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
- getWindowSizeIncrement() - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
H
- handleMessage(Message) - Method in class com.yahoo.messagebus.DestinationSession
- handleMessage(Message) - Method in class com.yahoo.messagebus.IntermediateSession
- handleMessage(Message) - Method in class com.yahoo.messagebus.MessageBus
- handleMessage(Message) - Method in interface com.yahoo.messagebus.MessageHandler
-
This function is called when a message arrives.
- handleMessage(Message) - Method in class com.yahoo.messagebus.SendProxy
- handleMessage(Message) - Method in class com.yahoo.messagebus.Sequencer
-
All messages pass through this handler when being sent by the owning source session.
- handleMessage(Message) - Method in class com.yahoo.messagebus.test.QueueAdapter
- handleMessage(Message) - Method in class com.yahoo.messagebus.test.Receptor
- handleReply(Reply) - Method in class com.yahoo.messagebus.IntermediateSession
- handleReply(Reply) - Method in class com.yahoo.messagebus.MessageBus
- handleReply(Reply) - Method in class com.yahoo.messagebus.network.rpc.RPCSend
- handleReply(Reply) - Method in interface com.yahoo.messagebus.ReplyHandler
-
This function is called when a reply arrives.
- handleReply(Reply) - Method in class com.yahoo.messagebus.routing.RoutingNode
-
Proxy through message bus in case it was destroyed in the meantime.
- handleReply(Reply) - Method in class com.yahoo.messagebus.SendProxy
- handleReply(Reply) - Method in class com.yahoo.messagebus.Sequencer
-
Lookup the sequencing id of an incoming reply to pop the front of the corresponding queue, and then send the next message in line, if any.
- handleReply(Reply) - Method in class com.yahoo.messagebus.SourceSession
- handleReply(Reply) - Method in class com.yahoo.messagebus.test.QueueAdapter
- handleReply(Reply) - Method in class com.yahoo.messagebus.test.Receptor
- handleRequestDone(Request) - Method in class com.yahoo.messagebus.network.rpc.RPCSend
- handleRequestDone(Request) - Method in class com.yahoo.messagebus.network.rpc.RPCTarget
- handleVersion(Version) - Method in interface com.yahoo.messagebus.network.rpc.RPCTarget.VersionHandler
-
This method is invoked once the version of the corresponding
RPCTarget
becomes available. - HANDSHAKE_FAILED - Static variable in class com.yahoo.messagebus.ErrorCode
-
Version handshake failed for any reason.
- hasBucketSequence() - Method in class com.yahoo.messagebus.Message
-
Returns whether or not this message contains a sequence bucket that should be respected, i.e.
- hasChildren() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns whether or not the owning routing node has any child nodes.
- hasDirectives() - Method in class com.yahoo.messagebus.routing.Hop
-
Returns whether or not there are any directives contained in this hop.
- hasDirectives() - Method in class com.yahoo.messagebus.routing.HopBlueprint
-
Returns whether or not there are any directives contained in this hop.
- hasErrors() - Method in class com.yahoo.messagebus.Reply
-
Returns whether or not this reply contains any errors.
- hasFatalErrors() - Method in class com.yahoo.messagebus.Reply
-
Returns whether or not this reply contains any fatal errors.
- hashCode() - Method in class com.yahoo.messagebus.network.rpc.RPCServiceAddress
- hashCode() - Method in class com.yahoo.messagebus.routing.ErrorDirective
- hashCode() - Method in class com.yahoo.messagebus.routing.Hop
- hashCode() - Method in class com.yahoo.messagebus.routing.HopSpec
- hashCode() - Method in class com.yahoo.messagebus.routing.PolicyDirective
- hashCode() - Method in class com.yahoo.messagebus.routing.Route
- hashCode() - Method in class com.yahoo.messagebus.routing.RouteDirective
- hashCode() - Method in class com.yahoo.messagebus.routing.RouteSpec
- hashCode() - Method in class com.yahoo.messagebus.routing.RoutingSpec
- hashCode() - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
- hashCode() - Method in class com.yahoo.messagebus.routing.TcpDirective
- hashCode() - Method in class com.yahoo.messagebus.routing.VerbatimDirective
- hasHop(String) - Method in class com.yahoo.messagebus.routing.RoutingTable
-
Returns whether or not there exists a named hop in this.
- hasHop(String) - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Returns whether or not there is a named hop spec contained in this.
- hasHops() - Method in class com.yahoo.messagebus.routing.Route
-
Returns whether or not there are any hops in this route.
- hasHops() - Method in class com.yahoo.messagebus.routing.RouteSpec
-
Returns whether or not there are any hops in this route.
- hasHops() - Method in class com.yahoo.messagebus.routing.RoutingTable
-
Returns whether or not there are any hops in this routing table.
- hasHops() - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Returns whether or not there are any hop specs contained in this.
- hasNote() - Method in class com.yahoo.messagebus.TraceNode
-
Returns whether or not a note is assigned to this node.
- hasProtocol(String) - Method in class com.yahoo.messagebus.ProtocolRepository
-
Returns whether or not this repository contains a protocol with the given name.
- hasRecipients() - Method in class com.yahoo.messagebus.routing.HopBlueprint
-
Returns whether or not there are any recipients that the selector can choose from.
- hasRecipients() - Method in class com.yahoo.messagebus.routing.HopSpec
-
Returns whether or not there are any recipients that the selector can choose from.
- hasRecipients() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns whether or not this hop has any configured recipients.
- hasReply() - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns whether or not a reply is available.
- hasReply() - Method in class com.yahoo.messagebus.routing.RoutingNodeIterator
-
Returns whether or not a reply is set in the current child.
- hasRoute(String) - Method in class com.yahoo.messagebus.routing.RoutingTable
-
Returns whether or not there exists a named route in this.
- hasRoute(String) - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Returns whether or not there is a named route spec contained in this.
- hasRoutes() - Method in class com.yahoo.messagebus.routing.RoutingTable
-
Returns whether or not there are any routes in this routing table.
- hasRoutes() - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Returns whether or not there are any route specs contained in this.
- hasSequenceId() - Method in class com.yahoo.messagebus.Message
-
Returns whether or not this message contains a sequence identifier that should be respected, i.e.
- hasService(String) - Method in class com.yahoo.messagebus.network.rpc.RPCServicePool
-
Returns whether or not there is a service available in the pool the corresponds to the given pattern.
- hasTables() - Method in class com.yahoo.messagebus.routing.RoutingSpec
-
Returns whether or not there are routing table specs contained in this.
- hop - Variable in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
- hop - Variable in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route.Builder
- hop() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable
- hop() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route
- hop(int) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable
- hop(int) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route
- hop(MessagebusConfig.Routingtable.Hop.Builder) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
-
Add the given builder to this builder's list of Hop builders
- hop(String) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route.Builder
- hop(Collection<String>) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route.Builder
- hop(Consumer<MessagebusConfig.Routingtable.Hop.Builder>) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
-
Make a new builder and run the supplied function on it before adding it to the list
- hop(List<MessagebusConfig.Routingtable.Hop.Builder>) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
-
Set the given list as this builder's list of Hop builders
- Hop - Class in com.yahoo.messagebus.routing
-
Hops are the components of routes.
- Hop() - Constructor for class com.yahoo.messagebus.routing.Hop
-
Constructs an empty hop.
- Hop(MessagebusConfig.Routingtable.Hop.Builder) - Constructor for class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop
- Hop(Hop) - Constructor for class com.yahoo.messagebus.routing.Hop
-
Implements the copy constructor.
- HopBlueprint - Class in com.yahoo.messagebus.routing
-
A hop blueprint is a stored prototype of a hop that has been created from a
HopSpec
object. - HopDirective - Interface in com.yahoo.messagebus.routing
-
This class is the base class for the primitives that make up a
Hop
's selector. - HopSpec - Class in com.yahoo.messagebus.routing
-
Along with the
RoutingSpec
,RoutingTableSpec
andRouteSpec
, this holds the routing specifications for all protocols. - HopSpec(HopSpec) - Constructor for class com.yahoo.messagebus.routing.HopSpec
-
Implements the copy constructor.
- HopSpec(String, String) - Constructor for class com.yahoo.messagebus.routing.HopSpec
-
Creates a new named hop specification.
- HopSpec(String, String, boolean) - Constructor for class com.yahoo.messagebus.routing.HopSpec
-
Creates a new named hop specification.
I
- Identity - Class in com.yahoo.messagebus.network
-
This class encapsulates the identity of the application that uses this instance of message bus.
- Identity(Identity) - Constructor for class com.yahoo.messagebus.network.Identity
-
Implements the copy constructor.
- Identity(String) - Constructor for class com.yahoo.messagebus.network.Identity
-
The default constructor requires a configuration identifier that it will use to subscribe to this message bus' identity.
- ignoreresult() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop
- ignoreresult(boolean) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop.Builder
- ILLEGAL_ROUTE - Static variable in class com.yahoo.messagebus.ErrorCode
-
The route of the message is illegal.
- INCOMPATIBLE_VERSION - Static variable in class com.yahoo.messagebus.ErrorCode
-
The target is running an incompatible version.
- IntermediateSession - Class in com.yahoo.messagebus
-
A session which supports receiving, forwarding and acknowledging messages.
- IntermediateSessionParams - Class in com.yahoo.messagebus
-
To facilitate several configuration parameters to the
MessageBus.createIntermediateSession(IntermediateSessionParams)
, all parameters are held by this class. - IntermediateSessionParams() - Constructor for class com.yahoo.messagebus.IntermediateSessionParams
-
Constructs a new instance of this class with default values.
- IntermediateSessionParams(IntermediateSessionParams) - Constructor for class com.yahoo.messagebus.IntermediateSessionParams
-
Implements the copy constructor.
- invoke(Request) - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
- invoke(Request) - Method in class com.yahoo.messagebus.network.rpc.RPCSend
- isAccepted() - Method in class com.yahoo.messagebus.Result
-
Returns whether this message was accepted.
- isConsumableError(int) - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Returns whether or not the given error code may be consumed by the associated routing policy.
- isEmpty() - Method in class com.yahoo.messagebus.test.QueueAdapter
- isEmpty() - Method in class com.yahoo.messagebus.TraceNode
-
Check whether or not this node is empty, i.e.
- isExpired() - Method in class com.yahoo.messagebus.Message
-
Returns whether or not this message has expired.
- isFatal() - Method in class com.yahoo.messagebus.Error
-
Returns whether or not this error is fatal, i.e.
- isFatal(int) - Static method in class com.yahoo.messagebus.ErrorCode
- isLeaf() - Method in class com.yahoo.messagebus.TraceNode
-
Check whether or not this is a leaf node.
- isMalformed() - Method in class com.yahoo.messagebus.network.rpc.RPCServiceAddress
-
Returns whether or not this service address is malformed.
- isMBusError(int) - Static method in class com.yahoo.messagebus.ErrorCode
- isRoot() - Method in class com.yahoo.messagebus.TraceNode
-
Check whether or not this is a root node.
- isService(String, String) - Method in class com.yahoo.messagebus.routing.ApplicationSpec
-
Determines whether or not the given service pattern matches any of the known services.
- isStrict() - Method in class com.yahoo.messagebus.TraceNode
-
Check whether or not the children of this node are strictly ordered.
- isTransient(int) - Static method in class com.yahoo.messagebus.ErrorCode
- isValid() - Method in class com.yahoo.messagebus.routing.RoutingNodeIterator
-
Returns whether or not this iterator is valid.
- isValid() - Method in class com.yahoo.messagebus.routing.RoutingTable.HopIterator
-
Returns whether or not this iterator is valid.
- isValid() - Method in class com.yahoo.messagebus.routing.RoutingTable.RouteIterator
-
Returns whether or not this iterator is valid.
L
- LATENCY - Enum constant in enum class com.yahoo.messagebus.network.rpc.RPCNetworkParams.Optimization
- LocalNetwork - Class in com.yahoo.messagebus.network.local
- LocalNetwork() - Constructor for class com.yahoo.messagebus.network.local.LocalNetwork
- LocalNetwork(LocalWire) - Constructor for class com.yahoo.messagebus.network.local.LocalNetwork
- LocalServiceAddress - Class in com.yahoo.messagebus.network.local
- LocalServiceAddress(String, LocalNetwork) - Constructor for class com.yahoo.messagebus.network.local.LocalServiceAddress
- LocalWire - Class in com.yahoo.messagebus.network.local
- LocalWire() - Constructor for class com.yahoo.messagebus.network.local.LocalWire
- log - Static variable in class com.yahoo.messagebus.RateThrottlingPolicy
- lookup(String) - Method in class com.yahoo.messagebus.network.local.LocalWire
M
- matches(Hop) - Method in class com.yahoo.messagebus.routing.Hop
-
Returns true whether this hop matches another.
- matches(HopDirective) - Method in class com.yahoo.messagebus.routing.ErrorDirective
- matches(HopDirective) - Method in interface com.yahoo.messagebus.routing.HopDirective
-
Returns true if this directive matches another.
- matches(HopDirective) - Method in class com.yahoo.messagebus.routing.PolicyDirective
- matches(HopDirective) - Method in class com.yahoo.messagebus.routing.RouteDirective
- matches(HopDirective) - Method in class com.yahoo.messagebus.routing.TcpDirective
- matches(HopDirective) - Method in class com.yahoo.messagebus.routing.VerbatimDirective
- mb - Variable in class com.yahoo.messagebus.network.rpc.test.TestServer
- merge(RoutingContext) - Method in interface com.yahoo.messagebus.routing.RoutingPolicy
-
This function is called when all replies have arrived for some message.
- merge(RoutingContext) - Method in class com.yahoo.messagebus.routing.test.CustomPolicy
- Message - Class in com.yahoo.messagebus
-
A message is a child of Routable, it is not a reply, and it has a sequencing identifier.
- Message() - Constructor for class com.yahoo.messagebus.Message
- MESSAGE - Static variable in class com.yahoo.messagebus.test.SimpleProtocol
- MessageBus - Class in com.yahoo.messagebus
-
A message bus contains the factory for creating sessions to send, receive and forward messages.
- MessageBus(NetworkMultiplexer, MessageBusParams) - Constructor for class com.yahoo.messagebus.MessageBus
-
Constructs an instance of message bus.
- MessageBus(Network, MessageBusParams) - Constructor for class com.yahoo.messagebus.MessageBus
-
Constructs an instance of message bus.
- MessageBus(Network, List<Protocol>) - Constructor for class com.yahoo.messagebus.MessageBus
-
Convenience constructor that proxies
MessageBus(Network, MessageBusParams)
by adding the given protocols to a defaultMessageBusParams
object. - MessageBus.SendBlockedMessages - Interface in com.yahoo.messagebus
- MessagebusConfig - Class in com.yahoo.messagebus
-
This class represents the root node of messagebus Copyright Yahoo.
- MessagebusConfig(MessagebusConfig.Builder) - Constructor for class com.yahoo.messagebus.MessagebusConfig
- MessagebusConfig.Builder - Class in com.yahoo.messagebus
- MessagebusConfig.Producer - Interface in com.yahoo.messagebus
- MessagebusConfig.Routingtable - Class in com.yahoo.messagebus
-
This class represents messagebus.routingtable[]
- MessagebusConfig.Routingtable.Builder - Class in com.yahoo.messagebus
- MessagebusConfig.Routingtable.Hop - Class in com.yahoo.messagebus
-
This class represents messagebus.routingtable[].hop[]
- MessagebusConfig.Routingtable.Hop.Builder - Class in com.yahoo.messagebus
- MessagebusConfig.Routingtable.Route - Class in com.yahoo.messagebus
-
This class represents messagebus.routingtable[].route[]
- MessagebusConfig.Routingtable.Route.Builder - Class in com.yahoo.messagebus
- MessageBusParams - Class in com.yahoo.messagebus
-
To facilitate several configuration parameters to the
MessageBus
constructor, all parameters are held by this class. - MessageBusParams() - Constructor for class com.yahoo.messagebus.MessageBusParams
-
Constructs a new instance of this parameter object with default values for all members.
- MessageBusParams(MessageBusParams) - Constructor for class com.yahoo.messagebus.MessageBusParams
-
Implements the copy constructor.
- MessageHandler - Interface in com.yahoo.messagebus
-
All classes that wants to handle messages that move through the messagebus need to implement this interface.
- Messenger - Class in com.yahoo.messagebus
-
This class implements a single thread that is able to process arbitrary tasks.
- Messenger() - Constructor for class com.yahoo.messagebus.Messenger
- Messenger.Task - Interface in com.yahoo.messagebus
-
Defines the required interface for tasks to be posted to this worker.
N
- name() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop
- name() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route
- name(String) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop.Builder
- name(String) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route.Builder
- NAME - Static variable in class com.yahoo.messagebus.test.SimpleProtocol
- NamedRPCService - Class in com.yahoo.messagebus.network.rpc
- NamedRPCService(IMirror, String) - Constructor for class com.yahoo.messagebus.network.rpc.NamedRPCService
-
Create a new RPCService backed by the given network and using the given service pattern.
- net - Variable in class com.yahoo.messagebus.network.rpc.test.TestServer
- net() - Method in class com.yahoo.messagebus.network.NetworkMultiplexer
- Network - Interface in com.yahoo.messagebus.network
-
This interface separates the low-level network implementation from the rest of messagebus.
- NETWORK_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
A fatal network error occured while sending.
- NETWORK_SHUTDOWN - Static variable in class com.yahoo.messagebus.ErrorCode
-
The network was shut down when attempting to send.
- NetworkMessageBus - Class in com.yahoo.messagebus
-
The combination of a messagebus and a network over which it may send data.
- NetworkMessageBus(Network, MessageBus) - Constructor for class com.yahoo.messagebus.NetworkMessageBus
- NetworkMultiplexer - Class in com.yahoo.messagebus.network
-
A bridge between the reusable, singleton RPC network, and the generational message bus which uses this.
- NetworkOwner - Interface in com.yahoo.messagebus.network
-
A network owner is the object that instantiates and uses a network.
- newHostId() - Method in class com.yahoo.messagebus.network.local.LocalWire
- next() - Method in class com.yahoo.messagebus.routing.RoutingNodeIterator
-
Steps to the next child in the map.
- next() - Method in class com.yahoo.messagebus.routing.RoutingTable.HopIterator
-
Steps to the next hop in the map.
- next() - Method in class com.yahoo.messagebus.routing.RoutingTable.RouteIterator
-
Steps to the next route in the map.
- NO_ADDRESS_FOR_SERVICE - Static variable in class com.yahoo.messagebus.ErrorCode
-
No addresses found for the services of the message route.
- NO_SERVICES_FOR_ROUTE - Static variable in class com.yahoo.messagebus.ErrorCode
-
No services found for the message route.
- NONE - Static variable in class com.yahoo.messagebus.ErrorCode
-
The code is here for completeness.
- normalize() - Method in class com.yahoo.messagebus.TraceNode
-
Normalize this tree.
P
- Params() - Constructor for class com.yahoo.messagebus.network.rpc.RPCSend.Params
- parse(String) - Static method in class com.yahoo.messagebus.routing.Hop
-
Parses the given string as a single hop.
- parse(String) - Static method in class com.yahoo.messagebus.routing.Route
-
Parses the given string as a list of space-separated hops.
- parseRoutes(String) - Static method in class com.yahoo.messagebus.routing.test.CustomPolicyFactory
- POLICY_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
Exception thrown by routing policy.
- PolicyDirective - Class in com.yahoo.messagebus.routing
-
This class represents a policy directive within a
Hop
's selector. - PolicyDirective(String, String) - Constructor for class com.yahoo.messagebus.routing.PolicyDirective
-
Constructs a new policy selector item.
- pop(Routable) - Method in class com.yahoo.messagebus.CallStack
-
Pop a frame from this stack.
- popHandler() - Method in class com.yahoo.messagebus.Routable
-
This is a convenience method for calling
CallStack.pop(Routable)
on theCallStack
of this Routable. - processMessage(Message) - Method in class com.yahoo.messagebus.AllPassThrottlePolicy
- processMessage(Message) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
- processMessage(Message) - Method in class com.yahoo.messagebus.StaticThrottlePolicy
- processMessage(Message) - Method in interface com.yahoo.messagebus.ThrottlePolicy
-
This method is called once for every message that was accepted by
ThrottlePolicy.canSend(Message, int)
and sent. - processReply(Reply) - Method in class com.yahoo.messagebus.AllPassThrottlePolicy
- processReply(Reply) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
- processReply(Reply) - Method in class com.yahoo.messagebus.StaticThrottlePolicy
- processReply(Reply) - Method in interface com.yahoo.messagebus.ThrottlePolicy
-
This method is called once for every reply that is received.
- protocol() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable
- protocol(String) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
- Protocol - Interface in com.yahoo.messagebus
-
Interface implemented by the concrete application message protocol.
- ProtocolRepository - Class in com.yahoo.messagebus
-
Implements a thread-safe repository for protocols and their routing policies.
- ProtocolRepository() - Constructor for class com.yahoo.messagebus.ProtocolRepository
- push(ReplyHandler, Object) - Method in class com.yahoo.messagebus.CallStack
-
Push a handler onto the callstack of this message with a given context.
- pushHandler(ReplyHandler) - Method in class com.yahoo.messagebus.Routable
-
Pushes the given reply handler onto the call stack of this routable, also storing the current context.
- putProtocol(Protocol) - Method in class com.yahoo.messagebus.MessageBus
-
Adds a protocol to the internal repository of protocols, replacing any previous instance of the protocol and clearing the associated routing policy cache.
- putProtocol(Protocol) - Method in class com.yahoo.messagebus.ProtocolRepository
-
Registers a protocol with this repository.
Q
- QueueAdapter - Class in com.yahoo.messagebus.test
- QueueAdapter() - Constructor for class com.yahoo.messagebus.test.QueueAdapter
R
- RateThrottlingPolicy - Class in com.yahoo.messagebus
-
Throttling policy that throttles sending based on a desired rate.
- RateThrottlingPolicy(double) - Constructor for class com.yahoo.messagebus.RateThrottlingPolicy
- RateThrottlingPolicy(double, Timer) - Constructor for class com.yahoo.messagebus.RateThrottlingPolicy
- Receptor - Class in com.yahoo.messagebus.test
- Receptor() - Constructor for class com.yahoo.messagebus.test.Receptor
- recipient - Variable in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop.Builder
- recipient() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop
- recipient(int) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop
- recipient(String) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop.Builder
- recipient(Collection<String>) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop.Builder
- register(MessageBus.SendBlockedMessages) - Method in class com.yahoo.messagebus.MessageBus
- registerService(String, LocalNetwork) - Method in class com.yahoo.messagebus.network.local.LocalWire
- registerSession(String) - Method in class com.yahoo.messagebus.network.local.LocalNetwork
- registerSession(String) - Method in interface com.yahoo.messagebus.network.Network
-
Register a session name with the network layer.
- registerSession(String) - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
- registerSession(String, NetworkOwner, boolean) - Method in class com.yahoo.messagebus.network.NetworkMultiplexer
- reload(long) - Method in class com.yahoo.messagebus.ConfigAgent
-
Force reload config.
- removeDirective(int) - Method in class com.yahoo.messagebus.routing.Hop
-
Removes the directive at the given index.
- removeHop(int) - Method in class com.yahoo.messagebus.routing.Route
-
Removes the hop at a given index.
- removeHop(int) - Method in class com.yahoo.messagebus.routing.RouteSpec
-
Removes the hop name at the given index.
- removeHop(int) - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Removes the hop spec at the given index.
- removeRecipient(int) - Method in class com.yahoo.messagebus.routing.HopSpec
-
Removes the recipient at the given index.
- removeReply() - Method in class com.yahoo.messagebus.routing.RoutingNodeIterator
-
Removes and returns the reply of the current child.
- removeRoute(int) - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Removes a route spec at a given index.
- removeTable(int) - Method in class com.yahoo.messagebus.routing.RoutingSpec
-
Returns the routing table spec at the given index.
- reply(Reply) - Method in class com.yahoo.messagebus.DestinationSession
-
Sends a reply to a message.
- Reply - Class in com.yahoo.messagebus
-
A reply is a response to a message that has been sent throught the messagebus.
- Reply() - Constructor for class com.yahoo.messagebus.Reply
- REPLY - Static variable in class com.yahoo.messagebus.test.SimpleProtocol
- ReplyHandler - Interface in com.yahoo.messagebus
-
All classes that wants to handle replies that move through the messagebus need to implement this interface.
- Resender - Class in com.yahoo.messagebus.routing
-
The resender handles scheduling and execution of sending instances of
RoutingNode
. - Resender(RetryPolicy) - Constructor for class com.yahoo.messagebus.routing.Resender
-
Constructs a new resender.
- resendScheduled() - Method in class com.yahoo.messagebus.routing.Resender
-
Invokes
RoutingNode.send()
on all routing nodes that are applicable for sending at the current time. - reset() - Method in class com.yahoo.messagebus.test.Receptor
- resolve() - Method in class com.yahoo.messagebus.network.rpc.NamedRPCService
-
Resolve a concrete address from this service.
- resolve() - Method in interface com.yahoo.messagebus.network.rpc.RPCService
-
Resolve a concrete address from this service.
- resolve() - Method in class com.yahoo.messagebus.network.rpc.TcpRPCService
- resolve(String) - Method in class com.yahoo.messagebus.network.rpc.RPCServicePool
-
Returns the RPCServiceAddress that corresponds to a given pattern.
- resolveServiceAddress(RoutingNode, String) - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
-
Resolves and assigns a service address for the given recipient using the given address.
- resolveServiceAddress(String) - Method in class com.yahoo.messagebus.network.local.LocalWire
- Result - Class in com.yahoo.messagebus
-
Information on the outcome of initiating a send or forward on a session.
- Result(int, String) - Constructor for class com.yahoo.messagebus.Result
-
This constructor is a convencience function to allow simpler instantiation of a result that contains an error.
- Result(Error) - Constructor for class com.yahoo.messagebus.Result
-
This constructor assigns a given error to the member variable such that this result becomes unaccepted with a descriptive error.
- RetryPolicy - Interface in com.yahoo.messagebus.routing
-
When a
Reply
containing errors is returned to aMessageBus
, an object implementing this interface is consulted on whether or not to resend the correspondingMessage
. - RetryTransientErrorsPolicy - Class in com.yahoo.messagebus.routing
-
Implements a retry policy that allows resending of any error that is not fatal.
- RetryTransientErrorsPolicy() - Constructor for class com.yahoo.messagebus.routing.RetryTransientErrorsPolicy
- Routable - Class in com.yahoo.messagebus
-
Superclass for objects that can be either explicitly (Message) or implicitly (Reply) routed.
- Routable() - Constructor for class com.yahoo.messagebus.Routable
- route - Variable in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
- route() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable
- route(int) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable
- route(MessagebusConfig.Routingtable.Route.Builder) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
-
Add the given builder to this builder's list of Route builders
- route(Consumer<MessagebusConfig.Routingtable.Route.Builder>) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
-
Make a new builder and run the supplied function on it before adding it to the list
- route(List<MessagebusConfig.Routingtable.Route.Builder>) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Builder
-
Set the given list as this builder's list of Route builders
- Route - Class in com.yahoo.messagebus.routing
-
A route is a list of
hops
that are resolved from first to last as a routable moves from source to destination. - Route() - Constructor for class com.yahoo.messagebus.routing.Route
-
Creates an empty route that contains no hops.
- Route(MessagebusConfig.Routingtable.Route.Builder) - Constructor for class com.yahoo.messagebus.MessagebusConfig.Routingtable.Route
- Route(Route) - Constructor for class com.yahoo.messagebus.routing.Route
-
The copy constructor ignores integrity, it simply duplicates the list of hops in the other route.
- Route(List<Hop>) - Constructor for class com.yahoo.messagebus.routing.Route
-
Constructs a route based on a list of hops.
- RouteDirective - Class in com.yahoo.messagebus.routing
-
This class represents a route directive within a
Hop
's selector. - RouteDirective(String) - Constructor for class com.yahoo.messagebus.routing.RouteDirective
-
Constructs a new directive to insert a route.
- RouteParser - Class in com.yahoo.messagebus.routing
-
This replaces the incredibly slow javacc RouteParser.jj.
- RouteSpec - Class in com.yahoo.messagebus.routing
-
Along with the
RoutingSpec
,RoutingTableSpec
andHopSpec
, this holds the routing specifications for all protocols. - RouteSpec(RouteSpec) - Constructor for class com.yahoo.messagebus.routing.RouteSpec
-
Implements the copy constructor.
- RouteSpec(String) - Constructor for class com.yahoo.messagebus.routing.RouteSpec
-
Creates a new named route specification.
- RouteSpec(String, boolean) - Constructor for class com.yahoo.messagebus.routing.RouteSpec
-
Creates a new named route specification.
- RoutingContext - Class in com.yahoo.messagebus.routing
-
This context object is what is seen by
RoutingPolicy
when doing both select() and merge(). - RoutingNode - Class in com.yahoo.messagebus.routing
-
This class represents a node in the routing tree that is created when a route is resolved.
- RoutingNode(MessageBus, Network, Resender, ReplyHandler, Message) - Constructor for class com.yahoo.messagebus.routing.RoutingNode
-
Constructs a new instance of this class.
- RoutingNodeIterator - Class in com.yahoo.messagebus.routing
-
Implements an iterator for routing nodes.
- RoutingNodeIterator(List<RoutingNode>) - Constructor for class com.yahoo.messagebus.routing.RoutingNodeIterator
-
Constructs a new iterator based on a given list.
- RoutingPolicy - Interface in com.yahoo.messagebus.routing
-
Decides how to choose between candidate recipients of a hop template point.
- RoutingSpec - Class in com.yahoo.messagebus.routing
-
Along with the
RoutingTableSpec
,RouteSpec
andHopSpec
, this holds the routing specifications for all protocols. - RoutingSpec() - Constructor for class com.yahoo.messagebus.routing.RoutingSpec
-
Creates an empty specification.
- RoutingSpec(boolean) - Constructor for class com.yahoo.messagebus.routing.RoutingSpec
-
Creates an empty specification.
- RoutingSpec(RoutingSpec) - Constructor for class com.yahoo.messagebus.routing.RoutingSpec
-
Implements the copy constructor.
- routingtable - Variable in class com.yahoo.messagebus.MessagebusConfig.Builder
- routingtable() - Method in class com.yahoo.messagebus.MessagebusConfig
- routingtable(int) - Method in class com.yahoo.messagebus.MessagebusConfig
- routingtable(MessagebusConfig.Routingtable.Builder) - Method in class com.yahoo.messagebus.MessagebusConfig.Builder
-
Add the given builder to this builder's list of Routingtable builders
- routingtable(Consumer<MessagebusConfig.Routingtable.Builder>) - Method in class com.yahoo.messagebus.MessagebusConfig.Builder
-
Make a new builder and run the supplied function on it before adding it to the list
- routingtable(List<MessagebusConfig.Routingtable.Builder>) - Method in class com.yahoo.messagebus.MessagebusConfig.Builder
-
Set the given list as this builder's list of Routingtable builders
- Routingtable(MessagebusConfig.Routingtable.Builder) - Constructor for class com.yahoo.messagebus.MessagebusConfig.Routingtable
- RoutingTable - Class in com.yahoo.messagebus.routing
-
At any time there may only ever be zero or one routing table registered in message bus for each protocol.
- RoutingTable(RoutingTableSpec) - Constructor for class com.yahoo.messagebus.routing.RoutingTable
-
Creates a new routing table based on a given specification.
- RoutingTable.HopIterator - Class in com.yahoo.messagebus.routing
-
Implements an iterator for the hops of this.
- RoutingTable.RouteIterator - Class in com.yahoo.messagebus.routing
-
Implements an iterator for the routes of this.
- RoutingTableSpec - Class in com.yahoo.messagebus.routing
-
Along with the
RoutingSpec
,RouteSpec
andHopSpec
, this holds the routing specifications for all protocols. - RoutingTableSpec(RoutingTableSpec) - Constructor for class com.yahoo.messagebus.routing.RoutingTableSpec
-
Implements the copy constructor.
- RoutingTableSpec(Utf8String) - Constructor for class com.yahoo.messagebus.routing.RoutingTableSpec
-
Creates a new routing table specification for a named protocol.
- RoutingTableSpec(String) - Constructor for class com.yahoo.messagebus.routing.RoutingTableSpec
-
Creates a new routing table specification for a named protocol.
- RoutingTableSpec(String, boolean) - Constructor for class com.yahoo.messagebus.routing.RoutingTableSpec
-
Creates a new routing table specification for a named protocol.
- RPCMessageBus - Class in com.yahoo.messagebus
-
The RPCMessageBus class wraps a MessageBus with an RPCNetwork and handles reconfiguration.
- RPCMessageBus(MessageBusParams, RPCNetworkParams) - Constructor for class com.yahoo.messagebus.RPCMessageBus
-
Constructs a new instance of this class.
- RPCMessageBus(MessageBusParams, RPCNetworkParams, String) - Constructor for class com.yahoo.messagebus.RPCMessageBus
-
Constructs a new instance of this class.
- RPCMessageBus(Protocol, String) - Constructor for class com.yahoo.messagebus.RPCMessageBus
-
This constructor requires a single protocol that it is to support, as well as the host application's config identifier.
- RPCMessageBus(List<Protocol>, RPCNetworkParams, String) - Constructor for class com.yahoo.messagebus.RPCMessageBus
-
This constructor requires an array of protocols that it is to support, as well as the host application's config identifier.
- RPCNetwork - Class in com.yahoo.messagebus.network.rpc
-
An RPC implementation of the Network interface.
- RPCNetwork(RPCNetworkParams) - Constructor for class com.yahoo.messagebus.network.rpc.RPCNetwork
-
Create an RPCNetwork.
- RPCNetworkParams - Class in com.yahoo.messagebus.network.rpc
-
To facilitate several configuration parameters to the
RPCNetwork
constructor, all parameters are held by this class. - RPCNetworkParams() - Constructor for class com.yahoo.messagebus.network.rpc.RPCNetworkParams
-
Constructs a new instance of this class with reasonable default values.
- RPCNetworkParams(RPCNetworkParams) - Constructor for class com.yahoo.messagebus.network.rpc.RPCNetworkParams
-
Implements the copy constructor.
- RPCNetworkParams.Optimization - Enum Class in com.yahoo.messagebus.network.rpc
- RPCSend - Class in com.yahoo.messagebus.network.rpc
-
Implements the request adapter for method "mbus.send1/mbus.slime".
- RPCSend(RPCNetwork) - Constructor for class com.yahoo.messagebus.network.rpc.RPCSend
- RPCSend.Params - Class in com.yahoo.messagebus.network.rpc
- RPCSendAdapter - Interface in com.yahoo.messagebus.network.rpc
-
This interface defines the necessary methods to process incoming and send outgoing RPC requests.
- RPCSendV2 - Class in com.yahoo.messagebus.network.rpc
-
Implements the request adapter for method "mbus.slime".
- RPCSendV2(RPCNetwork) - Constructor for class com.yahoo.messagebus.network.rpc.RPCSendV2
- RPCService - Interface in com.yahoo.messagebus.network.rpc
-
An RPCService represents a set of remote sessions matching a service pattern.
- RPCServiceAddress - Class in com.yahoo.messagebus.network.rpc
-
Implements the
ServiceAddress
interface for the RPC network. - RPCServiceAddress(RPCServiceAddress) - Constructor for class com.yahoo.messagebus.network.rpc.RPCServiceAddress
- RPCServiceAddress(String, Spec) - Constructor for class com.yahoo.messagebus.network.rpc.RPCServiceAddress
-
Constructs a service address from the given specifications.
- RPCServiceAddress(String, String) - Constructor for class com.yahoo.messagebus.network.rpc.RPCServiceAddress
- RPCServicePool - Class in com.yahoo.messagebus.network.rpc
-
Class used to reuse services for the same address when sending messages over the rpc network.
- RPCServicePool(RPCNetwork, int) - Constructor for class com.yahoo.messagebus.network.rpc.RPCServicePool
-
Create a new service pool for the given network.
- RPCTarget - Class in com.yahoo.messagebus.network.rpc
-
Implements a target object that encapsulates the JRT connection target.
- RPCTarget(Spec, Supervisor) - Constructor for class com.yahoo.messagebus.network.rpc.RPCTarget
-
Constructs a new instance of this class.
- RPCTarget.VersionHandler - Interface in com.yahoo.messagebus.network.rpc
-
Declares a version handler used when resolving the version of a target.
- RPCTargetPool - Class in com.yahoo.messagebus.network.rpc
-
Class used to reuse targets for the same address when sending messages over the rpc network.
- RPCTargetPool(double, int) - Constructor for class com.yahoo.messagebus.network.rpc.RPCTargetPool
-
Constructs a new instance of this class, and registers the
SystemTimer
for detecting and closing connections that have expired according to the given parameter. - RPCTargetPool(Timer, double, int) - Constructor for class com.yahoo.messagebus.network.rpc.RPCTargetPool
-
Constructs a new instance of this class, using the given
Timer
for detecting and closing connections that have expired according to the second paramter. - run() - Method in class com.yahoo.messagebus.Messenger
- run() - Method in interface com.yahoo.messagebus.Messenger.Task
-
This method is called when being executed.
S
- select(RoutingContext) - Method in interface com.yahoo.messagebus.routing.RoutingPolicy
-
This function must choose a set of services that is to receive the given message from a list of possible recipients.
- select(RoutingContext) - Method in class com.yahoo.messagebus.routing.test.CustomPolicy
- selector() - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop
- selector(String) - Method in class com.yahoo.messagebus.MessagebusConfig.Routingtable.Hop.Builder
- send() - Method in class com.yahoo.messagebus.routing.RoutingNode
-
This is the single entry-point for sending a message along a route.
- send(Message) - Method in class com.yahoo.messagebus.SourceSession
-
Sends a new message.
- send(Message, Route) - Method in class com.yahoo.messagebus.SourceSession
-
This is a convenience function to assign a given route to the given message, and then pass it to the other
SourceSession.send(Message)
method of this session. - send(Message, String) - Method in class com.yahoo.messagebus.SourceSession
-
This is a convenience method to call
SourceSession.send(Message,String,boolean)
with afalse
value for the 'parseIfNotFound' parameter. - send(Message, String, boolean) - Method in class com.yahoo.messagebus.SourceSession
-
This is a convenience function to assign a named route to the given message, and then pass it to the other
SourceSession.send(Message)
method of this session. - send(Message, List<RoutingNode>) - Method in class com.yahoo.messagebus.network.local.LocalNetwork
- send(Message, List<RoutingNode>) - Method in interface com.yahoo.messagebus.network.Network
-
Send a message to the given recipients.
- send(Message, List<RoutingNode>) - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
- send(RoutingNode, Version, byte[], long) - Method in class com.yahoo.messagebus.network.rpc.RPCSend
- send(RoutingNode, Version, byte[], long) - Method in interface com.yahoo.messagebus.network.rpc.RPCSendAdapter
-
Performs the actual sending to the given recipient.
- SEND_ABORTED - Static variable in class com.yahoo.messagebus.ErrorCode
-
Sending aborted by route verification.
- SEND_QUEUE_CLOSED - Static variable in class com.yahoo.messagebus.ErrorCode
-
Sending was rejected because throttler is closed.
- SEND_QUEUE_FULL - Static variable in class com.yahoo.messagebus.ErrorCode
-
Sending was rejected because throttler capacity is full.
- SEND_RECEIVE - Static variable in class com.yahoo.messagebus.TraceLevel
-
Traces sending and receiving messages and replies on network level.
- sendBlocking(Message) - Method in class com.yahoo.messagebus.SourceSession
-
This is a blocking proxy to the
SourceSession.send(Message)
method. - SendProxy - Class in com.yahoo.messagebus
-
This class owns a message that is being sent by message bus.
- SendProxy(MessageBus, Network, Resender) - Constructor for class com.yahoo.messagebus.SendProxy
-
Constructs a new instance of this class to maintain sending of a single message.
- SEQUENCE_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
An error occured while sequencing a message.
- Sequencer - Class in com.yahoo.messagebus
-
Sequencing is implemented as a message handler that is configured in a source session in that session's chain of linked message handlers.
- Sequencer(MessageHandler) - Constructor for class com.yahoo.messagebus.Sequencer
-
Constructs a new sequencer on top of the given async sender.
- ServiceAddress - Interface in com.yahoo.messagebus.network
-
This interface represents an abstract network service; i.e.
- SESSION_BUSY - Static variable in class com.yahoo.messagebus.ErrorCode
-
The recipient session is busy.
- setApplyOnRestart(boolean) - Method in class com.yahoo.messagebus.MessagebusConfig.Builder
- setBaseDelay(double) - Method in class com.yahoo.messagebus.routing.RetryTransientErrorsPolicy
-
Sets the base delay in seconds to wait between retries.
- setBroadcastName(boolean) - Method in class com.yahoo.messagebus.DestinationSessionParams
-
Sets whether or not to broadcast the name of this session on the network.
- setBroadcastName(boolean) - Method in class com.yahoo.messagebus.IntermediateSessionParams
-
Sets whether or not to broadcast the name of this session on the network.
- setConnectionExpireSecs(double) - Method in class com.yahoo.messagebus.network.rpc.RPCNetworkParams
-
Sets the number of seconds before an idle network connection expires.
- setContext(Object) - Method in class com.yahoo.messagebus.Routable
-
Sets a new context for this routable.
- setContext(Object) - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Sets a policy specific context object that will be available at merge().
- setDirective(int, HopDirective) - Method in class com.yahoo.messagebus.routing.Hop
-
Sets the directive at a given index.
- setEfficiencyThreshold(double) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Determines where on each latency level the attractor sits.
- setEnabled(boolean) - Method in class com.yahoo.messagebus.routing.RetryTransientErrorsPolicy
-
Sets whether or not this policy should allow retries or not.
- setError(int, String) - Method in class com.yahoo.messagebus.routing.RoutingContext
-
This is a convenience method to call
RoutingContext.setError(Error)
. - setError(int, String) - Method in class com.yahoo.messagebus.routing.RoutingNode
-
This is a convenience method to call
RoutingNode.setError(Error)
. - setError(Error) - Method in class com.yahoo.messagebus.routing.RoutingContext
-
This is a convenience method to assign an
EmptyReply
containing a single error to this. - setError(Error) - Method in class com.yahoo.messagebus.routing.RoutingNode
-
This is a convenience method to assign an
EmptyReply
containing a single error to this. - setHop(int, Hop) - Method in class com.yahoo.messagebus.routing.Route
-
Sets the hop at a given index.
- setHop(int, HopSpec) - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Sets the hop spec at the given index.
- setHop(int, String) - Method in class com.yahoo.messagebus.routing.RouteSpec
-
Sets the hop name for a given index.
- setIdentity(Identity) - Method in class com.yahoo.messagebus.network.rpc.RPCNetworkParams
-
Sets the identity to use for the network.
- setIgnoreResult(boolean) - Method in class com.yahoo.messagebus.routing.Hop
-
Sets whether or not to ignore the result when routing through this hop.
- setIgnoreResult(boolean) - Method in class com.yahoo.messagebus.routing.HopBlueprint
-
Sets whether or not to ignore the result when routing through this hop.
- setIgnoreResult(boolean) - Method in class com.yahoo.messagebus.routing.HopSpec
-
Sets whether or not to ignore the result when routing through this hop.
- setLevel(int) - Method in class com.yahoo.messagebus.Trace
-
Set the trace level.
- setListenPort(int) - Method in class com.yahoo.messagebus.network.rpc.RPCNetworkParams
-
Sets the port to listen to.
- setMaxPendingCount(int) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
- setMaxPendingCount(int) - Method in class com.yahoo.messagebus.MessageBus
-
Deprecated.
- setMaxPendingCount(int) - Method in class com.yahoo.messagebus.MessageBusParams
-
Sets the maximum number of allowed pending messages.
- setMaxPendingCount(int) - Method in class com.yahoo.messagebus.StaticThrottlePolicy
-
Sets the maximum number of pending messages allowed.
- setMaxPendingSize(int) - Method in class com.yahoo.messagebus.MessageBus
-
Deprecated.
- setMaxPendingSize(int) - Method in class com.yahoo.messagebus.MessageBusParams
-
Sets the maximum number of bytes allowed for pending messages.
- setMaxPendingSize(long) - Method in class com.yahoo.messagebus.StaticThrottlePolicy
-
Sets the maximum total size of pending messages allowed.
- setMaxThroughput(double) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
- setMaxWindowSize(double) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Sets the maximum number of pending operations allowed at any time, in order to avoid using too much resources.
- setMessage(Message) - Method in class com.yahoo.messagebus.Reply
-
Sets the message to which this is a reply.
- setMessageBusConfig(MessagebusConfig) - Method in class com.yahoo.messagebus.MessageBusParams
- setMessageHandler(MessageHandler) - Method in class com.yahoo.messagebus.DestinationSessionParams
-
Sets the handler to recive incoming messages.
- setMessageHandler(MessageHandler) - Method in class com.yahoo.messagebus.IntermediateSessionParams
-
Sets the handler to recive incoming messages.
- setMinWindowSize(double) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Sets the minimum number of pending operations allowed at any time, in order to keep a level of performance.
- setName(String) - Method in class com.yahoo.messagebus.DestinationSessionParams
-
Sets the name to register with message bus.
- setName(String) - Method in class com.yahoo.messagebus.IntermediateSessionParams
-
Sets the name to register with message bus.
- setNumNetworkThreads(int) - Method in class com.yahoo.messagebus.network.rpc.RPCNetworkParams
- setNumTargetsPerSpec(int) - Method in class com.yahoo.messagebus.network.rpc.RPCNetworkParams
- setOptimization(RPCNetworkParams.Optimization) - Method in class com.yahoo.messagebus.network.rpc.RPCNetworkParams
- setRecipient(int, String) - Method in class com.yahoo.messagebus.routing.HopSpec
-
Sets the recipient at the given index.
- setReply(Reply) - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Sets the reply generated by the associated routing policy.
- setReply(Reply) - Method in class com.yahoo.messagebus.routing.RoutingNode
-
Sets the reply of this routing node.
- setReplyHandler(ReplyHandler) - Method in class com.yahoo.messagebus.IntermediateSessionParams
-
Sets the handler to recive incoming replies.
- setReplyHandler(ReplyHandler) - Method in class com.yahoo.messagebus.SourceSessionParams
-
Sets the handler to recive incoming replies.
- setResizeRate(double) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Sets the rate at which the window size is updated.
- setRetry(int) - Method in class com.yahoo.messagebus.Message
-
Sets the number of times the sending of this message has been retried.
- setRetryDelay(double) - Method in class com.yahoo.messagebus.Reply
-
Sets the retry delay request of this reply.
- setRetryEnabled(boolean) - Method in class com.yahoo.messagebus.Message
-
Sets whether or not this message can be resent.
- setRetryPolicy(RetryPolicy) - Method in class com.yahoo.messagebus.MessageBusParams
-
Sets the retry policy for the resender.
- setRoute(int, RouteSpec) - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Sets the route spec at the given index.
- setRoute(Route) - Method in class com.yahoo.messagebus.Message
-
Sets a new route for this routable
- setSelectOnRetry(boolean) - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Sets whether or not the policy is required to reselect if resending occurs.
- setServiceAddress(ServiceAddress) - Method in class com.yahoo.messagebus.routing.RoutingNode
-
Sets the service address of this node.
- setSlobrokConfigId(String) - Method in class com.yahoo.messagebus.network.rpc.RPCNetworkParams
-
Sets the config id of the slobrok config.
- setSlobroksConfig(SlobroksConfig) - Method in class com.yahoo.messagebus.network.rpc.RPCNetworkParams
-
Sets the 'slobroks' config object.
- setStrict(boolean) - Method in class com.yahoo.messagebus.TraceNode
-
Sets whether or not the children of this node are strictly ordered.
- setTable(int, RoutingTableSpec) - Method in class com.yahoo.messagebus.routing.RoutingSpec
-
Sets the routing table spec at the given index.
- setTarget(RPCTarget) - Method in class com.yahoo.messagebus.network.rpc.RPCServiceAddress
-
Sets the RPC target to be used when communicating with the remote service.
- setThrottlePolicy(ThrottlePolicy) - Method in class com.yahoo.messagebus.SourceSessionParams
-
Sets the policy to use for throttling output.
- setTimeout(double) - Method in class com.yahoo.messagebus.SourceSession
-
Sets the number of seconds a message can be attempted sent until it times out.
- setTimeout(double) - Method in class com.yahoo.messagebus.SourceSessionParams
-
Sets the number of seconds a message can be attempted sent until it times out.
- setTimeReceived(long) - Method in class com.yahoo.messagebus.Message
-
Sets the timestamp for when this message was last seen by message bus to the given time in milliseconds since epoch.
- setTimeReceivedNow() - Method in class com.yahoo.messagebus.Message
-
This is a convenience method to call
Message.setTimeReceived(long)
passing the current time as argument. - setTimeRemaining(long) - Method in class com.yahoo.messagebus.Message
-
Sets the number of milliseconds that remain before this message times out.
- setTransportEventsBeforeWakeup(int) - Method in class com.yahoo.messagebus.network.rpc.RPCNetworkParams
- setupRouting(RoutingSpec) - Method in interface com.yahoo.messagebus.ConfigHandler
-
Sets the routing specification for this client.
- setupRouting(RoutingSpec) - Method in class com.yahoo.messagebus.MessageBus
- setupRouting(RoutingTableSpec) - Method in class com.yahoo.messagebus.network.rpc.test.TestServer
-
Proxies the
MessageBus.setupRouting(RoutingSpec)
method by encapsulating the given table specification within the requiredRoutingSpec
. - setValue(String) - Method in class com.yahoo.messagebus.test.SimpleMessage
- setValue(String) - Method in class com.yahoo.messagebus.test.SimpleReply
- setVersion(Version) - Method in class com.yahoo.messagebus.network.rpc.test.TestServer.VersionedRPCNetwork
- setWeight(double) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Sets the weight for this client.
- setWindowSizeBackOff(double) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Sets the factor of window size to back off to when the algorithm determines that efficiency is not increasing.
- setWindowSizeDecrementFactor(double) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Sets the relative step size when decreasing window size.
- setWindowSizeIncrement(double) - Method in class com.yahoo.messagebus.DynamicThrottlePolicy
-
Sets the step size used when increasing window size.
- shared(Network) - Static method in class com.yahoo.messagebus.network.NetworkMultiplexer
-
Returns a network multiplexer which will be shared between several
NetworkOwner
s, and will shut down when all these have detached, andNetworkMultiplexer.disown()
has been called, in any order. - shouldTrace(int) - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Indicates if tracing is enabled at this level.
- shouldTrace(int) - Method in class com.yahoo.messagebus.Trace
-
Check if information with the given level should be traced.
- shutdown() - Method in class com.yahoo.messagebus.ConfigAgent
-
Shuts down the config agent by unsubscribing to the messagebus config.
- shutdown() - Method in class com.yahoo.messagebus.network.local.LocalNetwork
- shutdown() - Method in interface com.yahoo.messagebus.network.Network
-
Shuts down the network.
- shutdown() - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
- shutdown() - Method in class com.yahoo.messagebus.network.rpc.SlobrokConfigSubscriber
-
Shuts down the config subscription by unsubscribing to the slobroks config.
- SimpleMessage - Class in com.yahoo.messagebus.test
- SimpleMessage(String) - Constructor for class com.yahoo.messagebus.test.SimpleMessage
- SimpleProtocol - Class in com.yahoo.messagebus.test
- SimpleProtocol() - Constructor for class com.yahoo.messagebus.test.SimpleProtocol
- SimpleProtocol.PolicyFactory - Interface in com.yahoo.messagebus.test
-
Defines a policy factory interface that tests can use to register arbitrary policies with this protocol.
- SimpleReply - Class in com.yahoo.messagebus.test
- SimpleReply(String) - Constructor for class com.yahoo.messagebus.test.SimpleReply
- size() - Method in class com.yahoo.messagebus.CallStack
-
Returns the number of elements of the callstack.
- size() - Method in class com.yahoo.messagebus.network.rpc.RPCTargetPool
-
Returns the number of targets currently contained in this.
- size() - Method in class com.yahoo.messagebus.test.QueueAdapter
- skip(int) - Method in class com.yahoo.messagebus.routing.RoutingNodeIterator
-
Skips the given number of children.
- SlobrokConfigSubscriber - Class in com.yahoo.messagebus.network.rpc
-
This class implements subscription to slobrok config.
- SlobrokConfigSubscriber(SlobroksConfig) - Constructor for class com.yahoo.messagebus.network.rpc.SlobrokConfigSubscriber
- SlobrokConfigSubscriber(String) - Constructor for class com.yahoo.messagebus.network.rpc.SlobrokConfigSubscriber
-
Constructs a new config subscriber for a given config id.
- SlobrokState - Class in com.yahoo.messagebus.network.rpc.test
- SlobrokState() - Constructor for class com.yahoo.messagebus.network.rpc.test.SlobrokState
- sort() - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Sorts the hops and routes of this table by name.
- sort() - Method in class com.yahoo.messagebus.TraceNode
-
Sort non-strict children recursively down the tree.
- SourceSession - Class in com.yahoo.messagebus
-
A session supporting sending new messages.
- SourceSessionParams - Class in com.yahoo.messagebus
-
To facilitate several configuration parameters to the
MessageBus.createSourceSession(ReplyHandler, SourceSessionParams)
, all parameters are held by this class. - SourceSessionParams() - Constructor for class com.yahoo.messagebus.SourceSessionParams
-
Instantiates a parameter object with default values.
- SourceSessionParams(SourceSessionParams) - Constructor for class com.yahoo.messagebus.SourceSessionParams
-
Implements the copy constructor.
- SPLIT_MERGE - Static variable in class com.yahoo.messagebus.TraceLevel
-
Traces splitting messages and merging replies.
- start() - Method in class com.yahoo.messagebus.Messenger
-
Starts the internal thread.
- StaticThrottlePolicy - Class in com.yahoo.messagebus
-
This is an implementation of the
ThrottlePolicy
that offers static limits to the amount of pending data aSourceSession
is allowed to have. - StaticThrottlePolicy() - Constructor for class com.yahoo.messagebus.StaticThrottlePolicy
- subscribe() - Method in class com.yahoo.messagebus.ConfigAgent
-
Start listening for config updates.
- swap(CallStack) - Method in class com.yahoo.messagebus.CallStack
-
Swap the content of this and the argument stack.
- swap(Trace) - Method in class com.yahoo.messagebus.Trace
-
Swap the internals of this with another.
- swap(TraceNode) - Method in class com.yahoo.messagebus.TraceNode
-
Swap the internals of this tree with another.
- swapState(Routable) - Method in class com.yahoo.messagebus.Message
- swapState(Routable) - Method in class com.yahoo.messagebus.Reply
- swapState(Routable) - Method in class com.yahoo.messagebus.Routable
-
Swaps the state that makes this routable unique to another routable.
- sync() - Method in class com.yahoo.messagebus.MessageBus
-
Synchronize with internal threads.
- sync() - Method in class com.yahoo.messagebus.Messenger
-
Handshakes with the internal thread.
- sync() - Method in class com.yahoo.messagebus.network.local.LocalNetwork
- sync() - Method in interface com.yahoo.messagebus.network.Network
-
Synchronize with internal threads.
- sync() - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
T
- TcpDirective - Class in com.yahoo.messagebus.routing
-
This class represents a tcp directive within a
Hop
's selector. - TcpDirective(String, int, String) - Constructor for class com.yahoo.messagebus.routing.TcpDirective
-
Constructs a new directive to route directly to a tcp address.
- TcpRPCService - Class in com.yahoo.messagebus.network.rpc
- TestServer - Class in com.yahoo.messagebus.network.rpc.test
-
A simple test server implementation.
- TestServer(MessageBusParams) - Constructor for class com.yahoo.messagebus.network.rpc.test.TestServer
-
Creates a new test server without network setup
- TestServer(MessageBusParams, Slobrok) - Constructor for class com.yahoo.messagebus.network.rpc.test.TestServer
-
Creates a new test server.
- TestServer(MessageBusParams, RPCNetworkParams) - Constructor for class com.yahoo.messagebus.network.rpc.test.TestServer
-
Creates a new test server.
- TestServer(String, RoutingTableSpec, Slobrok, Protocol) - Constructor for class com.yahoo.messagebus.network.rpc.test.TestServer
-
Create a new test server.
- TestServer.VersionedRPCNetwork - Class in com.yahoo.messagebus.network.rpc.test
- ThrottlePolicy - Interface in com.yahoo.messagebus
-
An implementation of this interface is used by
SourceSession
to throttle output. - THROUGHPUT - Enum constant in enum class com.yahoo.messagebus.network.rpc.RPCNetworkParams.Optimization
- TIMEOUT - Static variable in class com.yahoo.messagebus.ErrorCode
-
A timeout occurred while sending.
- toConfig(StringBuilder, String) - Method in class com.yahoo.messagebus.routing.HopSpec
-
Appends the content of this to the given config string builder.
- toConfig(StringBuilder, String) - Method in class com.yahoo.messagebus.routing.RouteSpec
-
Appends the content of this to the given config string builder.
- toConfig(StringBuilder, String) - Method in class com.yahoo.messagebus.routing.RoutingSpec
-
Appends the content of this to the given config string builder.
- toConfig(StringBuilder, String) - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Appends the content of this to the given config string builder.
- toDebugString() - Method in class com.yahoo.messagebus.routing.ErrorDirective
- toDebugString() - Method in class com.yahoo.messagebus.routing.Hop
-
Returns a string representation of this that can be debugged but not parsed.
- toDebugString() - Method in interface com.yahoo.messagebus.routing.HopDirective
-
Returns a string representation of this that can be debugged but not parsed.
- toDebugString() - Method in class com.yahoo.messagebus.routing.PolicyDirective
- toDebugString() - Method in class com.yahoo.messagebus.routing.Route
-
Returns a string representation of this that can be debugged but not parsed.
- toDebugString() - Method in class com.yahoo.messagebus.routing.RouteDirective
- toDebugString() - Method in class com.yahoo.messagebus.routing.TcpDirective
- toDebugString() - Method in class com.yahoo.messagebus.routing.VerbatimDirective
- toParams(Values) - Method in class com.yahoo.messagebus.network.rpc.RPCSend
- toParams(Values) - Method in class com.yahoo.messagebus.network.rpc.RPCSendV2
- toString() - Method in class com.yahoo.messagebus.Error
- toString() - Method in class com.yahoo.messagebus.network.NetworkMultiplexer
- toString() - Method in class com.yahoo.messagebus.routing.ErrorDirective
- toString() - Method in class com.yahoo.messagebus.routing.Hop
- toString() - Method in class com.yahoo.messagebus.routing.HopBlueprint
- toString() - Method in class com.yahoo.messagebus.routing.HopSpec
- toString() - Method in class com.yahoo.messagebus.routing.PolicyDirective
- toString() - Method in class com.yahoo.messagebus.routing.Route
- toString() - Method in class com.yahoo.messagebus.routing.RouteDirective
- toString() - Method in class com.yahoo.messagebus.routing.RouteSpec
- toString() - Method in class com.yahoo.messagebus.routing.RoutingContext
- toString() - Method in class com.yahoo.messagebus.routing.RoutingSpec
- toString() - Method in class com.yahoo.messagebus.routing.RoutingTable
- toString() - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
- toString() - Method in class com.yahoo.messagebus.routing.TcpDirective
- toString() - Method in class com.yahoo.messagebus.routing.VerbatimDirective
- toString() - Method in class com.yahoo.messagebus.Trace
- toString() - Method in class com.yahoo.messagebus.TraceNode
- toString(int) - Method in class com.yahoo.messagebus.TraceNode
-
Generates a non-parseable, human-readable string representation of this trace node.
- toString(int, int) - Method in class com.yahoo.messagebus.routing.Hop
-
Returns a string concatenation of a subset of the selector primitives contained in this.
- trace(int, String) - Method in class com.yahoo.messagebus.routing.RoutingContext
-
Adds a string to the trace of the message being routed.
- trace(int, String) - Method in class com.yahoo.messagebus.Trace
-
Add the given note to the trace information if tracing is enabled for the given level.
- trace(int, String, boolean) - Method in class com.yahoo.messagebus.Trace
-
Add the given note to the trace information if tracing is enabled for the given level.
- Trace - Class in com.yahoo.messagebus
-
A Trace object contains ad-hoc string notes organized in a strict-loose tree.
- Trace() - Constructor for class com.yahoo.messagebus.Trace
-
Create an empty trace with level set to 0 (no tracing)
- Trace(int) - Constructor for class com.yahoo.messagebus.Trace
-
Create an empty trace with given level.
- TraceLevel - Class in com.yahoo.messagebus
-
This class defines the
Trace
levels used by message bus. - TraceLevel() - Constructor for class com.yahoo.messagebus.TraceLevel
- TraceNode - Class in com.yahoo.messagebus
-
This class contains the actual trace information of a
Trace
object. - TraceNode() - Constructor for class com.yahoo.messagebus.TraceNode
-
Create an empty trace tree.
- TRANSIENT_ERROR - Static variable in class com.yahoo.messagebus.ErrorCode
-
A general transient error, resending is possible.
- trySend() - Method in interface com.yahoo.messagebus.MessageBus.SendBlockedMessages
-
Do what you want, but dont block.
- trySend() - Method in class com.yahoo.messagebus.SourceSession
U
- UNKNOWN_POLICY - Static variable in class com.yahoo.messagebus.ErrorCode
-
The policy specified in a route is unknown.
- UNKNOWN_PROTOCOL - Static variable in class com.yahoo.messagebus.ErrorCode
-
The protocol specified for the message is unknown.
- UNKNOWN_SESSION - Static variable in class com.yahoo.messagebus.ErrorCode
-
The session specified for the message is unknown.
- unregisterService(String) - Method in class com.yahoo.messagebus.network.local.LocalWire
- unregisterSession(String) - Method in class com.yahoo.messagebus.network.local.LocalNetwork
- unregisterSession(String) - Method in interface com.yahoo.messagebus.network.Network
-
Unregister a session name with the network layer.
- unregisterSession(String) - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
- unregisterSession(String, boolean) - Method in class com.yahoo.messagebus.MessageBus
-
This method is invoked by the
IntermediateSession.destroy()
to unregister sessions from receiving data from message bus. - unregisterSession(String, NetworkOwner, boolean) - Method in class com.yahoo.messagebus.network.NetworkMultiplexer
- updates() - Method in class com.yahoo.messagebus.network.local.LocalWire
V
- valueOf(String) - Static method in enum class com.yahoo.messagebus.network.rpc.RPCNetworkParams.Optimization
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.yahoo.messagebus.network.rpc.RPCNetworkParams.Optimization
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VerbatimDirective - Class in com.yahoo.messagebus.routing
-
This class represents a verbatim match within a
Hop
's selector. - VerbatimDirective(String) - Constructor for class com.yahoo.messagebus.routing.VerbatimDirective
-
Constructs a new verbatim selector item for a given image.
- verify(ApplicationSpec, RoutingTableSpec, List<String>) - Method in class com.yahoo.messagebus.routing.HopSpec
-
Verifies the content of this against the given application.
- verify(ApplicationSpec, RoutingTableSpec, List<String>) - Method in class com.yahoo.messagebus.routing.RouteSpec
-
Verifies the content of this against the given application.
- verify(ApplicationSpec, List<String>) - Method in class com.yahoo.messagebus.routing.RoutingSpec
-
Verifies the content of this against the given application.
- verify(ApplicationSpec, List<String>) - Method in class com.yahoo.messagebus.routing.RoutingTableSpec
-
Verifies the content of this against the given application.
- VersionedRPCNetwork(RPCNetworkParams) - Constructor for class com.yahoo.messagebus.network.rpc.test.TestServer.VersionedRPCNetwork
W
- waitSize(int, int) - Method in class com.yahoo.messagebus.test.QueueAdapter
- waitSlobrok(String, int) - Method in class com.yahoo.messagebus.network.rpc.test.TestServer
-
Wait for some pattern to resolve to some number of services.
- waitState(SlobrokState) - Method in class com.yahoo.messagebus.network.rpc.test.TestServer
-
Wait for a required slobrok state.
- waitUntilReady(double) - Method in class com.yahoo.messagebus.network.local.LocalNetwork
- waitUntilReady(double) - Method in interface com.yahoo.messagebus.network.Network
-
Waits for at most the given number of seconds for all dependencies to become ready.
- waitUntilReady(double) - Method in class com.yahoo.messagebus.network.rpc.RPCNetwork
All Classes and Interfaces|All Packages|Constant Field Values