Exemple #1
0
        public void beginStoreContent(byte[] data, AsyncCallback storeContentCallBack, Object appState)
        {
            Console.WriteLine("ZhimeraProxyNode::beginNotify ENTER");

            byte[] compositeMsg = UtilityMethod.convertToTabSeparatedByteArray(true, "STORE_CONTENT", "CONTENT");

            Console.WriteLine("ZhimeraProxyNode::beginGetPredecessor before sendMsg to proxyController");
            proxyController.sendMsg(this, compositeMsg, 0, compositeMsg.Length, storeContentCallBack, appState);
        }
Exemple #2
0
        public void beginPredecessorNotify(IChordNode possiblePred, AsyncCallback notifyCallBack, Object appState)
        {
            Console.WriteLine("ChordProxyNode::beginNotify ENTER");

            byte[] compositeMsg = UtilityMethod.convertToTabSeparatedByteArray(true, "PREDECESSOR_NOTIFY", possiblePred.getIP().ToString());

            Console.WriteLine("ChordProxyNode::beginGetPredecessor before sendMsg to proxyController");
            proxyController.sendMsg(this, compositeMsg, 0, compositeMsg.Length, notifyCallBack, appState);
        }