Examples of checkIsValid()


Examples of com.comcast.cns.model.CNSSubscription.checkIsValid()

                }
               
                // ignore invalid subscriptions coming from Cassandra
               
                try {
                  subscription.checkIsValid();
                } catch (CMBException ex) {
                  logger.error("event=invalid_subscription " + subscription.toString(), ex);
                  continue;
                }
               
View Full Code Here

Examples of com.comcast.cns.model.CNSSubscription.checkIsValid()

            CNSSubscription sub = extractSubscriptionFromColumn(col, topicArn);
           
                // ignore invalid subscriptions coming from Cassandra
               
                try {
                  sub.checkIsValid();
                } catch (CMBException ex) {
                  logger.error("event=invalid_subscription " + sub.toString(), ex);
                  continue;
                }
           
View Full Code Here

Examples of com.comcast.cns.model.CNSTopic.checkIsValid()

    if (topic != null) {
      return topic;
    } else {

      topic = new CNSTopic(arn, name, displayName, userId);
      topic.checkIsValid();
     
      cassandraHandler.insertRow(AbstractDurablePersistence.CNS_KEYSPACE, topic.getArn(), columnFamilyTopics, getColumnValues(topic), CMB_SERIALIZER.STRING_SERIALIZER, CMB_SERIALIZER.STRING_SERIALIZER, CMB_SERIALIZER.STRING_SERIALIZER, null);
      cassandraHandler.update(AbstractDurablePersistence.CNS_KEYSPACE, columnFamilyTopicsByUserId, userId, topic.getArn(), "", CMB_SERIALIZER.STRING_SERIALIZER, CMB_SERIALIZER.STRING_SERIALIZER, CMB_SERIALIZER.STRING_SERIALIZER, null);
      cassandraHandler.delete(AbstractDurablePersistence.CNS_KEYSPACE, columnFamilyTopicStats, arn, null, CMB_SERIALIZER.STRING_SERIALIZER, CMB_SERIALIZER.STRING_SERIALIZER);
     
View Full Code Here

Examples of com.comcast.cns.model.CNSTopic.checkIsValid()

    CNSTopic topic = getTopic(arn);

    if (topic != null) {
      topic.setDisplayName(displayName);
      topic.checkIsValid();
      cassandraHandler.insertRow(AbstractDurablePersistence.CNS_KEYSPACE, topic.getArn(), columnFamilyTopics, getColumnValues(topic), CMB_SERIALIZER.STRING_SERIALIZER, CMB_SERIALIZER.STRING_SERIALIZER, CMB_SERIALIZER.STRING_SERIALIZER, null);
    }
   
    CNSCache.removeTopic(arn);
  }
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.