Beispiel #1
0
        public static long Register(MesosExecutorDriver executorDriver)
        {
            var id = UniqueIdGenerator.GetNextId <MesosExecutorDriver>();

            ExecutorDriverMap[id] = new WeakReference(executorDriver, false);
            return(id);
        }
Beispiel #2
0
 public static void Unregister(MesosExecutorDriver executorDriver)
 {
     WeakReference tmp;
     ExecutorDriverMap.TryRemove(executorDriver.Id, out tmp);
 }
Beispiel #3
0
 public static long Register(MesosExecutorDriver executorDriver)
 {
     var id = UniqueIdGenerator.GetNextId<MesosExecutorDriver>();
     ExecutorDriverMap[id] = new WeakReference(executorDriver, false);
     return id;
 }
Beispiel #4
0
        public static void Unregister(MesosExecutorDriver executorDriver)
        {
            WeakReference tmp;

            ExecutorDriverMap.TryRemove(executorDriver.Id, out tmp);
        }