Package org.apache.hcatalog.messaging

Examples of org.apache.hcatalog.messaging.DropDatabaseMessage


                Assert.assertEquals("mytbl", ((DropTableMessage) message2).getTable());
            } else if (event.equals(HCatConstants.HCAT_DROP_DATABASE_EVENT)) {

                Assert.assertEquals("topic://" + HCatConstants.HCAT_DEFAULT_TOPIC_PREFIX, msg
                        .getJMSDestination().toString());
                DropDatabaseMessage message =  deserializer.getDropDatabaseMessage(messageBody);
                Assert.assertEquals("mydb", message.getDB());
                HCatEventMessage message2 = MessagingUtils.getMessage(msg);
                Assert.assertTrue("Unexpected message-type.", message2 instanceof DropDatabaseMessage);
                Assert.assertEquals("mydb", message2.getDB());
            } else if (event.equals(HCatConstants.HCAT_PARTITION_DONE_EVENT)) {
                // TODO: Fill in when PARTITION_DONE_EVENT is supported.
View Full Code Here


        Assert.assertEquals("mytbl", ((DropTableMessage) message2).getTable());
      } else if (event.equals(HCatConstants.HCAT_DROP_DATABASE_EVENT)) {

        Assert.assertEquals("topic://" + HCatConstants.HCAT_DEFAULT_TOPIC_PREFIX, msg
            .getJMSDestination().toString());
        DropDatabaseMessage message =  deserializer.getDropDatabaseMessage(messageBody);
        Assert.assertEquals("mydb", message.getDB());
        HCatEventMessage message2 = MessagingUtils.getMessage(msg);
        Assert.assertTrue("Unexpected message-type.", message2 instanceof DropDatabaseMessage);
        Assert.assertEquals("mydb", message2.getDB());
      } else if (event.equals(HCatConstants.HCAT_PARTITION_DONE_EVENT)) {
        // TODO: Fill in when PARTITION_DONE_EVENT is supported.
View Full Code Here

TOP

Related Classes of org.apache.hcatalog.messaging.DropDatabaseMessage

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.