Example #1
0
 public TransactionManager(Server server, KeyManager kManager, int k)
 {
     mTransactions = new ConcurrentDictionary<long, TransactionContext>();
     mLockManager = new LockManager();
     mKeyManager = kManager;
     mServer = server;
     K = k;
 }
Example #2
0
        public ServerThread(NodeRouter nodeRouter, KeyManager kManager)
        {
            mNodeRouter = nodeRouter;
            mKeyManager = kManager;
            mTimer = new Timer();
            mTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);

            mTimer.Interval = interval;
            mTimer.Enabled = true;
            //Default is true (flag wich tells if we want the event to be raised more than one time)
            //mTimer.AutoReset = true;
        }
Example #3
0
        public NodeRouter(string url, KeyManager kManager, Server server)
        {
            mClients = new Dictionary<UInt64, string>();
            mServers = new Dictionary<UInt64, string>();
            mURL = url;
            mServer = server;
            thisReplicaObject = new Object();
            thisIsReplicaObject = new Object();

            mID = ParticipantID.get(url, BINARY_KEY_LENGTH);
            System.Console.WriteLine("MID ------- " + mID);

            mKeyManager = kManager;
        }