Class Repository
- java.lang.Object
-
- org.fedoraproject.p2.installer.impl.Repository
-
public class Repository extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classRepository.TempDirRemover
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryartifactRepositoryprivate java.nio.file.Pathlocationprivate org.eclipse.equinox.p2.repository.metadata.IMetadataRepositorymetadataRepositoryprivate static java.nio.file.PathtempDir
-
Constructor Summary
Constructors Modifier Constructor Description privateRepository(java.nio.file.Path location, org.eclipse.equinox.p2.repository.artifact.IArtifactRepository artifactRepository, org.eclipse.equinox.p2.repository.metadata.IMetadataRepository metadataRepository)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Repositorycreate(java.nio.file.Path location)static RepositorycreateTemp()private static java.nio.file.PathcreateTempDirectory()private java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>executeQuery(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IInstallableUnit> query)java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>getAllUnits()org.eclipse.equinox.p2.repository.artifact.IArtifactRepositorygetArtifactRepository()org.eclipse.equinox.p2.internal.repository.tools.RepositoryDescriptorgetDescripror()java.nio.file.PathgetLocation()org.eclipse.equinox.p2.repository.metadata.IMetadataRepositorygetMetadataRepository()static Repositoryload(java.nio.file.Path location)
-
-
-
Field Detail
-
tempDir
private static java.nio.file.Path tempDir
-
location
private final java.nio.file.Path location
-
artifactRepository
private final org.eclipse.equinox.p2.repository.artifact.IArtifactRepository artifactRepository
-
metadataRepository
private final org.eclipse.equinox.p2.repository.metadata.IMetadataRepository metadataRepository
-
-
Method Detail
-
createTemp
public static Repository createTemp() throws org.eclipse.equinox.p2.core.ProvisionException, java.io.IOException
- Throws:
org.eclipse.equinox.p2.core.ProvisionExceptionjava.io.IOException
-
create
public static Repository create(java.nio.file.Path location) throws org.eclipse.equinox.p2.core.ProvisionException
- Throws:
org.eclipse.equinox.p2.core.ProvisionException
-
load
public static Repository load(java.nio.file.Path location) throws org.eclipse.equinox.p2.core.ProvisionException
- Throws:
org.eclipse.equinox.p2.core.ProvisionException
-
getLocation
public java.nio.file.Path getLocation()
-
getArtifactRepository
public org.eclipse.equinox.p2.repository.artifact.IArtifactRepository getArtifactRepository()
-
getMetadataRepository
public org.eclipse.equinox.p2.repository.metadata.IMetadataRepository getMetadataRepository()
-
getDescripror
public org.eclipse.equinox.p2.internal.repository.tools.RepositoryDescriptor getDescripror()
-
executeQuery
private java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> executeQuery(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IInstallableUnit> query)
-
getAllUnits
public java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> getAllUnits()
-
createTempDirectory
private static java.nio.file.Path createTempDirectory() throws java.io.IOException- Throws:
java.io.IOException
-
-