@Override public void deregisterProvider(String name) throws BusinessException { runtimeRegistry.deregisterProvider(name); }
@Override public ProviderTypeList getProviderTypes(Integer page, Integer pageSize, String sort, boolean sortOrder) throws BusinessException { return new ProviderTypeList(runtimeRegistry.getProviderTypes(page, pageSize, sort, sortOrder)); }
@Override public boolean supports(final RuntimeId runtimeId) { return runtimeId instanceof WildflyRuntime || runtimeRegistry.getRuntimeById(runtimeId.getId()) instanceof WildflyRuntime; }
@Override public void registerProvider(ProviderConfig conf) throws BusinessException { final Optional<Provider> newProvider = providerFactory.newProvider(conf); if (newProvider.isPresent()) { runtimeRegistry.registerProvider(newProvider.get()); } }
@Override public Optional<WildflyRuntime> apply(final WildflyRuntimeConfiguration config) { final Optional<WildflyRuntime> runtime = create(config); if (runtime.isPresent()) { runtimeRegistry.registerRuntime(runtime.get()); } return runtime; }
public boolean deploy(BuildRegistry buildRegistry) throws Exception { return deploy(buildRegistry.getAllBinaries()); }
@Override public RuntimeList getRuntimes(Integer page, Integer pageSize, String sort, boolean sortOrder) throws BusinessException { return new RuntimeList(runtimeRegistry.getRuntimes(page, pageSize, sort, sortOrder)); }
@Override public ProviderList getProviders(Integer page, Integer pageSize, String sort, boolean sortOrder) throws BusinessException { return new ProviderList(runtimeRegistry.getProviders(page, pageSize, sort, sortOrder)); }
@Override public boolean supports(final RuntimeId runtimeId) { return runtimeId instanceof WildflyRuntime || runtimeRegistry.getRuntimeById(runtimeId.getId()) instanceof WildflyRuntime; }
public boolean deploy(BuildRegistry buildRegistry) throws Exception { return deploy(buildRegistry.getAllBinaries()); }
@Override public boolean supports(final RuntimeId runtimeId) { return runtimeId instanceof WildflyRuntime || runtimeRegistry.getRuntimeById(runtimeId.getId()) instanceof WildflyRuntime; }
@Override public boolean supports(final RuntimeId runtimeId) { return runtimeId instanceof DockerRuntime || runtimeRegistry.getRuntimeById(runtimeId.getId()) instanceof DockerRuntime; }
@Override public boolean supports(final RuntimeId runtimeId) { return runtimeId instanceof DockerRuntime || runtimeRegistry.getRuntimeById(runtimeId.getId()) instanceof DockerRuntime; }
@Override public boolean supports(final RuntimeId runtimeId) { return runtimeId instanceof WildflyRuntime || runtimeRegistry.getRuntimeById(runtimeId.getId()) instanceof WildflyRuntime; }
@Override public boolean supports(final RuntimeId runtimeId) { return runtimeId instanceof DockerRuntime || runtimeRegistry.getRuntimeById(runtimeId.getId()) instanceof DockerRuntime; }
@Override public boolean supports(final RuntimeId runtimeId) { return runtimeId instanceof DockerRuntime || runtimeRegistry.getRuntimeById(runtimeId.getId()) instanceof DockerRuntime; }
@Override public boolean supports(final RuntimeId runtimeId) { return runtimeId instanceof OpenShiftRuntime || runtimeRegistry.getRuntimeById(runtimeId.getId()) instanceof OpenShiftRuntime; }
@Override public boolean supports(final RuntimeId runtimeId) { return runtimeId instanceof OpenShiftRuntime || runtimeRegistry.getRuntimeById(runtimeId.getId()) instanceof OpenShiftRuntime; }
@Override public void startRuntime(String runtimeId) throws BusinessException { final Runtime runtimeById = runtimeRegistry.getRuntimeById(runtimeId); if (runtimeById == null) { throw new BusinessException("No runtime was found for runtimeId: " + runtimeId); } runtimeManagerFactory.startRuntime(runtimeById); }
@Override public void stopRuntime(String runtimeId) throws BusinessException { final Runtime runtimeById = runtimeRegistry.getRuntimeById(runtimeId); if (runtimeById == null) { throw new BusinessException("No runtime was found for runtimeId: " + runtimeId); } runtimeManagerFactory.stopRuntime(runtimeById); }