Package com.kurento.kmf.rabbitmq.manager

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


  @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

Related Classes of com.kurento.kmf.rabbitmq.manager.RabbitManager

Copyright © 2018 www.massapicom. 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.