/** * Return the provisioning engine for this session * @return the provisioning engine */ IEngine getEngine() { return (IEngine) agent.getService(IEngine.SERVICE_NAME); }
private void unregisterAgent() { if (agent != null) { agent.stop(); agent = null; } } }
@Override public void unregisterService(String serviceName, Object service) { delegate.unregisterService(serviceName, service); }
public IProvisioningAgent createAgent() { IProvisioningAgent agent = null; try { agent = agentProvider.createAgent(URIUtil.fromString(p2DataAreaURI)); } catch (ProvisionException e) { //Can't happen } catch (URISyntaxException e) { //Can't happen since we are always constructing the string from code that manipulate files (included the code in the Manipulator) } agent.registerService("FORCED_SELF", profileId); return agent; }
private boolean saveResult() { return result != null ? result.saveResult() : false; } }
/** * Return the provisioning event bus used for dispatching events. * @return the event bus */ IProvisioningEventBus getProvisioningEventBus() { return (IProvisioningEventBus) agent.getService(IProvisioningEventBus.SERVICE_NAME); }
@Override public void stop() { delegate.stop(); }
/** * Return the planner used for this session * @return the planner */ IPlanner getPlanner() { return (IPlanner) agent.getService(IPlanner.SERVICE_NAME); }
private void unregisterAgent() { if (agent != null) { agent.stop(); agent = null; } } }
/** * Returns the repository manager of the given type, or <code>null</code> * if not available. */ private static IRepositoryManager<?> getRepositoryManager(IProvisioningAgent agent, int type) { if (type == IRepository.TYPE_METADATA) { return (IRepositoryManager<?>) agent.getService(IMetadataRepositoryManager.SERVICE_NAME); } else if (type == IRepository.TYPE_ARTIFACT) { return (IRepositoryManager<?>) agent.getService(IArtifactRepositoryManager.SERVICE_NAME); } return null; }
private void unregisterAgent() { if (agent != null) { agent.stop(); agent = null; } } }
/** * Return the agent location for this session * @return the agent location */ IAgentLocation getAgentLocation() { return (IAgentLocation) agent.getService(IAgentLocation.SERVICE_NAME); }
/** * Returns the repository manager of the given type, or <code>null</code> * if not available. */ private static IRepositoryManager<?> getRepositoryManager(IProvisioningAgent agent, int type) { if (type == IRepository.TYPE_METADATA) { return (IRepositoryManager<?>) agent.getService(IMetadataRepositoryManager.SERVICE_NAME); } else if (type == IRepository.TYPE_ARTIFACT) { return (IRepositoryManager<?>) agent.getService(IArtifactRepositoryManager.SERVICE_NAME); } return null; }
/** * Return the agent location for this session * @return the agent location */ IAgentLocation getAgentLocation() { return (IAgentLocation) agent.getService(IAgentLocation.SERVICE_NAME); }
/** * Return the metadata repository manager for this session * @return the repository manager */ IMetadataRepositoryManager getMetadataRepositoryManager() { return (IMetadataRepositoryManager) agent.getService(IMetadataRepositoryManager.SERVICE_NAME); }
/** * Return the planner used for this session * @return the planner */ IPlanner getPlanner() { return (IPlanner) agent.getService(IPlanner.SERVICE_NAME); }
@Override public Object getService(String serviceName) { return delegate.getService(serviceName); }
/** * Return the artifact repository manager for this session * @return the repository manager */ IArtifactRepositoryManager getArtifactRepositoryManager() { return (IArtifactRepositoryManager) agent.getService(IArtifactRepositoryManager.SERVICE_NAME); }
/** * Return the metadata repository manager for this session * @return the repository manager */ IMetadataRepositoryManager getMetadataRepositoryManager() { return (IMetadataRepositoryManager) agent.getService(IMetadataRepositoryManager.SERVICE_NAME); }
/** * Return the provisioning event bus used for dispatching events. * @return the event bus */ IProvisioningEventBus getProvisioningEventBus() { return (IProvisioningEventBus) agent.getService(IProvisioningEventBus.SERVICE_NAME); }