Class ArtifactTransferPolicies
- java.lang.Object
-
- org.eclipse.tycho.repository.p2base.artifact.provider.formats.ArtifactTransferPolicies
-
public final class ArtifactTransferPolicies extends Object
-
-
Constructor Summary
Constructors Constructor Description ArtifactTransferPolicies()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArtifactTransferPolicy
forLocalArtifacts()
Returns theArtifactTransferPolicy
optimized for artifacts stored in the local file system.static ArtifactTransferPolicy
forRemoteArtifacts()
Returns theArtifactTransferPolicy
optimized for artifacts stored on a remote server.
-
-
-
Method Detail
-
forLocalArtifacts
public static ArtifactTransferPolicy forLocalArtifacts()
Returns theArtifactTransferPolicy
optimized for artifacts stored in the local file system. A provider with this policy will use the canonical format (if available) when asked for an artifact, avoiding unnecessary pack200 decompression operations.
-
forRemoteArtifacts
public static ArtifactTransferPolicy forRemoteArtifacts()
Returns theArtifactTransferPolicy
optimized for artifacts stored on a remote server. A provider with this policy will internally use the size-optimized pack200 format (if available) when asked for an artifact. This policy leads to a lower network usage, at the cost of a higher CPU usage.
-
-