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