Examples of RabbitManager


Examples of com.kurento.kmf.rabbitmq.manager.RabbitManager

  private JsonRpcClientRabbitMq client;

  @Before
  public void init() throws IOException {

    RabbitManager manager = new RabbitManager();

    try {
      manager.deleteQueue(RabbitMqManager.PIPELINE_CREATION_QUEUE);
      log.info("Queue '{}' deleted",
          RabbitMqManager.PIPELINE_CREATION_QUEUE);
    } catch (No2xxOKStatusResponseException e) {
      log.info("Queue '{}' doesn't exist",
          RabbitMqManager.PIPELINE_CREATION_QUEUE);
View Full Code Here

Examples of com.kurento.kmf.rabbitmq.manager.RabbitManager

  @Test
  public void test() throws IOException {

    JsonRpcClientRabbitMq client = new JsonRpcClientRabbitMq();

    RabbitManager manager = new RabbitManager();
    System.out.println(manager.getQueueInfo(PIPELINE_CREATION));

    client.close();

    System.out.println(manager.getQueueInfo(PIPELINE_CREATION));

    manager.deleteQueue(PIPELINE_CREATION);

    try {
      System.out.println(manager.getQueueInfo(PIPELINE_CREATION));
    } catch (No2xxOKStatusResponseException e) {

      int statusCode = e.getResponse().getStatusLine().getStatusCode();
      Assert.assertEquals("StatusCode", 404, statusCode);
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.