예제 #1
0
		private void exereciseChord(ChordServer chord)
		{
            for (int i = 0; i < 16; i++)
                Thread.Sleep(10000);

            String sg = "PUT DATA TESTING";
            byte[] byteSg = System.Text.Encoding.ASCII.GetBytes(sg);
            byte[] byteSgKey = Tashjik.Common.UtilityMethod.sha.ComputeHash(byteSg);
            chord.beginPutData(byteSgKey, byteSg, 0, byteSg.Length, null, null);

            for (int i = 0; i < 6; i++)
                Thread.Sleep(10000);

            chord.beginGetData(byteSgKey, new AsyncCallback(processGetDataForExereciseChord), null);
		}
예제 #2
0
 public RealHalo()
 {
     chordServer = (ChordServer)(TashjikServer.createNew("Chord"));
     Guid chordInstanceGuid = chordServer.getGuid();
 }