scenario.py revision 1448
565N/A# The contents of this file are subject to the terms of the 565N/A# Common Development and Distribution License (the "License"). 565N/A# You may not use this file except in compliance with the License. 565N/A# See the License for the specific language governing permissions 565N/A# and limitations under the License. 565N/A# When distributing Covered Code, include this CDDL HEADER in each 565N/A# If applicable, add the following below this CDDL HEADER, with the 565N/A# fields enclosed by brackets "[]" replaced with your own identifying 565N/A# information: Portions Copyright [yyyy] [name of copyright owner] 3158N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 926N/A# Use is subject to license terms. 2339N/A """A Scenario has a list of depot.RepositoryURIs.""" 2524N/A print "bytes left %d; retrieving %d files" % (
total, c)
1710N/A# Scenario 1. A single origin. 1710N/A# Scenario 2a. An origin and mirror, mirror faster. 3158N/A# Scenario 2b. An origin and mirror, origin faster. 565N/A# Scenario 2c. An origin and mirror, mirror faster, but decaying. 2144N/A# Scenario 2d. An origin and mirror, mirror slower, but increasing. 2407N/A# Scenario 2e. An origin and mirror, mirror encountering decyable transport 3158N/A# Scenario 3a. An origin and two mirrors, one decaying. 565N/A# Scenario 3b. An origin and five mirrors.