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 classRemoteAgent.AgentBuilderWrapper around anIProvisioningAgentwith type-safe service access.
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.equinox.p2.core.IProvisioningAgentdelegate
-
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 voidaddMavenAwareRepositoryManagers(RemoteAgent.AgentBuilder agent, MavenRepositorySettings mavenRepositorySettings, MavenLogger logger)private static voidaddP2MirrorDisablingRepositoryManager(RemoteAgent.AgentBuilder agent, MavenLogger mavenLogger)private static org.eclipse.equinox.p2.core.IProvisioningAgentcreateConfiguredProvisioningAgent(MavenContext mavenContext, boolean disableP2Mirrors, MavenRepositorySettings mavenRepositorySettings)<T> TgetService(java.lang.Class<T> type)java.lang.ObjectgetService(java.lang.String serviceName)private static voidmakeCompositeRepositoryLoadingAtomicByDefault()voidregisterService(java.lang.String serviceName, java.lang.Object service)voidstop()voidunregisterService(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:
getServicein interfaceorg.eclipse.equinox.p2.core.IProvisioningAgent
-
registerService
public void registerService(java.lang.String serviceName, java.lang.Object service)- Specified by:
registerServicein interfaceorg.eclipse.equinox.p2.core.IProvisioningAgent
-
getService
public <T> T getService(java.lang.Class<T> type)
- Specified by:
getServicein interfaceorg.eclipse.equinox.p2.core.IProvisioningAgent
-
stop
public void stop()
- Specified by:
stopin interfaceorg.eclipse.equinox.p2.core.IProvisioningAgent
-
unregisterService
public void unregisterService(java.lang.String serviceName, java.lang.Object service)- Specified by:
unregisterServicein interfaceorg.eclipse.equinox.p2.core.IProvisioningAgent
-
-