Package com.comcast.cmb.common.persistence

Examples of com.comcast.cmb.common.persistence.AbstractDurablePersistence.insertRow()


            values.put("timestamp", now + "");
            values.put("jmxport", System.getProperty("com.sun.management.jmxremote.port", "0"));
            values.put("dataCenter", CMBProperties.getInstance().getCMBDataCenter());
            values.put("serviceUrl", CMBProperties.getInstance().getCNSServiceUrl());
           
                cassandraHandler.insertRow(AbstractDurablePersistence.CNS_KEYSPACE, serverIp + ":" + serverPort, CNS_API_SERVERS, values, CMB_SERIALIZER.STRING_SERIALIZER, CMB_SERIALIZER.STRING_SERIALIZER, CMB_SERIALIZER.STRING_SERIALIZER, null);
               
          } catch (Exception ex) {
            logger.warn("event=ping_failed", ex);
          }
        }
View Full Code Here


            values.put("jmxport", System.getProperty("com.sun.management.jmxremote.port", "0"));
            values.put("dataCenter", CMBProperties.getInstance().getCMBDataCenter());
            values.put("serviceUrl", CMBProperties.getInstance().getCQSServiceUrl());
            values.put("redisServerList", CMBProperties.getInstance().getRedisServerList());
           
                cassandraHandler.insertRow(AbstractDurablePersistence.CQS_KEYSPACE, serverIp + ":" + serverPort, CQS_API_SERVERS, values, CMB_SERIALIZER.STRING_SERIALIZER, CMB_SERIALIZER.STRING_SERIALIZER, CMB_SERIALIZER.STRING_SERIALIZER, null);
               
          } catch (Exception ex) {
            logger.warn("event=ping_failed", ex);
          }
        }
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.