Search in sources :

Example 6 with RegistryDeployment

use of org.bf2.srs.fleetmanager.rest.service.model.RegistryDeployment in project srs-fleet-manager by bf2fc6cc711aee1a0c2a.

the class Convert method convert.

public RegistryDeploymentRest convert(RegistryDeployment data) {
    RegistryDeploymentRest res = new RegistryDeploymentRest();
    res.setId(Optional.ofNullable(data.getId()).map(Long::intValue).orElse(// TODO Conversion
    null));
    res.setName(data.getName());
    res.setStatus(convert(data.getStatus()));
    res.setRegistryDeploymentUrl(data.getRegistryDeploymentUrl());
    res.setTenantManagerUrl(data.getTenantManagerUrl());
    return res;
}
Also used : RegistryDeploymentRest(org.bf2.srs.fleetmanager.rest.privateapi.beans.RegistryDeploymentRest)

Aggregations

RegistryDeploymentData (org.bf2.srs.fleetmanager.storage.sqlPanacheImpl.model.RegistryDeploymentData)5 Transactional (javax.transaction.Transactional)4 ProvisionRegistryTenantTask (org.bf2.srs.fleetmanager.execution.impl.tasks.ProvisionRegistryTenantTask)3 RegistryData (org.bf2.srs.fleetmanager.storage.sqlPanacheImpl.model.RegistryData)3 TenantNotFoundServiceException (org.bf2.srs.fleetmanager.spi.tenants.TenantNotFoundServiceException)2 TenantManagerConfig (org.bf2.srs.fleetmanager.spi.tenants.model.TenantManagerConfig)2 Instant (java.time.Instant)1 List (java.util.List)1 Optional (java.util.Optional)1 ThreadLocalRandom (java.util.concurrent.ThreadLocalRandom)1 Collectors.toList (java.util.stream.Collectors.toList)1 ApplicationScoped (javax.enterprise.context.ApplicationScoped)1 Inject (javax.inject.Inject)1 PersistenceException (javax.persistence.PersistenceException)1 ScheduleRegistryTask (org.bf2.srs.fleetmanager.execution.impl.tasks.ScheduleRegistryTask)1 SCHEDULE_REGISTRY_T (org.bf2.srs.fleetmanager.execution.impl.tasks.TaskType.SCHEDULE_REGISTRY_T)1 DeprovisionRegistryTask (org.bf2.srs.fleetmanager.execution.impl.tasks.deprovision.DeprovisionRegistryTask)1 SCHEDULE_REGISTRY_W (org.bf2.srs.fleetmanager.execution.impl.workers.WorkerType.SCHEDULE_REGISTRY_W)1 Task (org.bf2.srs.fleetmanager.execution.manager.Task)1 TaskManager (org.bf2.srs.fleetmanager.execution.manager.TaskManager)1