Search in sources :

Example 1 with SharedDestinationSession

use of com.yahoo.messagebus.shared.SharedDestinationSession in project vespa by vespa-engine.

the class ServerThreadingTestCase method newMbusServer.

private static MbusServer newMbusServer(final CurrentContainer container, final LocalWire wire) {
    final SharedMessageBus mbus = new SharedMessageBus(new MessageBus(new LocalNetwork(wire), new MessageBusParams().addProtocol(new SimpleProtocol())));
    final SharedDestinationSession session = mbus.newDestinationSession(new DestinationSessionParams());
    final MbusServer server = new MbusServer(container, session);
    session.release();
    mbus.release();
    return server;
}
Also used : MessageBus(com.yahoo.messagebus.MessageBus) SharedMessageBus(com.yahoo.messagebus.shared.SharedMessageBus) SimpleProtocol(com.yahoo.messagebus.test.SimpleProtocol) LocalNetwork(com.yahoo.messagebus.network.local.LocalNetwork) SharedDestinationSession(com.yahoo.messagebus.shared.SharedDestinationSession) SharedMessageBus(com.yahoo.messagebus.shared.SharedMessageBus) MessageBusParams(com.yahoo.messagebus.MessageBusParams) DestinationSessionParams(com.yahoo.messagebus.DestinationSessionParams)

Aggregations

DestinationSessionParams (com.yahoo.messagebus.DestinationSessionParams)1 MessageBus (com.yahoo.messagebus.MessageBus)1 MessageBusParams (com.yahoo.messagebus.MessageBusParams)1 LocalNetwork (com.yahoo.messagebus.network.local.LocalNetwork)1 SharedDestinationSession (com.yahoo.messagebus.shared.SharedDestinationSession)1 SharedMessageBus (com.yahoo.messagebus.shared.SharedMessageBus)1 SimpleProtocol (com.yahoo.messagebus.test.SimpleProtocol)1