| 1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2007, 2017 IBM Corporation and others. |
| 3 |
* |
| 4 |
* This program and the accompanying materials |
| 5 |
* are made available under the terms of the Eclipse Public License 2.0 |
| 6 |
* which accompanies this distribution, and is available at |
| 7 |
* https://www.eclipse.org/legal/epl-2.0/ |
| 8 |
* |
| 9 |
* SPDX-License-Identifier: EPL-2.0 |
| 10 |
* |
| 11 |
* Contributors: |
| 12 |
* IBM Corporation - initial API and implementation |
| 13 |
*******************************************************************************/ |
| 14 |
|
| 15 |
package org.eclipse.equinox.internal.p2.engine; |
| 16 |
|
| 17 |
import org.eclipse.equinox.internal.p2.engine.phases.Sizing; |
| 18 |
import org.eclipse.equinox.p2.engine.ISizingPhaseSet; |
| 19 |
|
| 20 |
public class SizingPhaseSet extends PhaseSet implements ISizingPhaseSet { |
| 21 |
|
| 22 |
private static Sizing sizing; |
| 23 |
|
| 24 |
public SizingPhaseSet() { |
| 25 |
super(new Phase[] {sizing = new Sizing(100)}); |
| 26 |
} |
| 27 |
|
| 28 |
@Override |
| 29 |
public long getDiskSize() { |
| 30 |
return sizing.getDiskSize(); |
| 31 |
} |
| 32 |
|
| 33 |
@Override |
| 34 |
public long getDownloadSize() { |
| 35 |
return sizing.getDownloadSize(); |
| 36 |
} |
| 37 |
} |