the connections with the outer worlds , from which trantor obtained the resources it required , depended upon its thousand spaceports , its ten thousand warships , its hundred thousand merchant ships , its million space freighters .