Package org.apache.cassandra.db

Examples of org.apache.cassandra.db.TouchMessage


        if(endPoint.equals(StorageService.getLocalStorageEndPoint()))
        {
            touch_local(tablename, key, fData);
            return;
          }
            TouchMessage touchMessage = null;
            touchMessage = new TouchMessage(tablename, key, fData);
            Message message = TouchMessage.makeTouchMessage(touchMessage);
            MessagingService.getMessagingInstance().sendOneWay(message, endPoint);
      }
      return ;
    }
View Full Code Here


   
    static void strongTouchProtocol(String tablename, String key, boolean fData) throws Exception
    {
        Map<EndPoint, EndPoint> endpointMap = StorageService.instance().getNStorageEndPointMap(key);
        Set<EndPoint> endpoints = endpointMap.keySet();
        TouchMessage touchMessage = null;
        touchMessage = new TouchMessage(tablename, key, fData);
        Message message = TouchMessage.makeTouchMessage(touchMessage);
        for(EndPoint endpoint : endpoints)
        {
            MessagingService.getMessagingInstance().sendOneWay(message, endpoint);
        }     
View Full Code Here

TOP

Related Classes of org.apache.cassandra.db.TouchMessage

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.