Package org.eclipse.tycho.p2.remote
Class RemoteAgent
- java.lang.Object
-
- org.eclipse.tycho.p2.remote.RemoteAgent
-
- All Implemented Interfaces:
org.eclipse.equinox.p2.core.IProvisioningAgent
public class RemoteAgent extends java.lang.Object implements org.eclipse.equinox.p2.core.IProvisioningAgent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
RemoteAgent.AgentBuilder
Wrapper around anIProvisioningAgent
with type-safe service access.
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.equinox.p2.core.IProvisioningAgent
delegate
-
Constructor Summary
Constructors Constructor Description RemoteAgent(MavenContext mavenContext)
RemoteAgent(MavenContext mavenContext, boolean disableP2Mirrors)
RemoteAgent(MavenContext mavenContext, MavenRepositorySettings mavenRepositorySettings, boolean disableMirrors)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static void
addMavenAwareRepositoryManagers(RemoteAgent.AgentBuilder agent, MavenRepositorySettings mavenRepositorySettings, MavenLogger logger)
private static void
addP2MirrorDisablingRepositoryManager(RemoteAgent.AgentBuilder agent, MavenLogger mavenLogger)
private static org.eclipse.equinox.p2.core.IProvisioningAgent
createConfiguredProvisioningAgent(MavenContext mavenContext, boolean disableP2Mirrors, MavenRepositorySettings mavenRepositorySettings)
<T> T
getService(java.lang.Class<T> type)
java.lang.Object
getService(java.lang.String serviceName)
private static void
makeCompositeRepositoryLoadingAtomicByDefault()
void
registerService(java.lang.String serviceName, java.lang.Object service)
void
stop()
void
unregisterService(java.lang.String serviceName, java.lang.Object service)
-
-
-
Constructor Detail
-
RemoteAgent
public RemoteAgent(MavenContext mavenContext, MavenRepositorySettings mavenRepositorySettings, boolean disableMirrors) throws org.eclipse.equinox.p2.core.ProvisionException
- Throws:
org.eclipse.equinox.p2.core.ProvisionException
-
RemoteAgent
RemoteAgent(MavenContext mavenContext, boolean disableP2Mirrors) throws org.eclipse.equinox.p2.core.ProvisionException
- Throws:
org.eclipse.equinox.p2.core.ProvisionException
-
RemoteAgent
public RemoteAgent(MavenContext mavenContext) throws org.eclipse.equinox.p2.core.ProvisionException
- Throws:
org.eclipse.equinox.p2.core.ProvisionException
-
-
Method Detail
-
createConfiguredProvisioningAgent
private static org.eclipse.equinox.p2.core.IProvisioningAgent createConfiguredProvisioningAgent(MavenContext mavenContext, boolean disableP2Mirrors, MavenRepositorySettings mavenRepositorySettings) throws org.eclipse.equinox.p2.core.ProvisionException
- Throws:
org.eclipse.equinox.p2.core.ProvisionException
-
addP2MirrorDisablingRepositoryManager
private static void addP2MirrorDisablingRepositoryManager(RemoteAgent.AgentBuilder agent, MavenLogger mavenLogger)
-
addMavenAwareRepositoryManagers
private static void addMavenAwareRepositoryManagers(RemoteAgent.AgentBuilder agent, MavenRepositorySettings mavenRepositorySettings, MavenLogger logger)
-
makeCompositeRepositoryLoadingAtomicByDefault
private static void makeCompositeRepositoryLoadingAtomicByDefault()
-
getService
public java.lang.Object getService(java.lang.String serviceName)
- Specified by:
getService
in interfaceorg.eclipse.equinox.p2.core.IProvisioningAgent
-
registerService
public void registerService(java.lang.String serviceName, java.lang.Object service)
- Specified by:
registerService
in interfaceorg.eclipse.equinox.p2.core.IProvisioningAgent
-
getService
public <T> T getService(java.lang.Class<T> type)
- Specified by:
getService
in interfaceorg.eclipse.equinox.p2.core.IProvisioningAgent
-
stop
public void stop()
- Specified by:
stop
in interfaceorg.eclipse.equinox.p2.core.IProvisioningAgent
-
unregisterService
public void unregisterService(java.lang.String serviceName, java.lang.Object service)
- Specified by:
unregisterService
in interfaceorg.eclipse.equinox.p2.core.IProvisioningAgent
-
-