Examples of ExchangeType


Examples of eu.mosaic_cloud.platform.interop.idl.amqp.AmqpPayloads.DeclareExchangeRequest.ExchangeType

  public CallbackCompletion<Void> declareExchange (final String name, final AmqpExchangeType type, final boolean durable, final boolean autoDelete, final boolean passive)
  {
    Preconditions.checkNotNull (name);
    Preconditions.checkNotNull (type);
    final CompletionToken token = this.generateToken ();
    final ExchangeType eType = AmqpPayloads.DeclareExchangeRequest.ExchangeType.valueOf (type.toString ().toUpperCase ());
    this.transcript.traceDebugging ("declaring the exchange `%s` of type `%s` (with durable `%b`, auto-delete `%b`, and passive `%b`) (with request token `%s`)...", name, type, Boolean.valueOf (durable), Boolean.valueOf (autoDelete), Boolean.valueOf (passive), token.getMessageId ());
    final AmqpPayloads.DeclareExchangeRequest.Builder requestBuilder = AmqpPayloads.DeclareExchangeRequest.newBuilder ();
    requestBuilder.setToken (token);
    requestBuilder.setExchange (name);
    requestBuilder.setType (eType);
View Full Code Here

Examples of eu.mosaic_cloud.platform.interop.idl.amqp.AmqpPayloads.DeclareExchangeRequest.ExchangeType

        break;
      case DECL_EXCHANGE_REQUEST :
        final AmqpPayloads.DeclareExchangeRequest declExchange = (DeclareExchangeRequest) message.payload;
        token = declExchange.getToken ();
        exchange = declExchange.getExchange ();
        final ExchangeType type = declExchange.getType ();
        durable = declExchange.getDurable ();
        autoDelete = declExchange.getAutoDelete ();
        passive = declExchange.getPassive ();
        AmqpStub.logger.trace ("AmqpStub - Received request for DECLARE EXCHANGE "); // $NON-NLS-1$
        // NOTE: execute operation
        final DriverOperationFinishedHandler exchHandler = new DriverOperationFinishedHandler (token, session);
        resultBool = driver.declareExchange (token.getClientId (), exchange, AmqpExchangeType.valueOf (type.toString ().toUpperCase ()), durable, autoDelete, passive, exchHandler);
        exchHandler.setDetails (AmqpOperations.DECLARE_EXCHANGE, resultBool);
        break;
      case DECL_QUEUE_REQUEST :
        final AmqpPayloads.DeclareQueueRequest declQueue = (DeclareQueueRequest) message.payload;
        token = declQueue.getToken ();
View Full Code Here

Examples of org.apache.qpid.server.plugin.ExchangeType

                    {
                        final String name = exchangeNameCapture.getValue();
                        final UUID id = idCapture.getValue();

                        final Exchange exchange = mock(Exchange.class);
                        ExchangeType exType = mock(ExchangeType.class);

                        when(exchange.getName()).thenReturn(name);
                        when(exchange.getId()).thenReturn(id);
                        when(exchange.getType()).thenReturn(exType);

                        final String typeName = type.getValue();
                        when(exType.getType()).thenReturn(typeName);
                        when(exchange.getTypeName()).thenReturn(typeName);

                        when(_virtualHost.getExchange(eq(name))).thenReturn(exchange);
                        when(_virtualHost.getExchange(eq(id))).thenReturn(exchange);
View Full Code Here

Examples of org.apache.qpid.server.plugin.ExchangeType

                        Map attributeValues = attributes.getValue();
                        final String name = MapValueConverter.getStringAttribute(org.apache.qpid.server.model.Exchange.NAME, attributeValues);
                        final UUID id = MapValueConverter.getUUIDAttribute(org.apache.qpid.server.model.Exchange.ID, attributeValues);

                        final ExchangeImpl exchange = mock(ExchangeImpl.class);
                        ExchangeType exType = mock(ExchangeType.class);

                        when(exchange.getName()).thenReturn(name);
                        when(exchange.getId()).thenReturn(id);
                        when(exchange.getExchangeType()).thenReturn(exType);

                        final String typeName = MapValueConverter.getStringAttribute(org.apache.qpid.server.model.Exchange.TYPE, attributeValues);
                        when(exType.getType()).thenReturn(typeName);
                        when(exchange.getTypeName()).thenReturn(typeName);

                        when(_virtualHost.getExchange(eq(name))).thenReturn(exchange);
                        when(_virtualHost.getExchange(eq(id))).thenReturn(exchange);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.