Esempio n. 1
0
                                    > GetAllPendingReplications()
        {
            LinkedListMultimap <DatanodeStorageInfo, DatanodeDescriptor.BlockTargetPair> repls
                = LinkedListMultimap.Create();

            foreach (DatanodeDescriptor dn in nodes)
            {
                IList <DatanodeDescriptor.BlockTargetPair> thisRepls = dn.GetReplicationCommand(10
                                                                                                );
                if (thisRepls != null)
                {
                    foreach (DatanodeStorageInfo storage in dn.GetStorageInfos())
                    {
                        repls.PutAll(storage, thisRepls);
                    }
                }
            }
            return(repls);
        }