index int64 0 0 | repo_id stringlengths 9 205 | file_path stringlengths 31 246 | content stringlengths 1 12.2M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories/appcatalog/ComputeResourceRepository.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.repositories.appcatalog;
import org.apache.airavata.common.utils.AiravataUtils;
import org.apache.airavata.model.appcatalog.computeresource.CloudJobSubmission;
import org.apache.airavata.model.appcatalog.computeresource.ComputeResourceDescription;
import org.apache.airavata.model.appcatalog.computeresource.FileSystems;
import org.apache.airavata.model.appcatalog.computeresource.GlobusJobSubmission;
import org.apache.airavata.model.appcatalog.computeresource.JobManagerCommand;
import org.apache.airavata.model.appcatalog.computeresource.JobSubmissionInterface;
import org.apache.airavata.model.appcatalog.computeresource.LOCALSubmission;
import org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager;
import org.apache.airavata.model.appcatalog.computeresource.SSHJobSubmission;
import org.apache.airavata.model.appcatalog.computeresource.UnicoreJobSubmission;
import org.apache.airavata.model.appcatalog.computeresource.compute_resource_modelConstants;
import org.apache.airavata.model.data.movement.DMType;
import org.apache.airavata.model.data.movement.DataMovementInterface;
import org.apache.airavata.model.data.movement.GridFTPDataMovement;
import org.apache.airavata.model.data.movement.LOCALDataMovement;
import org.apache.airavata.model.data.movement.SCPDataMovement;
import org.apache.airavata.model.data.movement.UnicoreDataMovement;
import org.apache.airavata.model.parallelism.ApplicationParallelismType;
import org.apache.airavata.registry.core.entities.appcatalog.BatchQueuePK;
import org.apache.airavata.registry.core.entities.appcatalog.CloudJobSubmissionEntity;
import org.apache.airavata.registry.core.entities.appcatalog.ComputeResourceEntity;
import org.apache.airavata.registry.core.entities.appcatalog.ComputeResourceFileSystemEntity;
import org.apache.airavata.registry.core.entities.appcatalog.DataMovementInterfacePK;
import org.apache.airavata.registry.core.entities.appcatalog.GridftpDataMovementEntity;
import org.apache.airavata.registry.core.entities.appcatalog.GridftpEndpointEntity;
import org.apache.airavata.registry.core.entities.appcatalog.JobSubmissionInterfacePK;
import org.apache.airavata.registry.core.entities.appcatalog.LocalDataMovementEntity;
import org.apache.airavata.registry.core.entities.appcatalog.LocalSubmissionEntity;
import org.apache.airavata.registry.core.entities.appcatalog.ResourceJobManagerEntity;
import org.apache.airavata.registry.core.entities.appcatalog.ScpDataMovementEntity;
import org.apache.airavata.registry.core.entities.appcatalog.SshJobSubmissionEntity;
import org.apache.airavata.registry.core.entities.appcatalog.UnicoreDatamovementEntity;
import org.apache.airavata.registry.core.entities.appcatalog.UnicoreSubmissionEntity;
import org.apache.airavata.registry.core.utils.AppCatalogUtils;
import org.apache.airavata.registry.core.utils.DBConstants;
import org.apache.airavata.registry.core.utils.ObjectMapperSingleton;
import org.apache.airavata.registry.core.utils.QueryConstants;
import org.apache.airavata.registry.cpi.AppCatalogException;
import org.apache.airavata.registry.cpi.ComputeResource;
import org.dozer.Mapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.persistence.Query;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
public class ComputeResourceRepository extends AppCatAbstractRepository<ComputeResourceDescription, ComputeResourceEntity, String> implements ComputeResource {
private final static Logger logger = LoggerFactory.getLogger(ComputeResourceRepository.class);
public ComputeResourceRepository() {
super(ComputeResourceDescription.class, ComputeResourceEntity.class);
}
@Override
public String addComputeResource(ComputeResourceDescription description) throws AppCatalogException {
if (description.getComputeResourceId().equals("") || description.getComputeResourceId().equals(compute_resource_modelConstants.DEFAULT_ID)){
description.setComputeResourceId(AppCatalogUtils.getID(description.getHostName()));
}
return saveComputeResourceDescriptorData(description);
}
protected String saveComputeResourceDescriptorData(
ComputeResourceDescription description) throws AppCatalogException {
//TODO remove existing one
ComputeResourceEntity computeResourceEntity = saveComputeResource(description);
saveFileSystems(description, computeResourceEntity);
return computeResourceEntity.getComputeResourceId();
}
protected ComputeResourceEntity saveComputeResource(
ComputeResourceDescription description) throws AppCatalogException {
String computeResourceId = description.getComputeResourceId();
Mapper mapper = ObjectMapperSingleton.getInstance();
ComputeResourceEntity computeResourceEntity = mapper.map(description, ComputeResourceEntity.class);
if (computeResourceEntity.getBatchQueues() != null) {
computeResourceEntity.getBatchQueues().forEach(batchQueueEntity -> batchQueueEntity.setComputeResourceId(computeResourceId));
}
if (computeResourceEntity.getDataMovementInterfaces() != null) {
computeResourceEntity.getDataMovementInterfaces().forEach(dataMovementInterfaceEntity -> dataMovementInterfaceEntity.setComputeResourceId(computeResourceId));
}
if (computeResourceEntity.getJobSubmissionInterfaces() != null) {
computeResourceEntity.getJobSubmissionInterfaces().forEach(jobSubmissionInterfaceEntity -> jobSubmissionInterfaceEntity.setComputeResourceId(computeResourceId));
}
return execute(entityManager -> entityManager.merge(computeResourceEntity));
}
protected void saveFileSystems(ComputeResourceDescription description,
ComputeResourceEntity computeHostResource)
throws AppCatalogException {
Map<FileSystems, String> fileSystems = description.getFileSystems();
if (fileSystems != null && !fileSystems.isEmpty()) {
for (FileSystems key : fileSystems.keySet()) {
ComputeResourceFileSystemEntity computeResourceFileSystemEntity = new ComputeResourceFileSystemEntity();
computeResourceFileSystemEntity.setComputeResourceId(computeHostResource.getComputeResourceId());
computeResourceFileSystemEntity.setFileSystem(key);
computeResourceFileSystemEntity.setPath(fileSystems.get(key));
computeResourceFileSystemEntity.setComputeResource(computeHostResource);
execute(entityManager -> entityManager.merge(computeResourceFileSystemEntity));
}
}
}
protected Map<FileSystems, String> getFileSystems(String computeResourceId) {
Map<String,Object> queryParameters = new HashMap<>();
queryParameters.put(DBConstants.ComputeResource.COMPUTE_RESOURCE_ID, computeResourceId);
List resultSet = (List) execute(entityManager -> {
Query jpaQuery = entityManager.createQuery(QueryConstants.GET_FILE_SYSTEM);
for (Map.Entry<String, Object> entry : queryParameters.entrySet()) {
jpaQuery.setParameter(entry.getKey(), entry.getValue());
}
return jpaQuery.setFirstResult(0).getResultList();
});
List<ComputeResourceFileSystemEntity> computeResourceFileSystemEntityList = resultSet;
Map<FileSystems, String> fileSystemsMap= new HashMap<FileSystems,String>();
for (ComputeResourceFileSystemEntity fs: computeResourceFileSystemEntityList) {
fileSystemsMap.put(fs.getFileSystem(), fs.getPath());
}
return fileSystemsMap;
}
@Override
public void updateComputeResource(String computeResourceId, ComputeResourceDescription updatedComputeResource) throws AppCatalogException {
saveComputeResourceDescriptorData(updatedComputeResource);
}
@Override
public ComputeResourceDescription getComputeResource(String resourceId) throws AppCatalogException {
ComputeResourceDescription computeResourceDescription = get(resourceId);
if (computeResourceDescription != null) {
computeResourceDescription.setFileSystems(getFileSystems(resourceId));
}
return computeResourceDescription;
}
@Override
public List<ComputeResourceDescription> getComputeResourceList(Map<String, String> filters) throws AppCatalogException {
if (filters.containsKey(DBConstants.ComputeResource.HOST_NAME)) {
Map<String,Object> queryParameters = new HashMap<>();
queryParameters.put(DBConstants.ComputeResource.HOST_NAME, filters.get(DBConstants.ComputeResource.HOST_NAME));
List<ComputeResourceDescription> computeResourceDescriptionList = select(QueryConstants.FIND_COMPUTE_RESOURCE, -1, 0, queryParameters);
for (ComputeResourceDescription cd: computeResourceDescriptionList) {
cd.setFileSystems(getFileSystems(cd.getComputeResourceId()));
}
return computeResourceDescriptionList;
}
else {
logger.error("Unsupported field name for compute resource.", new IllegalArgumentException());
throw new IllegalArgumentException("Unsupported field name for compute resource.");
}
}
@Override
public List<ComputeResourceDescription> getAllComputeResourceList() throws AppCatalogException {
List<ComputeResourceDescription> computeResourceDescriptionList = select(QueryConstants.FIND_ALL_COMPUTE_RESOURCES, 0);
for (ComputeResourceDescription cd: computeResourceDescriptionList) {
cd.setFileSystems(getFileSystems(cd.getComputeResourceId()));
}
return computeResourceDescriptionList;
}
@Override
public Map<String, String> getAllComputeResourceIdList() throws AppCatalogException {
Map<String, String> computeResourceMap = new HashMap<String, String>();
List<ComputeResourceDescription> computeResourceDescriptionList = select(QueryConstants.FIND_ALL_COMPUTE_RESOURCES, 0);
if (computeResourceDescriptionList != null && !computeResourceDescriptionList.isEmpty()) {
for (ComputeResourceDescription computeResourceDescription: computeResourceDescriptionList) {
computeResourceMap.put(computeResourceDescription.getComputeResourceId(), computeResourceDescription.getHostName());
}
}
return computeResourceMap;
}
@Override
public Map<String, String> getAvailableComputeResourceIdList() throws AppCatalogException {
Map<String, String> computeResourceMap = new HashMap<String, String>();
List<ComputeResourceDescription> computeResourceDescriptionList = select(QueryConstants.FIND_ALL_COMPUTE_RESOURCES, 0);
if (computeResourceDescriptionList != null && !computeResourceDescriptionList.isEmpty()) {
for (ComputeResourceDescription computeResourceDescription : computeResourceDescriptionList) {
if (computeResourceDescription.isEnabled()){
computeResourceMap.put(computeResourceDescription.getComputeResourceId(), computeResourceDescription.getHostName());
}
}
}
return computeResourceMap;
}
@Override
public boolean isComputeResourceExists(String resourceId) throws AppCatalogException {
return isExists(resourceId);
}
@Override
public void removeComputeResource(String resourceId) throws AppCatalogException {
delete(resourceId);
}
@Override
public String addSSHJobSubmission(SSHJobSubmission sshJobSubmission) throws AppCatalogException {
String submissionId = AppCatalogUtils.getID("SSH");
sshJobSubmission.setJobSubmissionInterfaceId(submissionId);
String resourceJobManagerId = addResourceJobManager(sshJobSubmission.getResourceJobManager());
Mapper mapper = ObjectMapperSingleton.getInstance();
SshJobSubmissionEntity sshJobSubmissionEntity = mapper.map(sshJobSubmission, SshJobSubmissionEntity.class);
sshJobSubmissionEntity.getResourceJobManager().setResourceJobManagerId(resourceJobManagerId);
if (sshJobSubmission.getResourceJobManager().getParallelismPrefix() != null) {
(new ResourceJobManagerRepository()).createParallesimPrefix(sshJobSubmission.getResourceJobManager().getParallelismPrefix(), sshJobSubmissionEntity.getResourceJobManager());
}
if (sshJobSubmission.getResourceJobManager().getJobManagerCommands() != null) {
(new ResourceJobManagerRepository()).createJobManagerCommand(sshJobSubmission.getResourceJobManager().getJobManagerCommands(), sshJobSubmissionEntity.getResourceJobManager());
}
if (sshJobSubmission.getMonitorMode() != null){
sshJobSubmissionEntity.setMonitorMode(sshJobSubmission.getMonitorMode().toString());
}
execute(entityManager -> entityManager.merge(sshJobSubmissionEntity));
return submissionId;
}
public void updateSSHJobSubmission(SSHJobSubmission sshJobSubmission) throws AppCatalogException {
Mapper mapper = ObjectMapperSingleton.getInstance();
SshJobSubmissionEntity sshJobSubmissionEntity = mapper.map(sshJobSubmission, SshJobSubmissionEntity.class);
sshJobSubmissionEntity.setUpdateTime(AiravataUtils.getCurrentTimestamp());
execute(entityManager -> entityManager.merge(sshJobSubmissionEntity));
}
@Override
public String addCloudJobSubmission(CloudJobSubmission cloudJobSubmission) throws AppCatalogException {
cloudJobSubmission.setJobSubmissionInterfaceId(AppCatalogUtils.getID("Cloud"));
Mapper mapper = ObjectMapperSingleton.getInstance();
CloudJobSubmissionEntity cloudJobSubmissionEntity = mapper.map(cloudJobSubmission, CloudJobSubmissionEntity.class);
execute(entityManager -> entityManager.merge(cloudJobSubmissionEntity));
return cloudJobSubmissionEntity.getJobSubmissionInterfaceId();
}
public void updateCloudJobSubmission(CloudJobSubmission cloudJobSubmission) throws AppCatalogException {
Mapper mapper = ObjectMapperSingleton.getInstance();
CloudJobSubmissionEntity cloudJobSubmissionEntity = mapper.map(cloudJobSubmission, CloudJobSubmissionEntity.class);
execute(entityManager -> entityManager.merge(cloudJobSubmissionEntity));
}
@Override
public String addResourceJobManager(ResourceJobManager resourceJobManager) throws AppCatalogException {
ResourceJobManagerRepository resourceJobManagerRepository = new ResourceJobManagerRepository();
resourceJobManager.setResourceJobManagerId(AppCatalogUtils.getID("RJM"));
resourceJobManagerRepository.create(resourceJobManager);
Mapper mapper = ObjectMapperSingleton.getInstance();
ResourceJobManagerEntity resourceJobManagerEntity = mapper.map(resourceJobManager, ResourceJobManagerEntity.class);
Map<JobManagerCommand, String> jobManagerCommands = resourceJobManager.getJobManagerCommands();
if (jobManagerCommands!=null && jobManagerCommands.size() != 0) {
resourceJobManagerRepository.createJobManagerCommand(jobManagerCommands, resourceJobManagerEntity);
}
Map<ApplicationParallelismType, String> parallelismPrefix = resourceJobManager.getParallelismPrefix();
if (parallelismPrefix!=null && parallelismPrefix.size() != 0) {
resourceJobManagerRepository.createParallesimPrefix(parallelismPrefix, resourceJobManagerEntity);
}
return resourceJobManager.getResourceJobManagerId();
}
@Override
public void updateResourceJobManager(String resourceJobManagerId, ResourceJobManager updatedResourceJobManager) throws AppCatalogException {
ResourceJobManagerRepository resourceJobManagerRepository = new ResourceJobManagerRepository();
updatedResourceJobManager.setResourceJobManagerId(resourceJobManagerId);
ResourceJobManager resourceJobManager = resourceJobManagerRepository.create(updatedResourceJobManager);
Mapper mapper = ObjectMapperSingleton.getInstance();
ResourceJobManagerEntity resourceJobManagerEntity = mapper.map(resourceJobManager, ResourceJobManagerEntity.class);
Map<JobManagerCommand, String> jobManagerCommands = updatedResourceJobManager.getJobManagerCommands();
if (jobManagerCommands!=null && jobManagerCommands.size() != 0) {
resourceJobManagerRepository.createJobManagerCommand(jobManagerCommands, resourceJobManagerEntity);
}
Map<ApplicationParallelismType, String> parallelismPrefix = updatedResourceJobManager.getParallelismPrefix();
if (parallelismPrefix!=null && parallelismPrefix.size() != 0) {
resourceJobManagerRepository.createParallesimPrefix(parallelismPrefix, resourceJobManagerEntity);
}
}
@Override
public ResourceJobManager getResourceJobManager(String resourceJobManagerId) throws AppCatalogException {
ResourceJobManagerRepository resourceJobManagerRepository = new ResourceJobManagerRepository();
ResourceJobManager resourceJobManager = resourceJobManagerRepository.get(resourceJobManagerId);
if (resourceJobManager != null) {
resourceJobManager.setJobManagerCommands(resourceJobManagerRepository.getJobManagerCommand(resourceJobManagerId));
resourceJobManager.setParallelismPrefix(resourceJobManagerRepository.getParallelismPrefix(resourceJobManagerId));
}
return resourceJobManager;
}
@Override
public void deleteResourceJobManager(String resourceJobManagerId) throws AppCatalogException {
(new ResourceJobManagerRepository()).delete(resourceJobManagerId);
}
@Override
public String addJobSubmissionProtocol(String computeResourceId, JobSubmissionInterface jobSubmissionInterface) throws AppCatalogException {
return (new JobSubmissionInterfaceRepository()).addJobSubmission(computeResourceId, jobSubmissionInterface);
}
@Override
public String addLocalJobSubmission(LOCALSubmission localSubmission) throws AppCatalogException {
localSubmission.setJobSubmissionInterfaceId(AppCatalogUtils.getID("LOCAL"));
String resourceJobManagerId = addResourceJobManager(localSubmission.getResourceJobManager());
Mapper mapper = ObjectMapperSingleton.getInstance();
LocalSubmissionEntity localSubmissionEntity = mapper.map(localSubmission, LocalSubmissionEntity.class);
localSubmissionEntity.setResourceJobManagerId(resourceJobManagerId);
localSubmissionEntity.getResourceJobManager().setResourceJobManagerId(resourceJobManagerId);
if (localSubmission.getResourceJobManager().getParallelismPrefix() != null) {
(new ResourceJobManagerRepository()).createParallesimPrefix(localSubmission.getResourceJobManager().getParallelismPrefix(), localSubmissionEntity.getResourceJobManager());
}
if (localSubmission.getResourceJobManager().getJobManagerCommands() != null) {
(new ResourceJobManagerRepository()).createJobManagerCommand(localSubmission.getResourceJobManager().getJobManagerCommands(), localSubmissionEntity.getResourceJobManager());
}
localSubmissionEntity.setSecurityProtocol(localSubmission.getSecurityProtocol());
execute(entityManager -> entityManager.merge(localSubmissionEntity));
return localSubmissionEntity.getJobSubmissionInterfaceId();
}
public void updateLocalJobSubmission(LOCALSubmission localSubmission) throws AppCatalogException {
Mapper mapper = ObjectMapperSingleton.getInstance();
LocalSubmissionEntity localSubmissionEntity = mapper.map(localSubmission, LocalSubmissionEntity.class);
localSubmissionEntity.setUpdateTime(AiravataUtils.getCurrentTimestamp());
execute(entityManager -> entityManager.merge(localSubmissionEntity));
}
@Override
public String addGlobusJobSubmission(GlobusJobSubmission globusJobSubmission) throws AppCatalogException {
return null;
}
@Override
public String addUNICOREJobSubmission(UnicoreJobSubmission unicoreJobSubmission) throws AppCatalogException {
unicoreJobSubmission.setJobSubmissionInterfaceId(AppCatalogUtils.getID("UNICORE"));
Mapper mapper = ObjectMapperSingleton.getInstance();
UnicoreSubmissionEntity unicoreSubmissionEntity = mapper.map(unicoreJobSubmission, UnicoreSubmissionEntity.class);
if (unicoreJobSubmission.getSecurityProtocol() != null) {
unicoreSubmissionEntity.setSecurityProtocol(unicoreJobSubmission.getSecurityProtocol());
}
execute(entityManager -> entityManager.merge(unicoreSubmissionEntity));
return unicoreJobSubmission.getJobSubmissionInterfaceId();
}
@Override
public String addLocalDataMovement(LOCALDataMovement localDataMovement) throws AppCatalogException {
localDataMovement.setDataMovementInterfaceId(AppCatalogUtils.getID("LOCAL"));
Mapper mapper = ObjectMapperSingleton.getInstance();
LocalDataMovementEntity localDataMovementEntity = mapper.map(localDataMovement, LocalDataMovementEntity.class);
execute(entityManager -> entityManager.merge(localDataMovementEntity));
return localDataMovementEntity.getDataMovementInterfaceId();
}
public void updateLocalDataMovement(LOCALDataMovement localDataMovement) throws AppCatalogException {
Mapper mapper = ObjectMapperSingleton.getInstance();
LocalDataMovementEntity localDataMovementEntity = mapper.map(localDataMovement, LocalDataMovementEntity.class);
execute(entityManager -> entityManager.merge(localDataMovementEntity));
}
@Override
public String addScpDataMovement(SCPDataMovement scpDataMovement) throws AppCatalogException {
scpDataMovement.setDataMovementInterfaceId(AppCatalogUtils.getID("SCP"));
Mapper mapper = ObjectMapperSingleton.getInstance();
ScpDataMovementEntity scpDataMovementEntity = mapper.map(scpDataMovement, ScpDataMovementEntity.class);
execute(entityManager -> entityManager.merge(scpDataMovementEntity));
return scpDataMovementEntity.getDataMovementInterfaceId();
}
public void updateScpDataMovement(SCPDataMovement scpDataMovement) throws AppCatalogException {
Mapper mapper = ObjectMapperSingleton.getInstance();
ScpDataMovementEntity scpDataMovementEntity = mapper.map(scpDataMovement, ScpDataMovementEntity.class);
scpDataMovementEntity.setUpdateTime(AiravataUtils.getCurrentTimestamp());
execute(entityManager -> entityManager.merge(scpDataMovementEntity));
}
@Override
public String addUnicoreDataMovement(UnicoreDataMovement unicoreDataMovement) throws AppCatalogException {
unicoreDataMovement.setDataMovementInterfaceId(AppCatalogUtils.getID("UNICORE"));
Mapper mapper = ObjectMapperSingleton.getInstance();
UnicoreDatamovementEntity unicoreDatamovementEntity = mapper.map(unicoreDataMovement, UnicoreDatamovementEntity.class);
execute(entityManager -> entityManager.merge(unicoreDatamovementEntity));
return unicoreDatamovementEntity.getDataMovementInterfaceId();
}
@Override
public String addDataMovementProtocol(String resourceId, DMType dmType, DataMovementInterface dataMovementInterface) throws AppCatalogException {
return (new DataMovementRepository()).addDataMovementProtocol(resourceId, dataMovementInterface);
}
@Override
public String addGridFTPDataMovement(GridFTPDataMovement gridFTPDataMovement) throws AppCatalogException {
gridFTPDataMovement.setDataMovementInterfaceId(AppCatalogUtils.getID("GRIDFTP"));
Mapper mapper = ObjectMapperSingleton.getInstance();
GridftpDataMovementEntity gridftpDataMovementEntity = mapper.map(gridFTPDataMovement, GridftpDataMovementEntity.class);
execute(entityManager -> entityManager.merge(gridftpDataMovementEntity));
List<String> gridFTPEndPoint = gridFTPDataMovement.getGridFTPEndPoints();
if (gridFTPEndPoint != null && !gridFTPEndPoint.isEmpty()) {
for (String endpoint : gridFTPEndPoint) {
GridftpEndpointEntity gridftpEndpointEntity = new GridftpEndpointEntity();
gridftpEndpointEntity.setGridftpDataMovement(gridftpDataMovementEntity);
gridftpEndpointEntity.setDataMovementInterfaceId(gridFTPDataMovement.getDataMovementInterfaceId());
gridftpEndpointEntity.setEndpoint(endpoint);
execute(entityManager -> entityManager.merge(gridftpEndpointEntity));
}
}
return gridftpDataMovementEntity.getDataMovementInterfaceId();
}
@Override
public SSHJobSubmission getSSHJobSubmission(String submissionId) throws AppCatalogException {
SshJobSubmissionEntity entity = execute(entityManager -> entityManager
.find(SshJobSubmissionEntity.class, submissionId));
if(entity == null)
return null;
Mapper mapper = ObjectMapperSingleton.getInstance();
SSHJobSubmission sshJobSubmission = mapper.map(entity, SSHJobSubmission.class);
sshJobSubmission.getResourceJobManager().setParallelismPrefix((new ResourceJobManagerRepository().getParallelismPrefix(sshJobSubmission.getResourceJobManager().getResourceJobManagerId())));
sshJobSubmission.getResourceJobManager().setJobManagerCommands((new ResourceJobManagerRepository().getJobManagerCommand(sshJobSubmission.getResourceJobManager().getResourceJobManagerId())));
return sshJobSubmission;
}
@Override
public UnicoreJobSubmission getUNICOREJobSubmission(String submissionId) throws AppCatalogException {
UnicoreSubmissionEntity entity = execute(entityManager -> entityManager
.find(UnicoreSubmissionEntity.class, submissionId));
if(entity == null)
return null;
Mapper mapper = ObjectMapperSingleton.getInstance();
return mapper.map(entity, UnicoreJobSubmission.class);
}
@Override
public UnicoreDataMovement getUNICOREDataMovement(String dataMovementId) throws AppCatalogException {
UnicoreDatamovementEntity entity = execute(entityManager -> entityManager
.find(UnicoreDatamovementEntity.class, dataMovementId));
if(entity == null)
return null;
Mapper mapper = ObjectMapperSingleton.getInstance();
return mapper.map(entity, UnicoreDataMovement.class);
}
@Override
public CloudJobSubmission getCloudJobSubmission(String submissionId) throws AppCatalogException {
CloudJobSubmissionEntity entity = execute(entityManager -> entityManager
.find(CloudJobSubmissionEntity.class, submissionId));
if(entity == null)
return null;
Mapper mapper = ObjectMapperSingleton.getInstance();
return mapper.map(entity, CloudJobSubmission.class);
}
@Override
public SCPDataMovement getSCPDataMovement(String dataMoveId) throws AppCatalogException {
ScpDataMovementEntity entity = execute(entityManager -> entityManager
.find(ScpDataMovementEntity.class, dataMoveId));
if(entity == null)
return null;
Mapper mapper = ObjectMapperSingleton.getInstance();
return mapper.map(entity, SCPDataMovement.class);
}
@Override
public GridFTPDataMovement getGridFTPDataMovement(String dataMoveId) throws AppCatalogException {
GridftpDataMovementEntity entity = execute(entityManager -> entityManager
.find(GridftpDataMovementEntity.class, dataMoveId));
if(entity == null) {
return null;
}
Map<String, Object> queryParameters = new HashMap<>();
queryParameters.put(DBConstants.DataMovement.GRID_FTP_DATA_MOVEMENT_ID, entity.getDataMovementInterfaceId());
List resultSet = execute(entityManager -> {
Query jpaQuery = entityManager.createQuery(QueryConstants.FIND_ALL_GRID_FTP_ENDPOINTS_BY_DATA_MOVEMENT);
for (Map.Entry<String, Object> entry : queryParameters.entrySet()) {
jpaQuery.setParameter(entry.getKey(), entry.getValue());
}
return jpaQuery.setFirstResult(0).getResultList();
});
List<GridftpEndpointEntity> endpointEntities = resultSet;
Mapper mapper = ObjectMapperSingleton.getInstance();
List<String> endpoints = endpointEntities.stream().map(GridftpEndpointEntity::getEndpoint).collect(Collectors.toList());
GridFTPDataMovement dataMovement = mapper.map(entity, GridFTPDataMovement.class);
dataMovement.setGridFTPEndPoints(endpoints);
return dataMovement;
}
@Override
public void removeJobSubmissionInterface(String computeResourceId, String jobSubmissionInterfaceId) throws AppCatalogException {
JobSubmissionInterfacePK jobSubmissionInterfacePK = new JobSubmissionInterfacePK();
jobSubmissionInterfacePK.setComputeResourceId(computeResourceId);
jobSubmissionInterfacePK.setJobSubmissionInterfaceId(jobSubmissionInterfaceId);
(new JobSubmissionInterfaceRepository()).delete(jobSubmissionInterfacePK);
}
@Override
public void removeDataMovementInterface(String computeResourceId, String dataMovementInterfaceId) throws AppCatalogException {
DataMovementInterfacePK dataMovementInterfacePK = new DataMovementInterfacePK();
dataMovementInterfacePK.setDataMovementInterfaceId(dataMovementInterfaceId);
dataMovementInterfacePK.setComputeResourceId(computeResourceId);
(new DataMovementRepository()).delete(dataMovementInterfacePK);
}
@Override
public void removeBatchQueue(String computeResourceId, String queueName) throws AppCatalogException {
BatchQueuePK batchQueuePK = new BatchQueuePK();
batchQueuePK.setQueueName(queueName);
batchQueuePK.setComputeResourceId(computeResourceId);
(new BatchQueueRepository()).delete(batchQueuePK);
}
@Override
public LOCALSubmission getLocalJobSubmission(String submissionId) throws AppCatalogException {
LocalSubmissionEntity entity = execute(entityManager -> entityManager
.find(LocalSubmissionEntity.class, submissionId));
if(entity == null)
return null;
Mapper mapper = ObjectMapperSingleton.getInstance();
LOCALSubmission localSubmission = mapper.map(entity, LOCALSubmission.class);
localSubmission.getResourceJobManager().setParallelismPrefix((new ResourceJobManagerRepository().getParallelismPrefix(localSubmission.getResourceJobManager().getResourceJobManagerId())));
localSubmission.getResourceJobManager().setJobManagerCommands((new ResourceJobManagerRepository().getJobManagerCommand(localSubmission.getResourceJobManager().getResourceJobManagerId())));
return localSubmission;
}
@Override
public LOCALDataMovement getLocalDataMovement(String datamovementId) throws AppCatalogException {
LocalDataMovementEntity entity = execute(entityManager -> entityManager
.find(LocalDataMovementEntity.class, datamovementId));
if(entity == null)
return null;
Mapper mapper = ObjectMapperSingleton.getInstance();
return mapper.map(entity, LOCALDataMovement.class);
}
}
| 900 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories/appcatalog/ApplicationDeploymentRepository.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.repositories.appcatalog;
import org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription;
import org.apache.airavata.model.appcatalog.appinterface.application_interface_modelConstants;
import org.apache.airavata.model.appcatalog.computeresource.ComputeResourceDescription;
import org.apache.airavata.registry.core.entities.appcatalog.ApplicationDeploymentEntity;
import org.apache.airavata.registry.core.utils.DBConstants;
import org.apache.airavata.registry.core.utils.ObjectMapperSingleton;
import org.apache.airavata.registry.core.utils.QueryConstants;
import org.apache.airavata.registry.cpi.AppCatalogException;
import org.apache.airavata.registry.cpi.ApplicationDeployment;
import org.dozer.Mapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.sql.Timestamp;
import java.util.*;
public class ApplicationDeploymentRepository extends AppCatAbstractRepository<ApplicationDeploymentDescription, ApplicationDeploymentEntity, String> implements ApplicationDeployment {
private final static Logger logger = LoggerFactory.getLogger(ApplicationDeploymentRepository.class);
public ApplicationDeploymentRepository() {
super(ApplicationDeploymentDescription.class, ApplicationDeploymentEntity.class);
}
protected String saveApplicationDeploymentDescriptorData(
ApplicationDeploymentDescription applicationDeploymentDescription, String gatewayId) throws AppCatalogException {
ApplicationDeploymentEntity applicationDeploymentEntity = saveApplicationDeployment(applicationDeploymentDescription, gatewayId);
return applicationDeploymentEntity.getAppDeploymentId();
}
protected ApplicationDeploymentEntity saveApplicationDeployment(
ApplicationDeploymentDescription applicationDeploymentDescription, String gatewayId) throws AppCatalogException {
if (applicationDeploymentDescription.getAppDeploymentId().trim().equals("") || applicationDeploymentDescription.getAppDeploymentId().equals(application_interface_modelConstants.DEFAULT_ID) ) {
logger.debug("If Application Deployment ID is empty or DEFAULT, set it as the compute host name plus the App Module ID");
ComputeResourceDescription computeResourceDescription = new ComputeResourceRepository().getComputeResource(applicationDeploymentDescription.getComputeHostId());
applicationDeploymentDescription.setAppDeploymentId(computeResourceDescription.getHostName() + "_" + applicationDeploymentDescription.getAppModuleId());
}
String applicationDeploymentId = applicationDeploymentDescription.getAppDeploymentId();
Mapper mapper = ObjectMapperSingleton.getInstance();
ApplicationDeploymentEntity applicationDeploymentEntity = mapper.map(applicationDeploymentDescription, ApplicationDeploymentEntity.class);
if (gatewayId != null) {
logger.debug("Setting the gateway ID of the Application Deployment");
applicationDeploymentEntity.setGatewayId(gatewayId);
}
if (applicationDeploymentEntity.getModuleLoadCmds() != null) {
logger.debug("Populating the Primary Key of ModuleLoadCmds objects for the Application Deployment");
applicationDeploymentEntity.getModuleLoadCmds().forEach(moduleLoadCmdEntity -> moduleLoadCmdEntity.setAppdeploymentId(applicationDeploymentId));
}
if (applicationDeploymentEntity.getPreJobCommands() != null) {
logger.debug("Populating the Primary Key PreJobCommands objects for the Application Deployment");
applicationDeploymentEntity.getPreJobCommands().forEach(prejobCommandEntity -> prejobCommandEntity.setAppdeploymentId(applicationDeploymentId));
}
if (applicationDeploymentEntity.getPostJobCommands() != null) {
logger.debug("Populating the Primary Key PostJobCommands objects for the Application Deployment");
applicationDeploymentEntity.getPostJobCommands().forEach(postjobCommandEntity -> postjobCommandEntity.setAppdeploymentId(applicationDeploymentId));
}
if (applicationDeploymentEntity.getLibPrependPaths() != null) {
logger.debug("Populating the Primary Key LibPrependPaths objects for the Application Deployment");
applicationDeploymentEntity.getLibPrependPaths().forEach(libraryPrependPathEntity -> libraryPrependPathEntity.setDeploymentId(applicationDeploymentId));
}
if (applicationDeploymentEntity.getLibAppendPaths() != null) {
logger.debug("Populating the Primary Key LibAppendPaths objects for the Application Deployment");
applicationDeploymentEntity.getLibAppendPaths().forEach(libraryApendPathEntity -> libraryApendPathEntity.setDeploymentId(applicationDeploymentId));
}
if (applicationDeploymentEntity.getSetEnvironment() != null) {
logger.debug("Populating the Primary Key of SetEnvironment objects for the Application Deployment");
applicationDeploymentEntity.getSetEnvironment().forEach(appEnvironmentEntity -> appEnvironmentEntity.setDeploymentId(applicationDeploymentId));
}
if (!isAppDeploymentExists(applicationDeploymentId)) {
logger.debug("Checking if the Application Deployment already exists");
applicationDeploymentEntity.setCreationTime(new Timestamp(System.currentTimeMillis()));
}
applicationDeploymentEntity.setUpdateTime(new Timestamp(System.currentTimeMillis()));
return execute(entityManager -> entityManager.merge(applicationDeploymentEntity));
}
@Override
public String addApplicationDeployment(ApplicationDeploymentDescription applicationDeploymentDescription, String gatewayId) throws AppCatalogException {
return saveApplicationDeploymentDescriptorData(applicationDeploymentDescription, gatewayId);
}
@Override
public void updateApplicationDeployment(String deploymentId, ApplicationDeploymentDescription updatedApplicationDeploymentDescription) throws AppCatalogException {
saveApplicationDeploymentDescriptorData(updatedApplicationDeploymentDescription, null);
}
@Override
public ApplicationDeploymentDescription getApplicationDeployement(String deploymentId) throws AppCatalogException {
return get(deploymentId);
}
@Override
public List<ApplicationDeploymentDescription> getApplicationDeployments(Map<String, String> filters) throws AppCatalogException {
List<ApplicationDeploymentDescription> deploymentDescriptions = new ArrayList<>();
try {
boolean firstTry=true;
for (String fieldName : filters.keySet() ){
List<ApplicationDeploymentDescription> tmpDescriptions;
switch (fieldName) {
case DBConstants.ApplicationDeployment.APPLICATION_MODULE_ID: {
logger.debug("Fetching all Application Deployments for Application Module ID " +
filters.get(DBConstants.ApplicationDeployment.APPLICATION_MODULE_ID));
Map<String, Object> queryParameters = new HashMap<>();
queryParameters.put(DBConstants.ApplicationDeployment.APPLICATION_MODULE_ID, filters.get(fieldName));
tmpDescriptions = select(QueryConstants.FIND_APPLICATION_DEPLOYMENTS_FOR_APPLICATION_MODULE_ID, -1, 0, queryParameters);
break;
}
case DBConstants.ApplicationDeployment.COMPUTE_HOST_ID: {
logger.debug("Fetching Application Deployments for Compute Host ID " +
filters.get(DBConstants.ApplicationDeployment.COMPUTE_HOST_ID));
Map<String, Object> queryParameters = new HashMap<>();
queryParameters.put(DBConstants.ApplicationDeployment.COMPUTE_HOST_ID, filters.get(fieldName));
tmpDescriptions = select(QueryConstants.FIND_APPLICATION_DEPLOYMENTS_FOR_COMPUTE_HOST_ID, -1, 0, queryParameters);
break;
}
default:
logger.error("Unsupported field name for app deployment in filters: " + filters);
throw new IllegalArgumentException("Unsupported field name for app deployment in filters: " + filters);
}
if (firstTry) {
deploymentDescriptions.addAll(tmpDescriptions);
firstTry=false;
} else {
List<String> ids = new ArrayList<>();
for (ApplicationDeploymentDescription applicationDeploymentDescription : deploymentDescriptions) {
ids.add(applicationDeploymentDescription.getAppDeploymentId());
}
List<ApplicationDeploymentDescription> tmp2Descriptions = new ArrayList<>();
for (ApplicationDeploymentDescription applicationDeploymentDescription : tmpDescriptions) {
if (ids.contains(applicationDeploymentDescription.getAppDeploymentId())){
tmp2Descriptions.add(applicationDeploymentDescription);
}
}
deploymentDescriptions.clear();
deploymentDescriptions.addAll(tmp2Descriptions);
}
}
} catch (Exception e) {
logger.error("Error while retrieving app deployment list...", e);
throw new AppCatalogException(e);
}
return deploymentDescriptions;
}
@Override
public List<ApplicationDeploymentDescription> getAllApplicationDeployements(String gatewayId) throws AppCatalogException {
Map<String, Object> queryParameters = new HashMap<>();
queryParameters.put(DBConstants.ApplicationDeployment.GATEWAY_ID, gatewayId);
List<ApplicationDeploymentDescription> applicationDeploymentDescriptionList =
select(QueryConstants.FIND_APPLICATION_DEPLOYMENTS_FOR_GATEWAY_ID, -1, 0, queryParameters);
return applicationDeploymentDescriptionList;
}
@Override
public List<ApplicationDeploymentDescription> getAccessibleApplicationDeployments(String gatewayId, List<String> accessibleAppIds, List<String> accessibleCompHostIds) throws AppCatalogException {
if (accessibleAppIds.isEmpty() || accessibleCompHostIds.isEmpty()) {
return Collections.emptyList();
}
Map<String, Object> queryParameters = new HashMap<>();
queryParameters.put(DBConstants.ApplicationDeployment.GATEWAY_ID, gatewayId);
queryParameters.put(DBConstants.ApplicationDeployment.ACCESSIBLE_APPLICATION_DEPLOYMENT_IDS, accessibleAppIds);
queryParameters.put(DBConstants.ApplicationDeployment.ACCESSIBLE_COMPUTE_HOST_IDS, accessibleCompHostIds);
List<ApplicationDeploymentDescription> accessibleApplicationDeployments =
select(QueryConstants.FIND_ACCESSIBLE_APPLICATION_DEPLOYMENTS, -1, 0, queryParameters);
return accessibleApplicationDeployments;
}
@Override
public List<ApplicationDeploymentDescription> getAccessibleApplicationDeployments(String gatewayId, String appModuleId, List<String> accessibleAppIds, List<String> accessibleComputeResourceIds) throws AppCatalogException {
if (accessibleAppIds.isEmpty() || accessibleComputeResourceIds.isEmpty()) {
return Collections.emptyList();
}
Map<String, Object> queryParameters = new HashMap<>();
queryParameters.put(DBConstants.ApplicationDeployment.GATEWAY_ID, gatewayId);
queryParameters.put(DBConstants.ApplicationDeployment.APPLICATION_MODULE_ID, appModuleId);
queryParameters.put(DBConstants.ApplicationDeployment.ACCESSIBLE_APPLICATION_DEPLOYMENT_IDS, accessibleAppIds);
queryParameters.put(DBConstants.ApplicationDeployment.ACCESSIBLE_COMPUTE_HOST_IDS, accessibleComputeResourceIds);
List<ApplicationDeploymentDescription> accessibleApplicationDeployments =
select(QueryConstants.FIND_ACCESSIBLE_APPLICATION_DEPLOYMENTS_FOR_APP_MODULE, -1, 0, queryParameters);
return accessibleApplicationDeployments;
}
@Override
public List<String> getAllApplicationDeployementIds() throws AppCatalogException {
List<String> applicationDeploymentIds = new ArrayList<>();
List<ApplicationDeploymentDescription> applicationDeploymentDescriptionList = select(QueryConstants.GET_ALL_APPLICATION_DEPLOYMENTS, 0);
if (applicationDeploymentDescriptionList != null && !applicationDeploymentDescriptionList.isEmpty()) {
logger.debug("The fetched list of Application Deployment is not NULL or empty");
for (ApplicationDeploymentDescription applicationDeploymentDescription: applicationDeploymentDescriptionList) {
applicationDeploymentIds.add(applicationDeploymentDescription.getAppDeploymentId());
}
}
return applicationDeploymentIds;
}
@Override
public boolean isAppDeploymentExists(String deploymentId) throws AppCatalogException {
return isExists(deploymentId);
}
@Override
public void removeAppDeployment(String deploymentId) throws AppCatalogException {
delete(deploymentId);
}
}
| 901 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories/appcatalog/ParserInputRepository.java | package org.apache.airavata.registry.core.repositories.appcatalog;
import org.apache.airavata.model.appcatalog.parser.ParserInput;
import org.apache.airavata.registry.core.entities.appcatalog.ParserInputEntity;
import org.apache.airavata.registry.cpi.AppCatalogException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ParserInputRepository extends AppCatAbstractRepository<ParserInput, ParserInputEntity, String> {
private final static Logger logger = LoggerFactory.getLogger(ParserInputRepository.class);
public ParserInputRepository() {
super(ParserInput.class, ParserInputEntity.class);
}
public ParserInput getParserInput(String inputId) throws AppCatalogException {
try {
return super.get(inputId);
} catch (Exception e) {
logger.error("Failed to fetch parser input with id " + inputId, e);
throw new AppCatalogException("Failed to fetch parser input with id " + inputId, e);
}
}
}
| 902 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories/appcatalog/ResourceJobManagerRepository.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.repositories.appcatalog;
import org.apache.airavata.model.appcatalog.computeresource.JobManagerCommand;
import org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager;
import org.apache.airavata.model.parallelism.ApplicationParallelismType;
import org.apache.airavata.registry.core.entities.appcatalog.*;
import org.apache.airavata.registry.core.utils.DBConstants;
import org.apache.airavata.registry.core.utils.QueryConstants;
import javax.persistence.Query;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class ResourceJobManagerRepository extends AppCatAbstractRepository<ResourceJobManager, ResourceJobManagerEntity, String> {
public ResourceJobManagerRepository() {
super(ResourceJobManager.class, ResourceJobManagerEntity.class);
}
public void createJobManagerCommand(Map<JobManagerCommand, String> jobManagerCommands, ResourceJobManagerEntity resourceJobManagerEntity) {
for (JobManagerCommand commandType : jobManagerCommands.keySet()) {
if (jobManagerCommands.get(commandType) != null && !jobManagerCommands.get(commandType).isEmpty()) {
JobManagerCommandEntity jobManagerCommandEntity = new JobManagerCommandEntity();
jobManagerCommandEntity.setCommand(jobManagerCommands.get(commandType));
jobManagerCommandEntity.setResourceJobManager(resourceJobManagerEntity);
jobManagerCommandEntity.setResourceJobManagerId(resourceJobManagerEntity.getResourceJobManagerId());
jobManagerCommandEntity.setCommandType(commandType);
execute(entityManager -> entityManager.merge(jobManagerCommandEntity));
}
}
}
public void createParallesimPrefix(Map<ApplicationParallelismType, String> parallelismPrefix,ResourceJobManagerEntity resourceJobManagerEntity) {
for (ApplicationParallelismType commandType : parallelismPrefix.keySet()) {
if (parallelismPrefix.get(commandType) != null && !parallelismPrefix.get(commandType).isEmpty()) {
ParallelismCommandEntity parallelismCommandEntity = new ParallelismCommandEntity();
parallelismCommandEntity.setCommand(parallelismPrefix.get(commandType));
parallelismCommandEntity.setResourceJobManager(resourceJobManagerEntity);
parallelismCommandEntity.setCommandType(commandType);
parallelismCommandEntity.setResourceJobManagerId(resourceJobManagerEntity.getResourceJobManagerId());
execute(entityManager -> entityManager.merge(parallelismCommandEntity));
}
}
}
public Map<JobManagerCommand, String> getJobManagerCommand(String resourceJobManagerId) {
Map<String,Object> queryParameters = new HashMap<>();
queryParameters.put(DBConstants.ResourceJobManager.RESOURCE_JOB_MANAGER_ID, resourceJobManagerId);
List resultSet = (List) execute(entityManager -> {
Query jpaQuery = entityManager.createQuery(QueryConstants.GET_JOB_MANAGER_COMMAND);
for (Map.Entry<String, Object> entry : queryParameters.entrySet()) {
jpaQuery.setParameter(entry.getKey(), entry.getValue());
}
return jpaQuery.setFirstResult(0).getResultList();
});
List<JobManagerCommandEntity> jobManagerCommandEntityList = resultSet;
Map<JobManagerCommand, String> jobManagerCommandMap= new HashMap<JobManagerCommand,String>();
for (JobManagerCommandEntity jm: jobManagerCommandEntityList) {
jobManagerCommandMap.put(jm.getCommandType(), jm.getCommand());
}
return jobManagerCommandMap;
}
public Map<ApplicationParallelismType, String> getParallelismPrefix(String resourceJobManagerId) {
Map<String,Object> queryParameters = new HashMap<>();
queryParameters.put(DBConstants.ResourceJobManager.RESOURCE_JOB_MANAGER_ID, resourceJobManagerId);
List resultSet = (List) execute(entityManager -> {
Query jpaQuery = entityManager.createQuery(QueryConstants.GET_PARALLELISM_PREFIX);
for (Map.Entry<String, Object> entry : queryParameters.entrySet()) {
jpaQuery.setParameter(entry.getKey(), entry.getValue());
}
return jpaQuery.setFirstResult(0).getResultList();
});
List<ParallelismCommandEntity> parallelismCommandEntityList = resultSet;
Map<ApplicationParallelismType, String> applicationParallelismTypeMap= new HashMap<ApplicationParallelismType,String>();
for (ParallelismCommandEntity pc: parallelismCommandEntityList) {
applicationParallelismTypeMap.put(pc.getCommandType(), pc.getCommand());
}
return applicationParallelismTypeMap;
}
}
| 903 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories/workflowcatalog/WorkflowCatAbstractRepository.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.repositories.workflowcatalog;
import org.apache.airavata.registry.core.repositories.AbstractRepository;
import org.apache.airavata.registry.core.utils.JPAUtil.WorkflowCatalogJPAUtils;
import javax.persistence.EntityManager;
public class WorkflowCatAbstractRepository<T, E, Id> extends AbstractRepository<T, E, Id> {
public WorkflowCatAbstractRepository(Class<T> thriftGenericClass, Class<E> dbEntityGenericClass) {
super(thriftGenericClass, dbEntityGenericClass);
}
@Override
protected EntityManager getEntityManager() {
return WorkflowCatalogJPAUtils.getEntityManager();
}
}
| 904 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories/workflowcatalog/WorkflowRepository.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.repositories.workflowcatalog;
import org.apache.airavata.model.commons.airavata_commonsConstants;
import org.apache.airavata.model.workflow.AiravataWorkflow;
import org.apache.airavata.registry.core.entities.airavataworkflowcatalog.AiravataWorkflowEntity;
import org.apache.airavata.registry.core.utils.*;
import org.apache.airavata.registry.cpi.WorkflowCatalog;
import org.apache.airavata.registry.cpi.WorkflowCatalogException;
import org.dozer.Mapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.sql.Timestamp;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class WorkflowRepository extends WorkflowCatAbstractRepository<AiravataWorkflow, AiravataWorkflowEntity, String> implements WorkflowCatalog {
private final static Logger logger = LoggerFactory.getLogger(WorkflowRepository.class);
public WorkflowRepository() {
super(AiravataWorkflow.class, AiravataWorkflowEntity.class);
}
protected String saveWorkflowModelData(AiravataWorkflow workflowModel, String experimentId) throws WorkflowCatalogException {
AiravataWorkflowEntity workflowEntity = saveWorkflow(workflowModel, experimentId);
return workflowEntity.getId();
}
protected AiravataWorkflowEntity saveWorkflow(AiravataWorkflow workflowModel, String experimentId) throws WorkflowCatalogException {
if (workflowModel.getId() == null || workflowModel.getId().equals(airavata_commonsConstants.DEFAULT_ID)) {
String newId = WorkflowCatalogUtils.getID(experimentId);
logger.debug("Setting the ID: " + newId + " for the new Workflow");
workflowModel.setId(newId);
}
if (workflowModel.getStatuses() != null) {
logger.debug("Populating the status IDs of WorkflowStatus objects for the Workflow with ID: " + workflowModel.getId());
workflowModel.getStatuses().forEach(workflowStatus -> {
if (workflowStatus.getId() == null) {
workflowStatus.setId(WorkflowCatalogUtils.getID("WORKFLOW_STATUS"));
}
});
}
if (workflowModel.getExperimentId() == null) {
logger.debug("Setting the ExperimentID: " + experimentId + " for the new Workflow with ID: " + workflowModel.getId());
workflowModel.setExperimentId(experimentId);
}
String workflowId = workflowModel.getId();
Mapper mapper = ObjectMapperSingleton.getInstance();
AiravataWorkflowEntity workflowEntity = mapper.map(workflowModel, AiravataWorkflowEntity.class);
if (workflowEntity.getStatuses() != null) {
logger.debug("Populating the Workflow ID of WorkflowStatus objects for the Workflow with ID: " + workflowId);
workflowEntity.getStatuses().forEach(workflowStatusEntity -> workflowStatusEntity.setWorkflowId(workflowId));
}
if (workflowEntity.getApplications() != null) {
logger.debug("Populating the Workflow ID for WorkflowApplication objects for the Workflow with ID: " + workflowId);
workflowEntity.getApplications().forEach(applicationEntity -> {
applicationEntity.setWorkflowId(workflowId);
if (applicationEntity.getStatuses() != null) {
logger.debug("Populating the Workflow ID of ApplicationStatus objects for the Application");
applicationEntity.getStatuses().forEach(applicationStatusEntity -> applicationStatusEntity.setApplicationId(applicationEntity.getId()));
}
});
}
if (workflowEntity.getHandlers() != null) {
logger.debug("Populating the Workflow ID for WorkflowHandler objects for the Workflow with ID: " + workflowId);
workflowEntity.getHandlers().forEach(handlerEntity -> {
handlerEntity.setWorkflowId(workflowId);
if (handlerEntity.getStatuses() != null) {
logger.debug("Populating the Workflow ID of HandlerStatus objects for the Handler");
handlerEntity.getStatuses().forEach(handlerStatusEntity -> handlerStatusEntity.setHandlerId(handlerEntity.getId()));
}
if (handlerEntity.getInputs() != null && !handlerEntity.getInputs().isEmpty()) {
logger.debug("Populating the Handler ID for HandlerInput objects for the Handler with ID: " + handlerEntity.getId());
handlerEntity.getInputs().forEach(inputEntity -> inputEntity.setHandlerId(handlerEntity.getId()));
}
if (handlerEntity.getOutputs() != null && !handlerEntity.getOutputs().isEmpty()) {
logger.debug("Populating the Handler ID for HandlerOutput objects for the Handler with ID: " + handlerEntity.getId());
handlerEntity.getOutputs().forEach(outputEntity -> outputEntity.setHandlerId(handlerEntity.getId()));
}
});
}
if (workflowEntity.getConnections() != null) {
logger.debug("Populating the ID and Workflow ID for WorkflowConnection objects for the Workflow with ID: " + workflowId);
workflowEntity.getConnections().forEach(connectionEntity -> {
if (connectionEntity.getId() == null || connectionEntity.getId().equals(airavata_commonsConstants.DEFAULT_ID)) {
connectionEntity.setId(WorkflowCatalogUtils.getID("WORKFLOW_CONNECTION"));
}
connectionEntity.setWorkflowId(workflowId);
});
}
if (get(workflowId) == null) {
logger.debug("Checking if the Workflow already exists");
workflowEntity.setCreatedAt(new Timestamp(System.currentTimeMillis()));
}
workflowEntity.setUpdatedAt(new Timestamp(System.currentTimeMillis()));
return execute(entityManager -> entityManager.merge(workflowEntity));
}
@Override
public String registerWorkflow(AiravataWorkflow workflowModel, String experimentId) throws WorkflowCatalogException {
return saveWorkflowModelData(workflowModel, experimentId);
}
@Override
public void updateWorkflow(String workflowId, AiravataWorkflow updatedWorkflowModel) throws WorkflowCatalogException {
saveWorkflowModelData(updatedWorkflowModel, null);
}
@Override
public AiravataWorkflow getWorkflow(String workflowId) throws WorkflowCatalogException {
return get(workflowId);
}
@Override
public String getWorkflowId(String experimentId) throws WorkflowCatalogException {
Map<String, Object> queryParameters = new HashMap<>();
queryParameters.put(DBConstants.Workflow.EXPERIMENT_ID, experimentId);
List<AiravataWorkflow> workflowModelList = select(QueryConstants.GET_WORKFLOW_FOR_EXPERIMENT_ID, -1, 0, queryParameters);
if (workflowModelList != null && !workflowModelList.isEmpty()) {
logger.debug("Return the record (there is only one record)");
return workflowModelList.get(0).getId();
}
return null;
}
@Override
public void deleteWorkflow(String workflowId) throws WorkflowCatalogException {
delete(workflowId);
}
}
| 905 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ComputationalResourceSchedulingPK.java | package org.apache.airavata.registry.core.entities.expcatalog;
import java.io.Serializable;
public class ComputationalResourceSchedulingPK implements Serializable {
private static final long serialVersionUID = 1L;
private String experimentId;
private String resourceHostId;
private String queueName;
public ComputationalResourceSchedulingPK() {
}
public String getExperimentId() {
return experimentId;
}
public void setExperimentId(String experimentId) {
this.experimentId = experimentId;
}
public String getResourceHostId() {
return resourceHostId;
}
public void setResourceHostId(String resourceHostId) {
this.resourceHostId = resourceHostId;
}
public String getQueueName() {
return queueName;
}
public void setQueueName(String queueName) {
this.queueName = queueName;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ComputationalResourceSchedulingPK)) {
return false;
}
ComputationalResourceSchedulingPK castOther = (ComputationalResourceSchedulingPK) other;
return
this.experimentId.equals(castOther.experimentId)
&& this.resourceHostId.equals(castOther.resourceHostId)
&& this.queueName.equals(castOther.queueName);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.experimentId.hashCode();
hash = hash * prime + this.resourceHostId.hashCode();
hash = hash * prime + this.queueName.hashCode();
return hash;
}
}
| 906 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/TaskStatusPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import java.io.Serializable;
/**
* The primary key class for the task_status database table.
*/
public class TaskStatusPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String statusId;
private String taskId;
public TaskStatusPK() {
}
public String getStatusId() {
return statusId;
}
public void setStatusId(String statusId) {
this.statusId = statusId;
}
public String getTaskId() {
return taskId;
}
public void setTaskId(String taskId) {
this.taskId = taskId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof TaskStatusPK)) {
return false;
}
TaskStatusPK castOther = (TaskStatusPK) other;
return
this.statusId.equals(castOther.statusId)
&& this.taskId.equals(castOther.taskId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.statusId.hashCode();
hash = hash * prime + this.taskId.hashCode();
return hash;
}
} | 907 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ExperimentStatusPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import java.io.Serializable;
/**
* The primary key class for the experiment_status database table.
*/
public class ExperimentStatusPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String statusId;
private String experimentId;
public ExperimentStatusPK() {
}
public String getStatusId() {
return statusId;
}
public void setStatusId(String statusId) {
this.statusId = statusId;
}
public String getExperimentId() {
return experimentId;
}
public void setExperimentId(String experimentId) {
this.experimentId = experimentId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ExperimentStatusPK)) {
return false;
}
ExperimentStatusPK castOther = (ExperimentStatusPK) other;
return
this.statusId.equals(castOther.statusId)
&& this.experimentId.equals(castOther.experimentId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.statusId.hashCode();
hash = hash * prime + this.experimentId.hashCode();
return hash;
}
} | 908 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ExperimentErrorPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import java.io.Serializable;
/**
* The primary key class for the experiment_error database table.
*/
public class ExperimentErrorPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String errorId;
private String experimentId;
public ExperimentErrorPK() {
}
public String getErrorId() {
return errorId;
}
public void setErrorId(String errorId) {
this.errorId = errorId;
}
public String getExperimentId() {
return experimentId;
}
public void setExperimentId(String experimentId) {
this.experimentId = experimentId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ExperimentErrorPK)) {
return false;
}
ExperimentErrorPK castOther = (ExperimentErrorPK) other;
return
this.errorId.equals(castOther.errorId)
&& this.experimentId.equals(castOther.experimentId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.errorId.hashCode();
hash = hash * prime + this.experimentId.hashCode();
return hash;
}
} | 909 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/TaskErrorPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import java.io.Serializable;
/**
* The primary key class for the task_error database table.
*/
public class TaskErrorPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String errorId;
private String taskId;
public TaskErrorPK() {
}
public String getErrorId() {
return errorId;
}
public void setErrorId(String errorId) {
this.errorId = errorId;
}
public String getTaskId() {
return taskId;
}
public void setTaskId(String processId) {
this.taskId = taskId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof TaskErrorPK)) {
return false;
}
TaskErrorPK castOther = (TaskErrorPK) other;
return
this.errorId.equals(castOther.errorId)
&& this.taskId.equals(castOther.taskId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.errorId.hashCode();
hash = hash * prime + this.taskId.hashCode();
return hash;
}
} | 910 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/UserConfigurationDataEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.util.List;
/**
* The persistent class for the user_configuration_data database table.
*/
@Entity
@Table(name = "USER_CONFIGURATION_DATA")
public class UserConfigurationDataEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "EXPERIMENT_ID")
private String experimentId;
@Column(name = "AIRAVATA_AUTO_SCHEDULE")
private boolean airavataAutoSchedule;
@Column(name = "OVERRIDE_MANUAL_SCHEDULED_PARAMS")
private boolean overrideManualScheduledParams;
@Column(name = "SHARE_EXPERIMENT_PUBLICALLY")
private boolean shareExperimentPublicly;
@Column(name = "THROTTLE_RESOURCES")
private boolean throttleResources;
@Column(name = "USER_DN")
private String userDN;
@Column(name = "GENERATE_CERT")
private boolean generateCert;
@Column(name = "RESOURCE_HOST_ID")
private String resourceHostId;
@Column(name = "TOTAL_CPU_COUNT")
private int totalCPUCount;
@Column(name = "NODE_COUNT")
private int nodeCount;
@Column(name = "NUMBER_OF_THREADS")
private int numberOfThreads;
@Column(name = "QUEUE_NAME")
private String queueName;
@Column(name = "WALL_TIME_LIMIT")
private int wallTimeLimit;
@Column(name = "TOTAL_PHYSICAL_MEMORY")
private int totalPhysicalMemory;
@Column(name = "STATIC_WORKING_DIR")
private String staticWorkingDir;
@Column(name = "OVERRIDE_LOGIN_USER_NAME")
private String overrideLoginUserName;
@Column(name = "OVERRIDE_SCRATCH_LOCATION")
private String overrideScratchLocation;
@Column(name = "OVERRIDE_ALLOCATION_PROJECT_NUMBER")
private String overrideAllocationProjectNumber;
@Column(name = "STORAGE_RESOURCE_ID")
private String storageId;
@Column(name = "EXPERIMENT_DATA_DIR", length = 512)
private String experimentDataDir;
@Column(name = "GROUP_RESOURCE_PROFILE_ID")
private String groupResourceProfileId;
@Column(name = "IS_USE_USER_CR_PREF")
private boolean useUserCRPref;
@OneToOne(targetEntity = ExperimentEntity.class, cascade = CascadeType.ALL)
@PrimaryKeyJoinColumn(name = "EXPERIMENT_ID", referencedColumnName = "EXPERIMENT_ID")
private ExperimentEntity experiment;
@OneToMany(targetEntity = ComputationalResourceSchedulingEntity.class, cascade = CascadeType.ALL,
mappedBy = "userConfigurationData", fetch = FetchType.EAGER)
private List<ComputationalResourceSchedulingEntity> autoScheduledCompResourceSchedulingList;
public UserConfigurationDataEntity() {
}
public String getExperimentId() {
return experimentId;
}
public void setExperimentId(String experimentId) {
this.experimentId = experimentId;
}
public boolean isAiravataAutoSchedule() {
return airavataAutoSchedule;
}
public void setAiravataAutoSchedule(boolean airavataAutoSchedule) {
this.airavataAutoSchedule = airavataAutoSchedule;
}
public boolean isOverrideManualScheduledParams() {
return overrideManualScheduledParams;
}
public void setOverrideManualScheduledParams(boolean overrideManualScheduledParams) {
this.overrideManualScheduledParams = overrideManualScheduledParams;
}
public boolean isShareExperimentPublicly() {
return shareExperimentPublicly;
}
public void setShareExperimentPublicly(boolean shareExperimentPublicly) {
this.shareExperimentPublicly = shareExperimentPublicly;
}
public boolean isThrottleResources() {
return throttleResources;
}
public void setThrottleResources(boolean throttleResources) {
this.throttleResources = throttleResources;
}
public String getUserDN() {
return userDN;
}
public void setUserDN(String userDN) {
this.userDN = userDN;
}
public boolean isGenerateCert() {
return generateCert;
}
public void setGenerateCert(boolean generateCert) {
this.generateCert = generateCert;
}
public String getResourceHostId() {
return resourceHostId;
}
public void setResourceHostId(String resourceHostId) {
this.resourceHostId = resourceHostId;
}
public int getTotalCPUCount() {
return totalCPUCount;
}
public void setTotalCPUCount(int totalCPUCount) {
this.totalCPUCount = totalCPUCount;
}
public int getNodeCount() {
return nodeCount;
}
public void setNodeCount(int nodeCount) {
this.nodeCount = nodeCount;
}
public int getNumberOfThreads() {
return numberOfThreads;
}
public void setNumberOfThreads(int numberOfThreads) {
this.numberOfThreads = numberOfThreads;
}
public String getQueueName() {
return queueName;
}
public void setQueueName(String queueName) {
this.queueName = queueName;
}
public int getWallTimeLimit() {
return wallTimeLimit;
}
public void setWallTimeLimit(int wallTimeLimit) {
this.wallTimeLimit = wallTimeLimit;
}
public int getTotalPhysicalMemory() {
return totalPhysicalMemory;
}
public void setTotalPhysicalMemory(int totalPhysicalMemory) {
this.totalPhysicalMemory = totalPhysicalMemory;
}
public String getStaticWorkingDir() {
return staticWorkingDir;
}
public void setStaticWorkingDir(String staticWorkingDir) {
this.staticWorkingDir = staticWorkingDir;
}
public String getOverrideLoginUserName() {
return overrideLoginUserName;
}
public void setOverrideLoginUserName(String overrideLoginUserName) {
this.overrideLoginUserName = overrideLoginUserName;
}
public String getOverrideScratchLocation() {
return overrideScratchLocation;
}
public void setOverrideScratchLocation(String overrideScratchLocation) {
this.overrideScratchLocation = overrideScratchLocation;
}
public String getOverrideAllocationProjectNumber() {
return overrideAllocationProjectNumber;
}
public void setOverrideAllocationProjectNumber(String overrideAllocationProjectNumber) {
this.overrideAllocationProjectNumber = overrideAllocationProjectNumber;
}
public String getStorageId() {
return storageId;
}
public void setStorageId(String storageId) {
this.storageId = storageId;
}
public String getExperimentDataDir() {
return experimentDataDir;
}
public void setExperimentDataDir(String experimentDataDir) {
this.experimentDataDir = experimentDataDir;
}
public String getGroupResourceProfileId() {
return groupResourceProfileId;
}
public void setGroupResourceProfileId(String groupResourceProfileId) {
this.groupResourceProfileId = groupResourceProfileId;
}
public boolean isUseUserCRPref() {
return useUserCRPref;
}
public void setUseUserCRPref(boolean useUserCRPref) {
this.useUserCRPref = useUserCRPref;
}
public ExperimentEntity getExperiment() {
return experiment;
}
public void setExperiment(ExperimentEntity experiment) {
this.experiment = experiment;
}
public List<ComputationalResourceSchedulingEntity> getAutoScheduledCompResourceSchedulingList() {
return autoScheduledCompResourceSchedulingList;
}
public void setAutoScheduledCompResourceSchedulingList(List<ComputationalResourceSchedulingEntity>
autoScheduledCompResourceSchedulingList) {
this.autoScheduledCompResourceSchedulingList = autoScheduledCompResourceSchedulingList;
}
} | 911 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProcessErrorPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import java.io.Serializable;
/**
* The primary key class for the process_error database table.
*/
public class ProcessErrorPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String errorId;
private String processId;
public ProcessErrorPK() {
}
public String getErrorId() {
return errorId;
}
public void setErrorId(String errorId) {
this.errorId = errorId;
}
public String getProcessId() {
return processId;
}
public void setProcessId(String processId) {
this.processId = processId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ProcessErrorPK)) {
return false;
}
ProcessErrorPK castOther = (ProcessErrorPK) other;
return
this.errorId.equals(castOther.errorId)
&& this.processId.equals(castOther.processId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.errorId.hashCode();
hash = hash * prime + this.processId.hashCode();
return hash;
}
} | 912 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/GatewayUsageReportingCommandEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Table(name = "GATEWAY_USAGE_REPORTING_COMMAND")
@IdClass(GatewayUsageReportingPK.class)
public class GatewayUsageReportingCommandEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "GATEWAY_ID")
private String gatewayId;
@Id
@Column(name = "COMPUTE_RESOURCE_ID")
private String computeResourceId;
@Lob
@Column(name = "COMMAND")
private String command;
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getCommand() {
return command;
}
public void setCommand(String command) {
this.command = command;
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
}
| 913 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/JobPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import java.io.Serializable;
/**
* The primary key class for the job database table.
*/
public class JobPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String jobId;
private String taskId;
public JobPK() {
}
public String getJobId() {
return jobId;
}
public void setJobId(String jobId) {
this.jobId = jobId;
}
public String getTaskId() {
return taskId;
}
public void setTaskId(String taskId) {
this.taskId = taskId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof JobPK)) {
return false;
}
JobPK castOther = (JobPK) other;
return
this.jobId.equals(castOther.jobId)
&& this.taskId.equals(castOther.taskId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.jobId.hashCode();
hash = hash * prime + this.taskId.hashCode();
return hash;
}
}
| 914 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/QueueStatusEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.math.BigInteger;
import java.sql.Timestamp;
/**
* The persistent class for the queue_status database table.
*/
@Entity
@Table(name = "QUEUE_STATUS")
@IdClass(QueueStatusPK.class)
public class QueueStatusEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "HOST_NAME")
private String hostName;
@Id
@Column(name = "QUEUE_NAME")
private String queueName;
@Id
@Column(name = "CREATED_TIME")
private BigInteger time;
@Column(name = "QUEUE_UP")
private boolean queueUp;
@Column(name = "RUNNING_JOBS")
private boolean runningJobs;
@Column(name = "QUEUED_JOBS")
private int queuedJobs;
public QueueStatusEntity() {
}
public String getHostName() {
return hostName;
}
public void setHostName(String hostName) {
this.hostName = hostName;
}
public String getQueueName() {
return queueName;
}
public void setQueueName(String queueName) {
this.queueName = queueName;
}
public BigInteger getTime() {
return time;
}
public void setTime(BigInteger time) {
this.time = time;
}
public boolean isQueueUp() {
return queueUp;
}
public void setQueueUp(boolean queueUp) {
this.queueUp = queueUp;
}
public boolean isRunningJobs() {
return runningJobs;
}
public void setRunningJobs(boolean runningJobs) {
this.runningJobs = runningJobs;
}
public int getQueuedJobs() {
return queuedJobs;
}
public void setQueuedJobs(int queuedJobs) {
this.queuedJobs = queuedJobs;
}
}
| 915 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProcessStatusEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import org.apache.airavata.model.status.ProcessState;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the process_status database table.
*/
@Entity
@Table(name = "PROCESS_STATUS")
@IdClass(ProcessStatusPK.class)
public class ProcessStatusEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "STATUS_ID")
private String statusId;
@Id
@Column(name = "PROCESS_ID")
private String processId;
@Column(name = "STATE")
@Enumerated(EnumType.STRING)
private ProcessState state;
@Column(name = "TIME_OF_STATE_CHANGE")
private Timestamp timeOfStateChange;
@Lob
@Column(name = "REASON")
private String reason;
@ManyToOne(targetEntity = ProcessEntity.class, fetch = FetchType.LAZY)
@JoinColumn(name = "PROCESS_ID", referencedColumnName = "PROCESS_ID", nullable = false, updatable = false)
private ProcessEntity process;
public ProcessStatusEntity() {
}
public String getStatusId() {
return statusId;
}
public void setStatusId(String statusId) {
this.statusId = statusId;
}
public String getProcessId() {
return processId;
}
public void setProcessId(String processId) {
this.processId = processId;
}
public ProcessState getState() {
return state;
}
public void setState(ProcessState state) {
this.state = state;
}
public Timestamp getTimeOfStateChange() {
return timeOfStateChange;
}
public void setTimeOfStateChange(Timestamp timeOfStateChange) {
this.timeOfStateChange = timeOfStateChange;
}
public String getReason() {
return reason;
}
public void setReason(String reason) {
this.reason = reason;
}
public ProcessEntity getProcess() {
return process;
}
public void setProcess(ProcessEntity process) {
this.process = process;
}
} | 916 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/GatewayWorkerEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the gateway_worker database table.
*/
@Entity
@Table(name="GATEWAY_WORKER")
@IdClass(GatewayWorkerPK.class)
public class GatewayWorkerEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "GATEWAY_ID")
private String gatewayId;
@Id
@Column(name = "USER_NAME")
private String userName;
public GatewayWorkerEntity() {
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
}
| 917 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ExperimentOutputEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import org.apache.airavata.model.application.io.DataType;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the experiment_output database table.
*/
@Entity
@Table(name = "EXPERIMENT_OUTPUT")
@IdClass(ExperimentOutputPK.class)
public class ExperimentOutputEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "EXPERIMENT_ID")
private String experimentId;
@Id
@Column(name = "OUTPUT_NAME")
private String name;
@Lob
@Column(name = "OUTPUT_VALUE")
private String value;
@Column(name = "DATA_TYPE")
@Enumerated(EnumType.STRING)
private DataType type;
@Column(name = "APPLICATION_ARGUMENT")
private String applicationArgument;
@Column(name = "IS_REQUIRED")
private boolean isRequired;
@Column(name = "REQUIRED_TO_ADDED_TO_CMD")
private boolean requiredToAddedToCommandLine;
@Column(name = "DATA_MOVEMENT")
private boolean dataMovement;
@Column(name = "LOCATION")
private String location;
@Column(name = "SEARCH_QUERY")
private String searchQuery;
@Column(name = "OUTPUT_STREAMING")
private boolean outputStreaming;
@Column(name = "STORAGE_RESOURCE_ID")
private String storageResourceId;
@Column(name = "METADATA", length = 4096)
private String metaData;
@ManyToOne(targetEntity = ExperimentEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "EXPERIMENT_ID", referencedColumnName = "EXPERIMENT_ID")
private ExperimentEntity experiment;
public ExperimentOutputEntity() {
}
public String getExperimentId() {
return experimentId;
}
public void setExperimentId(String experimentId) {
this.experimentId = experimentId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public DataType getType() {
return type;
}
public void setType(DataType type) {
this.type = type;
}
public String getApplicationArgument() {
return applicationArgument;
}
public void setApplicationArgument(String applicationArgument) {
this.applicationArgument = applicationArgument;
}
public boolean isRequired() {
return isRequired;
}
public void setRequired(boolean isRequired) {
this.isRequired = isRequired;
}
public boolean isRequiredToAddedToCommandLine() {
return requiredToAddedToCommandLine;
}
public void setRequiredToAddedToCommandLine(boolean requiredToAddedToCommandLine) {
this.requiredToAddedToCommandLine = requiredToAddedToCommandLine;
}
public boolean isDataMovement() {
return dataMovement;
}
public void setDataMovement(boolean dataMovement) {
this.dataMovement = dataMovement;
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public String getSearchQuery() {
return searchQuery;
}
public void setSearchQuery(String searchQuery) {
this.searchQuery = searchQuery;
}
public boolean isOutputStreaming() {
return outputStreaming;
}
public void setOutputStreaming(boolean outputStreaming) {
this.outputStreaming = outputStreaming;
}
public String getStorageResourceId() {
return storageResourceId;
}
public void setStorageResourceId(String storageResourceId) {
this.storageResourceId = storageResourceId;
}
public String getMetaData() {
return metaData;
}
public void setMetaData(String metaData) {
this.metaData = metaData;
}
public ExperimentEntity getExperiment() {
return experiment;
}
public void setExperiment(ExperimentEntity experiment) {
this.experiment = experiment;
}
}
| 918 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/JobEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
/**
* The persistent class for the job database table.
*/
@Entity
@Table(name = "JOB")
@IdClass(JobPK.class)
public class JobEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "JOB_ID")
private String jobId;
@Id
@Column(name = "TASK_ID")
private String taskId;
@Column(name = "PROCESS_ID")
private String processId;
@Lob
@Column(name = "JOB_DESCRIPTION")
private String jobDescription;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "COMPUTE_RESOURCE_CONSUMED")
private String computeResourceConsumed;
@Column(name = "JOB_NAME")
private String jobName;
@Column(name = "WORKING_DIR")
private String workingDir;
@Lob
@Column(name = "STD_OUT")
private String stdOut;
@Lob
@Column(name = "STD_ERR")
private String stdErr;
@Column(name = "EXIT_CODE")
private int exitCode;
@OneToMany(targetEntity = JobStatusEntity.class, cascade = CascadeType.ALL,
mappedBy = "job", fetch = FetchType.EAGER)
@OrderBy("timeOfStateChange ASC")
private List<JobStatusEntity> jobStatuses;
@ManyToOne(targetEntity = TaskEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "TASK_ID", referencedColumnName = "TASK_ID", nullable = false, updatable = false)
private TaskEntity task;
public JobEntity() {
}
public String getJobId() {
return jobId;
}
public void setJobId(String jobId) {
this.jobId = jobId;
}
public String getTaskId() {
return taskId;
}
public void setTaskId(String taskId) {
this.taskId = taskId;
}
public String getProcessId() {
return processId;
}
public void setProcessId(String processId) {
this.processId = processId;
}
public String getJobDescription() {
return jobDescription;
}
public void setJobDescription(String jobDescription) {
this.jobDescription = jobDescription;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public String getComputeResourceConsumed() {
return computeResourceConsumed;
}
public void setComputeResourceConsumed(String computeResourceConsumed) {
this.computeResourceConsumed = computeResourceConsumed;
}
public String getJobName() {
return jobName;
}
public void setJobName(String jobName) {
this.jobName = jobName;
}
public String getWorkingDir() {
return workingDir;
}
public void setWorkingDir(String workingDir) {
this.workingDir = workingDir;
}
public String getStdOut() {
return stdOut;
}
public void setStdOut(String stdOut) {
this.stdOut = stdOut;
}
public String getStdErr() {
return stdErr;
}
public void setStdErr(String stdErr) {
this.stdErr = stdErr;
}
public int getExitCode() {
return exitCode;
}
public void setExitCode(int exitCode) {
this.exitCode = exitCode;
}
public List<JobStatusEntity> getJobStatuses() {
return jobStatuses;
}
public void setJobStatuses(List<JobStatusEntity> jobStatuses) {
this.jobStatuses = jobStatuses;
}
public TaskEntity getTask() {
return task;
}
public void setTask(TaskEntity task) {
this.task = task;
}
}
| 919 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProcessWorkflowPK.java | package org.apache.airavata.registry.core.entities.expcatalog;
import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
public class ProcessWorkflowPK implements Serializable {
private String processId;
private String workflowId;
@Id
@Column(name = "PROCESS_ID")
public String getProcessId() {
return processId;
}
public void setProcessId(String processId) {
this.processId = processId;
}
@Id
@Column(name = "WORKFLOW_ID")
public String getWorkflowId() {
return workflowId;
}
public void setWorkflowId(String workflowId) {
this.workflowId = workflowId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ProcessWorkflowPK that = (ProcessWorkflowPK) o;
return (getProcessId() != null ? getProcessId().equals(that.getProcessId()) : that.getProcessId() == null)
&& (getWorkflowId() != null ? getWorkflowId().equals(that.getWorkflowId()) : that.getWorkflowId() == null);
}
@Override
public int hashCode() {
int result = getProcessId() != null ? getProcessId().hashCode() : 0;
result = 31 * result + (getWorkflowId() != null ? getWorkflowId().hashCode() : 0);
return result;
}
}
| 920 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/UserEntity.java | package org.apache.airavata.registry.core.entities.expcatalog;
import javax.persistence.*;
@Entity
@Table(name = "USERS")
@IdClass(UserPK.class)
public class UserEntity {
private String airavataInternalUserId;
private String userId;
private String password;
private String gatewayId;
private GatewayEntity gateway;
@Id
@Column(name = "USER_NAME")
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
@Id
@Column(name = "GATEWAY_ID")
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
@Column(name = "AIRAVATA_INTERNAL_USER_ID")
public String getAiravataInternalUserId() {
return airavataInternalUserId;
}
public void setAiravataInternalUserId(String airavataInternalUserId) {
this.airavataInternalUserId = airavataInternalUserId;
}
@Column(name = "PASSWORD")
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
@ManyToOne(targetEntity = GatewayEntity.class)
@JoinColumn(name = "GATEWAY_ID")
public GatewayEntity getGateway() {
return gateway;
}
public void setGateway(GatewayEntity gateway) {
this.gateway = gateway;
}
}
| 921 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProcessStatusPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import java.io.Serializable;
/**
* The primary key class for the process_status database table.
*/
public class ProcessStatusPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String statusId;
private String processId;
public ProcessStatusPK() {
}
public String getStatusId() {
return statusId;
}
public void setStatusId(String statusId) {
this.statusId = statusId;
}
public String getProcessId() {
return processId;
}
public void setProcessId(String processId) {
this.processId = processId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ProcessStatusPK)) {
return false;
}
ProcessStatusPK castOther = (ProcessStatusPK) other;
return
this.statusId.equals(castOther.statusId)
&& this.processId.equals(castOther.processId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.statusId.hashCode();
hash = hash * prime + this.processId.hashCode();
return hash;
}
} | 922 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/GatewayUsageReportingPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import java.io.Serializable;
public class GatewayUsageReportingPK implements Serializable {
private static final long serialVersionUID = 1L;
private String gatewayId;
private String computeResourceId;
public GatewayUsageReportingPK() {
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof GatewayUsageReportingPK)) {
return false;
}
GatewayUsageReportingPK castOther = (GatewayUsageReportingPK) other;
return
this.gatewayId.equals(castOther.gatewayId)
&& this.computeResourceId.equals(castOther.computeResourceId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.gatewayId.hashCode();
hash = hash * prime + this.computeResourceId.hashCode();
return hash;
}
}
| 923 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProjectUserEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the project_user database table.
*/
@Entity
@Table(name="PROJECT_USER")
@IdClass(ProjectUserPK.class)
public class ProjectUserEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "PROJECT_ID")
private String projectID;
@Id
@Column(name = "USER_NAME")
private String userName;
public ProjectUserEntity() {
}
@ManyToOne(targetEntity = UserEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "USER_NAME", referencedColumnName = "USER_NAME")
private UserEntity user;
public String getProjectID() {
return projectID;
}
public void setProjectID(String projectID) {
this.projectID = projectID;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public UserEntity getUser() {
return user;
}
public void setUser(UserEntity user) {
this.user = user;
}
}
| 924 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProcessInputPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import java.io.Serializable;
/**
* The primary key class for the process_input database table.
*/
public class ProcessInputPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String processId;
private String name;
public ProcessInputPK() {
}
public String getProcessId() {
return processId;
}
public void setProcessId(String processId) {
this.processId = processId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ProcessInputPK)) {
return false;
}
ProcessInputPK castOther = (ProcessInputPK) other;
return
this.processId.equals(castOther.processId)
&& this.name.equals(castOther.name);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.processId.hashCode();
hash = hash * prime + this.name.hashCode();
return hash;
}
} | 925 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProcessResourceScheduleEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the process_resource_schedule database table.
*/
@Entity
@Table(name = "PROCESS_RESOURCE_SCHEDULE")
public class ProcessResourceScheduleEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "PROCESS_ID")
private String processId;
@Column(name = "RESOURCE_HOST_ID")
private String resourceHostId;
@Column(name = "TOTAL_CPU_COUNT")
private int totalCPUCount;
@Column(name = "NODE_COUNT")
private int nodeCount;
@Column(name = "NUMBER_OF_THREADS")
private int numberOfThreads;
@Column(name = "QUEUE_NAME")
private String queueName;
@Column(name = "WALL_TIME_LIMIT")
private int wallTimeLimit;
@Column(name = "TOTAL_PHYSICAL_MEMORY")
private int totalPhysicalMemory;
@Column(name = "STATIC_WORKING_DIR")
private String staticWorkingDir;
@Column(name = "OVERRIDE_LOGIN_USER_NAME")
private String overrideLoginUserName;
@Column(name = "OVERRIDE_SCRATCH_LOCATION")
private String overrideScratchLocation;
@Column(name = "OVERRIDE_ALLOCATION_PROJECT_NUMBER")
private String overrideAllocationProjectNumber;
@OneToOne(targetEntity = ProcessEntity.class, cascade = CascadeType.ALL)
@PrimaryKeyJoinColumn(name = "PROCESS_ID", referencedColumnName = "PROCESS_ID")
private ProcessEntity process;
public ProcessResourceScheduleEntity() {
}
public String getProcessId() {
return processId;
}
public void setProcessId(String processId) {
this.processId = processId;
}
public String getResourceHostId() {
return resourceHostId;
}
public void setResourceHostId(String resourceHostId) {
this.resourceHostId = resourceHostId;
}
public int getTotalCPUCount() {
return totalCPUCount;
}
public void setTotalCPUCount(int totalCPUCount) {
this.totalCPUCount = totalCPUCount;
}
public int getNodeCount() {
return nodeCount;
}
public void setNodeCount(int nodeCount) {
this.nodeCount = nodeCount;
}
public int getNumberOfThreads() {
return numberOfThreads;
}
public void setNumberOfThreads(int numberOfThreads) {
this.numberOfThreads = numberOfThreads;
}
public String getQueueName() {
return queueName;
}
public void setQueueName(String queueName) {
this.queueName = queueName;
}
public int getWallTimeLimit() {
return wallTimeLimit;
}
public void setWallTimeLimit(int wallTimeLimit) {
this.wallTimeLimit = wallTimeLimit;
}
public int getTotalPhysicalMemory() {
return totalPhysicalMemory;
}
public void setTotalPhysicalMemory(int totalPhysicalMemory) {
this.totalPhysicalMemory = totalPhysicalMemory;
}
public String getStaticWorkingDir() {
return staticWorkingDir;
}
public void setStaticWorkingDir(String staticWorkingDir) {
this.staticWorkingDir = staticWorkingDir;
}
public String getOverrideAllocationProjectNumber() {
return overrideAllocationProjectNumber;
}
public void setOverrideAllocationProjectNumber(String overrideAllocationProjectNumber) {
this.overrideAllocationProjectNumber = overrideAllocationProjectNumber;
}
public String getOverrideLoginUserName() {
return overrideLoginUserName;
}
public void setOverrideLoginUserName(String overrideLoginUserName) {
this.overrideLoginUserName = overrideLoginUserName;
}
public String getOverrideScratchLocation() {
return overrideScratchLocation;
}
public void setOverrideScratchLocation(String overrideScratchLocation) {
this.overrideScratchLocation = overrideScratchLocation;
}
public ProcessEntity getProcess() {
return process;
}
public void setProcess(ProcessEntity process) {
this.process = process;
}
}
| 926 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ComputationalResourceSchedulingEntity.java | package org.apache.airavata.registry.core.entities.expcatalog;
import javax.persistence.*;
import java.io.Serializable;
/**
* Persistent class for computational_resource_scheduling data table.
*/
@Entity
@Table(name = "COMPUTE_RESOURCE_SCHEDULING")
@IdClass(ComputationalResourceSchedulingPK.class)
public class ComputationalResourceSchedulingEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "EXPERIMENT_ID")
private String experimentId;
@Id
@Column(name = "RESOURCE_HOST_ID")
private String resourceHostId;
@Id
@Column(name = "QUEUE_NAME")
private String queueName;
@Column(name = "TOTAL_CPU_COUNT")
private int totalCPUCount;
@Column(name = "NODE_COUNT")
private int nodeCount;
@Column(name = "NUMBER_OF_THREADS")
private int numberOfThreads;
@Column(name = "WALL_TIME_LIMIT")
private int wallTimeLimit;
@Column(name = "PARALLEL_GROUP_COUNT")
private int mGroupCount;
@Column(name = "TOTAL_PHYSICAL_MEMORY")
private int totalPhysicalMemory;
@Column(name = "STATIC_WORKING_DIR")
private String staticWorkingDir;
@Column(name = "OVERRIDE_LOGIN_USER_NAME")
private String overrideLoginUserName;
@Column(name = "OVERRIDE_SCRATCH_LOCATION")
private String overrideScratchLocation;
@Column(name = "OVERRIDE_ALLOCATION_PROJECT_NUMBER")
private String overrideAllocationProjectNumber;
@ManyToOne(targetEntity = UserConfigurationDataEntity.class, cascade = CascadeType.ALL)
@JoinColumn(name = "EXPERIMENT_ID", referencedColumnName = "EXPERIMENT_ID")
private UserConfigurationDataEntity userConfigurationData;
public ComputationalResourceSchedulingEntity() {
}
public String getExperimentId() {
return experimentId;
}
public void setExperimentId(String experimentId) {
this.experimentId = experimentId;
}
public String getResourceHostId() {
return resourceHostId;
}
public void setResourceHostId(String resourceHostId) {
this.resourceHostId = resourceHostId;
}
public String getQueueName() {
return queueName;
}
public void setQueueName(String queueName) {
this.queueName = queueName;
}
public int getTotalCPUCount() {
return totalCPUCount;
}
public void setTotalCPUCount(int totalCPUCount) {
this.totalCPUCount = totalCPUCount;
}
public int getNodeCount() {
return nodeCount;
}
public void setNodeCount(int nodeCount) {
this.nodeCount = nodeCount;
}
public int getNumberOfThreads() {
return numberOfThreads;
}
public void setNumberOfThreads(int numberOfThreads) {
this.numberOfThreads = numberOfThreads;
}
public int getWallTimeLimit() {
return wallTimeLimit;
}
public void setWallTimeLimit(int wallTimeLimit) {
this.wallTimeLimit = wallTimeLimit;
}
public int getTotalPhysicalMemory() {
return totalPhysicalMemory;
}
public void setTotalPhysicalMemory(int totalPhysicalMemory) {
this.totalPhysicalMemory = totalPhysicalMemory;
}
public String getStaticWorkingDir() {
return staticWorkingDir;
}
public void setStaticWorkingDir(String staticWorkingDir) {
this.staticWorkingDir = staticWorkingDir;
}
public String getOverrideLoginUserName() {
return overrideLoginUserName;
}
public void setOverrideLoginUserName(String overrideLoginUserName) {
this.overrideLoginUserName = overrideLoginUserName;
}
public String getOverrideScratchLocation() {
return overrideScratchLocation;
}
public void setOverrideScratchLocation(String overrideScratchLocation) {
this.overrideScratchLocation = overrideScratchLocation;
}
public String getOverrideAllocationProjectNumber() {
return overrideAllocationProjectNumber;
}
public void setOverrideAllocationProjectNumber(String overrideAllocationProjectNumber) {
this.overrideAllocationProjectNumber = overrideAllocationProjectNumber;
}
public int getmGroupCount() {
return mGroupCount;
}
public void setmGroupCount(int mGroupCount) {
this.mGroupCount = mGroupCount;
}
}
| 927 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ExperimentInputPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import java.io.Serializable;
/**
* The primary key class for the experiment_input database table.
*/
public class ExperimentInputPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String experimentId;
private String name;
public ExperimentInputPK() {
}
public String getExperimentId() {
return experimentId;
}
public void setExperimentId(String experimentId) {
this.experimentId = experimentId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ExperimentInputPK)) {
return false;
}
ExperimentInputPK castOther = (ExperimentInputPK) other;
return
this.experimentId.equals(castOther.experimentId)
&& this.name.equals(castOther.name);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.experimentId.hashCode();
hash = hash * prime + this.name.hashCode();
return hash;
}
} | 928 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/UserPK.java | package org.apache.airavata.registry.core.entities.expcatalog;
public class UserPK {
private String gatewayId;
private String userId;
public UserPK() {
}
public UserPK(String gatewayId, String userId) {
this.gatewayId = gatewayId;
this.userId = userId;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof UserPK)) return false;
UserPK userPK = (UserPK) o;
if (!gatewayId.equals(userPK.gatewayId)) return false;
return userId.equals(userPK.userId);
}
@Override
public int hashCode() {
int result = gatewayId.hashCode();
result = 31 * result + userId.hashCode();
return result;
}
}
| 929 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/TaskEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import org.apache.airavata.model.task.TaskTypes;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
/**
* The persistent class for the task database table.
*/
@Entity
@Table(name = "TASK")
public class TaskEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "TASK_ID")
private String taskId;
@Column(name = "TASK_TYPE")
@Enumerated(EnumType.STRING)
private TaskTypes taskType;
@Column(name = "PARENT_PROCESS_ID")
private String parentProcessId;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "LAST_UPDATE_TIME")
private Timestamp lastUpdateTime;
@Lob
@Column(name = "TASK_DETAIL")
private String taskDetail;
@Lob
@Column(name = "SUB_TASK_MODEL")
private byte[] subTaskModel;
@OneToMany(targetEntity = TaskStatusEntity.class, cascade = CascadeType.ALL,
mappedBy = "task", fetch = FetchType.EAGER)
@OrderBy("timeOfStateChange ASC")
private List<TaskStatusEntity> taskStatuses;
@OneToMany(targetEntity = TaskErrorEntity.class, cascade = CascadeType.ALL,
mappedBy = "task", fetch = FetchType.EAGER)
private List<TaskErrorEntity> taskErrors;
@OneToMany(targetEntity = JobEntity.class, cascade = CascadeType.ALL,
mappedBy = "task", fetch = FetchType.EAGER)
private List<JobEntity> jobs;
@ManyToOne(targetEntity = ProcessEntity.class, fetch = FetchType.LAZY)
@JoinColumn(name = "PARENT_PROCESS_ID", referencedColumnName = "PROCESS_ID", nullable = false, updatable = false)
private ProcessEntity process;
public TaskEntity() {
}
public String getTaskId() {
return taskId;
}
public void setTaskId(String taskId) {
this.taskId = taskId;
}
public TaskTypes getTaskType() {
return taskType;
}
public void setTaskType(TaskTypes taskType) {
this.taskType = taskType;
}
public String getParentProcessId() {
return parentProcessId;
}
public void setParentProcessId(String parentProcessId) {
this.parentProcessId = parentProcessId;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public Timestamp getLastUpdateTime() {
return lastUpdateTime;
}
public void setLastUpdateTime(Timestamp lastUpdateTime) {
this.lastUpdateTime = lastUpdateTime;
}
public String getTaskDetail() {
return taskDetail;
}
public void setTaskDetail(String taskDetail) {
this.taskDetail = taskDetail;
}
public byte[] getSubTaskModel() {
return subTaskModel;
}
public void setSubTaskModel(byte[] subTaskModel) {
this.subTaskModel = subTaskModel;
}
public List<TaskStatusEntity> getTaskStatuses() {
return taskStatuses;
}
public void setTaskStatuses(List<TaskStatusEntity> taskStatuses) {
this.taskStatuses = taskStatuses;
}
public List<TaskErrorEntity> getTaskErrors() {
return taskErrors;
}
public void setTaskErrors(List<TaskErrorEntity> taskErrors) {
this.taskErrors = taskErrors;
}
public List<JobEntity> getJobs() {
return jobs;
}
public void setJobs(List<JobEntity> jobs) {
this.jobs = jobs;
}
public ProcessEntity getProcess() {
return process;
}
public void setProcess(ProcessEntity process) {
this.process = process;
}
} | 930 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/GatewayWorkerPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import java.io.Serializable;
/**
* The primary key class for the gateway_worker database table.
*/
public class GatewayWorkerPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String gatewayId;
private String userName;
public GatewayWorkerPK() {
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof GatewayWorkerPK)) {
return false;
}
GatewayWorkerPK castOther = (GatewayWorkerPK) other;
return
this.gatewayId.equals(castOther.gatewayId)
&& this.userName.equals(castOther.userName);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.gatewayId.hashCode();
hash = hash * prime + this.userName.hashCode();
return hash;
}
}
| 931 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ExperimentStatusEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import org.apache.airavata.model.status.ExperimentState;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the experiment_status database table.
*/
@Entity
@Table(name = "EXPERIMENT_STATUS")
@IdClass(ExperimentStatusPK.class)
public class ExperimentStatusEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "STATUS_ID")
private String statusId;
@Id
@Column(name = "EXPERIMENT_ID")
private String experimentId;
@Column(name = "STATE")
@Enumerated(EnumType.STRING)
private ExperimentState state;
@Column(name = "TIME_OF_STATE_CHANGE")
private Timestamp timeOfStateChange;
@Lob
@Column(name = "REASON")
private String reason;
@ManyToOne(targetEntity = ExperimentEntity.class, fetch = FetchType.LAZY)
@JoinColumn(name = "EXPERIMENT_ID", referencedColumnName = "EXPERIMENT_ID", nullable = false, updatable = false)
private ExperimentEntity experiment;
public ExperimentStatusEntity() {
}
public String getStatusId() {
return statusId;
}
public void setStatusId(String statusId) {
this.statusId = statusId;
}
public String getExperimentId() {
return experimentId;
}
public void setExperimentId(String experimentId) {
this.experimentId = experimentId;
}
public ExperimentState getState() {
return state;
}
public void setState(ExperimentState state) {
this.state = state;
}
public Timestamp getTimeOfStateChange() {
return timeOfStateChange;
}
public void setTimeOfStateChange(Timestamp timeOfStateChange) {
this.timeOfStateChange = timeOfStateChange;
}
public String getReason() {
return reason;
}
public void setReason(String reason) {
this.reason = reason;
}
public ExperimentEntity getExperiment() {
return experiment;
}
public void setExperiment(ExperimentEntity experiment) {
this.experiment = experiment;
}
} | 932 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProcessEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Collection;
import java.util.List;
/**
* The persistent class for the process database table.
*/
@Entity
@Table(name = "PROCESS")
public class ProcessEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "PROCESS_ID")
private String processId;
@Column(name = "EXPERIMENT_ID")
private String experimentId;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "LAST_UPDATE_TIME")
private Timestamp lastUpdateTime;
@Lob
@Column(name = "PROCESS_DETAIL")
private String processDetail;
@Column(name = "APPLICATION_INTERFACE_ID")
private String applicationInterfaceId;
@Column(name = "APPLICATION_DEPLOYMENT_ID")
private String applicationDeploymentId;
@Column(name = "COMPUTE_RESOURCE_ID")
private String computeResourceId;
@Lob
@Column(name = "TASK_DAG")
private String taskDag;
@Column(name = "GATEWAY_EXECUTION_ID")
private String gatewayExecutionId;
@Column(name = "ENABLE_EMAIL_NOTIFICATION")
private boolean enableEmailNotification;
@Lob
@Column(name = "EMAIL_ADDRESSES")
private String emailAddresses;
@Column(name = "STORAGE_RESOURCE_ID")
private String storageResourceId;
@Column(name = "USER_DN")
private String userDn;
@Column(name = "GENERATE_CERT")
private boolean generateCert;
@Column(name = "EXPERIMENT_DATA_DIR", length = 512)
private String experimentDataDir;
@Column(name = "USERNAME")
private String userName;
@Column(name = "GROUP_RESOURCE_PROFILE_ID")
private String groupResourceProfileId;
@Column(name = "USE_USER_CR_PREF")
private boolean useUserCRPref;
@OneToMany(targetEntity = ProcessStatusEntity.class, cascade = CascadeType.ALL,
mappedBy = "process", fetch = FetchType.EAGER)
@OrderBy("timeOfStateChange ASC")
private List<ProcessStatusEntity> processStatuses;
@OneToMany(targetEntity = ProcessErrorEntity.class, cascade = CascadeType.ALL,
mappedBy = "process", fetch = FetchType.EAGER)
private List<ProcessErrorEntity> processErrors;
@OneToMany(targetEntity = ProcessInputEntity.class, cascade = CascadeType.ALL,
mappedBy = "process", fetch = FetchType.EAGER)
private List<ProcessInputEntity> processInputs;
@OneToMany(targetEntity = ProcessOutputEntity.class, cascade = CascadeType.ALL,
mappedBy = "process", fetch = FetchType.EAGER)
private List<ProcessOutputEntity> processOutputs;
@OneToOne(targetEntity = ProcessResourceScheduleEntity.class, cascade = CascadeType.ALL,
mappedBy = "process", fetch = FetchType.EAGER)
private ProcessResourceScheduleEntity processResourceSchedule;
@OneToMany(targetEntity = TaskEntity.class, cascade = CascadeType.ALL,
mappedBy = "process", fetch = FetchType.EAGER)
private List<TaskEntity> tasks;
@ManyToOne(targetEntity = ExperimentEntity.class, fetch = FetchType.LAZY)
@JoinColumn(name = "EXPERIMENT_ID", referencedColumnName = "EXPERIMENT_ID", nullable = false, updatable = false)
private ExperimentEntity experiment;
@OneToMany(targetEntity = ProcessWorkflowEntity.class, cascade = CascadeType.ALL,
mappedBy = "process", fetch = FetchType.EAGER)
private Collection<ProcessWorkflowEntity> processWorkflows;
public ProcessEntity() {
}
public String getProcessId() {
return processId;
}
public void setProcessId(String processId) {
this.processId = processId;
}
public String getExperimentId() {
return experimentId;
}
public void setExperimentId(String experimentId) {
this.experimentId = experimentId;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public Timestamp getLastUpdateTime() {
return lastUpdateTime;
}
public void setLastUpdateTime(Timestamp lastUpdateTime) {
this.lastUpdateTime = lastUpdateTime;
}
public String getProcessDetail() {
return processDetail;
}
public void setProcessDetail(String processDetail) {
this.processDetail = processDetail;
}
public String getApplicationInterfaceId() {
return applicationInterfaceId;
}
public void setApplicationInterfaceId(String applicationInterfaceId) {
this.applicationInterfaceId = applicationInterfaceId;
}
public String getApplicationDeploymentId() {
return applicationDeploymentId;
}
public void setApplicationDeploymentId(String applicationDeploymentId) {
this.applicationDeploymentId = applicationDeploymentId;
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public String getTaskDag() {
return taskDag;
}
public void setTaskDag(String taskDag) {
this.taskDag = taskDag;
}
public String getGatewayExecutionId() {
return gatewayExecutionId;
}
public void setGatewayExecutionId(String gatewayExecutionId) {
this.gatewayExecutionId = gatewayExecutionId;
}
public boolean isEnableEmailNotification() {
return enableEmailNotification;
}
public void setEnableEmailNotification(boolean enableEmailNotification) {
this.enableEmailNotification = enableEmailNotification;
}
public String getEmailAddresses() {
return emailAddresses;
}
public void setEmailAddresses(String emailAddresses) {
this.emailAddresses = emailAddresses;
}
public String getStorageResourceId() {
return storageResourceId;
}
public void setStorageResourceId(String storageResourceId) {
this.storageResourceId = storageResourceId;
}
public String getUserDn() {
return userDn;
}
public void setUserDn(String userDn) {
this.userDn = userDn;
}
public boolean isGenerateCert() {
return generateCert;
}
public void setGenerateCert(boolean generateCert) {
this.generateCert = generateCert;
}
public String getExperimentDataDir() {
return experimentDataDir;
}
public void setExperimentDataDir(String experimentDataDir) {
this.experimentDataDir = experimentDataDir;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getGroupResourceProfileId() {
return groupResourceProfileId;
}
public void setGroupResourceProfileId(String groupResourceProfileId) {
this.groupResourceProfileId = groupResourceProfileId;
}
public boolean isUseUserCRPref() {
return useUserCRPref;
}
public void setUseUserCRPref(boolean useUserCRPref) {
this.useUserCRPref = useUserCRPref;
}
public List<ProcessStatusEntity> getProcessStatuses() {
return processStatuses;
}
public void setProcessStatuses(List<ProcessStatusEntity> processStatuses) {
this.processStatuses = processStatuses;
}
public List<ProcessErrorEntity> getProcessErrors() {
return processErrors;
}
public void setProcessErrors(List<ProcessErrorEntity> processErrors) {
this.processErrors = processErrors;
}
public List<ProcessInputEntity> getProcessInputs() {
return processInputs;
}
public void setProcessInputs(List<ProcessInputEntity> processInputs) {
this.processInputs = processInputs;
}
public List<ProcessOutputEntity> getProcessOutputs() {
return processOutputs;
}
public void setProcessOutputs(List<ProcessOutputEntity> processOutputs) {
this.processOutputs = processOutputs;
}
public ProcessResourceScheduleEntity getProcessResourceSchedule() {
return processResourceSchedule;
}
public void setProcessResourceSchedule(ProcessResourceScheduleEntity processResourceSchedule) {
this.processResourceSchedule = processResourceSchedule;
}
public Collection<ProcessWorkflowEntity> getProcessWorkflows() {
return processWorkflows;
}
public void setProcessWorkflows(Collection<ProcessWorkflowEntity> processWorkflows) {
this.processWorkflows = processWorkflows;
}
public List<TaskEntity> getTasks() {
return tasks;
}
public void setTasks(List<TaskEntity> tasks) {
this.tasks = tasks;
}
public ExperimentEntity getExperiment() {
return experiment;
}
public void setExperiment(ExperimentEntity experiment) {
this.experiment = experiment;
}
}
| 933 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/NotificationEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import org.apache.airavata.model.workspace.NotificationPriority;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the notification database table.
*/
@Entity
@Table(name = "NOTIFICATION")
public class NotificationEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "NOTIFICATION_ID")
private String notificationId;
@Column(name = "GATEWAY_ID")
private String gatewayId;
@Column(name = "TITLE")
private String title;
@Column(name = "NOTIFICATION_MESSAGE", length = 4096)
private String notificationMessage;
@Column(name = "CREATION_DATE")
private Timestamp creationTime;
@Column(name = "PUBLISHED_DATE")
private Timestamp publishedTime;
@Column(name = "EXPIRATION_DATE")
private Timestamp expirationTime;
@Column(name = "PRIORITY")
@Enumerated(EnumType.STRING)
private NotificationPriority priority;
public NotificationEntity() {
}
public String getNotificationId() {
return notificationId;
}
public void setNotificationId(String notificationId) {
this.notificationId = notificationId;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getNotificationMessage() {
return notificationMessage;
}
public void setNotificationMessage(String notificationMessage) {
this.notificationMessage = notificationMessage;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public Timestamp getPublishedTime() {
return publishedTime;
}
public void setPublishedTime(Timestamp publishedTime) {
this.publishedTime = publishedTime;
}
public Timestamp getExpirationTime() {
return expirationTime;
}
public void setExpirationTime(Timestamp expirationTime) {
this.expirationTime = expirationTime;
}
public NotificationPriority getPriority() {
return priority;
}
public void setPriority(NotificationPriority priority) {
this.priority = priority;
}
} | 934 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProcessOutputEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import org.apache.airavata.model.application.io.DataType;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the process_output database table.
*/
@Entity
@Table(name = "PROCESS_OUTPUT")
@IdClass(ProcessOutputPK.class)
public class ProcessOutputEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "PROCESS_ID")
private String processId;
@Id
@Column(name = "OUTPUT_NAME")
private String name;
@Lob
@Column(name = "OUTPUT_VALUE")
private String value;
@Column(name = "DATA_TYPE")
@Enumerated(EnumType.STRING)
private DataType type;
@Column(name = "APPLICATION_ARGUMENT")
private String applicationArgument;
@Column(name = "IS_REQUIRED")
private boolean isRequired;
@Column(name = "REQUIRED_TO_ADDED_TO_CMD")
private boolean requiredToAddedToCommandLine;
@Column(name = "DATA_MOVEMENT")
private boolean dataMovement;
@Column(name = "LOCATION")
private String location;
@Column(name = "SEARCH_QUERY")
private String searchQuery;
@Column(name = "OUTPUT_STREAMING")
private boolean outputStreaming;
@Column(name = "STORAGE_RESOURCE_ID")
private String storageResourceId;
@Column(name = "METADATA", length = 4096)
private String metaData;
@ManyToOne(targetEntity = ProcessEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "PROCESS_ID", referencedColumnName = "PROCESS_ID")
private ProcessEntity process;
public ProcessOutputEntity() {
}
public String getProcessId() {
return processId;
}
public void setProcessId(String processId) {
this.processId = processId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public DataType getType() {
return type;
}
public void setType(DataType type) {
this.type = type;
}
public String getApplicationArgument() {
return applicationArgument;
}
public void setApplicationArgument(String applicationArgument) {
this.applicationArgument = applicationArgument;
}
public boolean isRequired() {
return isRequired;
}
public void setRequired(boolean required) {
isRequired = required;
}
public boolean isRequiredToAddedToCommandLine() {
return requiredToAddedToCommandLine;
}
public void setRequiredToAddedToCommandLine(boolean requiredToAddedToCommandLine) {
this.requiredToAddedToCommandLine = requiredToAddedToCommandLine;
}
public boolean isDataMovement() {
return dataMovement;
}
public void setDataMovement(boolean dataMovement) {
this.dataMovement = dataMovement;
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public String getSearchQuery() {
return searchQuery;
}
public void setSearchQuery(String searchQuery) {
this.searchQuery = searchQuery;
}
public boolean isOutputStreaming() {
return outputStreaming;
}
public void setOutputStreaming(boolean outputStreaming) {
this.outputStreaming = outputStreaming;
}
public String getStorageResourceId() {
return storageResourceId;
}
public void setStorageResourceId(String storageResourceId) {
this.storageResourceId = storageResourceId;
}
public void setMetaData(String metaData) {
this.metaData = metaData;
}
public String getMetaData() {
return metaData;
}
public ProcessEntity getProcess() {
return process;
}
public void setProcess(ProcessEntity process) {
this.process = process;
}
}
| 935 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProcessErrorEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
/**
* The persistent class for the process_error database table.
*/
@Entity
@Table(name = "PROCESS_ERROR")
@IdClass(ProcessErrorPK.class)
public class ProcessErrorEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "ERROR_ID")
private String errorId;
@Id
@Column(name = "PROCESS_ID")
private String processId;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Lob
@Column(name = "ACTUAL_ERROR_MESSAGE")
private String actualErrorMessage;
@Lob
@Column(name = "USER_FRIENDLY_MESSAGE")
private String userFriendlyMessage;
@Column(name = "TRANSIENT_OR_PERSISTENT")
private boolean transientOrPersistent;
@Lob
@Column(name = "ROOT_CAUSE_ERROR_ID_LIST")
private String rootCauseErrorIdList;
@ManyToOne(targetEntity = ProcessEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "PROCESS_ID", referencedColumnName = "PROCESS_ID")
private ProcessEntity process;
public ProcessErrorEntity() {
}
public String getErrorId() {
return errorId;
}
public void setErrorId(String errorId) {
this.errorId = errorId;
}
public String getProcessId() {
return processId;
}
public void setProcessId(String processId) {
this.processId = processId;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public String getActualErrorMessage() {
return actualErrorMessage;
}
public void setActualErrorMessage(String actualErrorMessage) {
this.actualErrorMessage = actualErrorMessage;
}
public String getUserFriendlyMessage() {
return userFriendlyMessage;
}
public void setUserFriendlyMessage(String userFriendlyMessage) {
this.userFriendlyMessage = userFriendlyMessage;
}
public boolean isTransientOrPersistent() {
return transientOrPersistent;
}
public void setTransientOrPersistent(boolean transientOrPersistent) {
this.transientOrPersistent = transientOrPersistent;
}
public String getRootCauseErrorIdList() {
return rootCauseErrorIdList;
}
public void setRootCauseErrorIdList(String rootCauseErrorIdList) {
this.rootCauseErrorIdList = rootCauseErrorIdList;
}
public ProcessEntity getProcess() {
return process;
}
public void setProcess(ProcessEntity process) {
this.process = process;
}
} | 936 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProcessInputEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import org.apache.airavata.model.application.io.DataType;
import javax.persistence.*;
import java.io.Serializable;
/**
* The primary key class for the process_input database table.
*/
@Entity
@Table(name = "PROCESS_INPUT")
@IdClass(ProcessInputPK.class)
public class ProcessInputEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "PROCESS_ID")
private String processId;
@Id
@Column(name = "INPUT_NAME")
private String name;
@Lob
@Column(name = "INPUT_VALUE")
private String value;
@Column(name = "DATA_TYPE")
@Enumerated(EnumType.STRING)
private DataType type;
@Column(name = "APPLICATION_ARGUMENT")
private String applicationArgument;
@Column(name = "STANDARD_INPUT")
private boolean standardInput;
@Lob
@Column(name = "USER_FRIENDLY_DESCRIPTION")
private String userFriendlyDescription;
@Column(name = "METADATA", length = 4096)
private String metaData;
@Column(name = "INPUT_ORDER")
private int inputOrder;
@Column(name = "IS_REQUIRED")
private boolean isRequired;
@Column(name = "REQUIRED_TO_ADDED_TO_CMD")
private boolean requiredToAddedToCommandLine;
@Column(name = "DATA_STAGED")
private boolean dataStaged;
@Column(name = "STORAGE_RESOURCE_ID")
private String storageResourceId;
@Column(name = "IS_READ_ONLY")
private boolean isReadOnly;
@Column(name = "OVERRIDE_FILENAME")
private String overrideFilename;
@ManyToOne(targetEntity = ProcessEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "PROCESS_ID", referencedColumnName = "PROCESS_ID")
private ProcessEntity process;
public ProcessInputEntity() {
}
public String getProcessId() {
return processId;
}
public void setProcessId(String processId) {
this.processId = processId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public DataType getType() {
return type;
}
public void setType(DataType type) {
this.type = type;
}
public String getApplicationArgument() {
return applicationArgument;
}
public void setApplicationArgument(String applicationArgument) {
this.applicationArgument = applicationArgument;
}
public boolean isStandardInput() {
return standardInput;
}
public void setStandardInput(boolean standardInput) {
this.standardInput = standardInput;
}
public String getUserFriendlyDescription() {
return userFriendlyDescription;
}
public void setUserFriendlyDescription(String userFriendlyDescription) {
this.userFriendlyDescription = userFriendlyDescription;
}
public String getMetaData() {
return metaData;
}
public void setMetaData(String metaData) {
this.metaData = metaData;
}
public int getInputOrder() {
return inputOrder;
}
public void setInputOrder(int inputOrder) {
this.inputOrder = inputOrder;
}
public boolean isIsRequired() {
return isRequired;
}
public void setIsRequired(boolean required) {
isRequired = required;
}
public boolean isRequiredToAddedToCommandLine() {
return requiredToAddedToCommandLine;
}
public void setRequiredToAddedToCommandLine(boolean requiredToAddedToCommandLine) {
this.requiredToAddedToCommandLine = requiredToAddedToCommandLine;
}
public boolean isDataStaged() {
return dataStaged;
}
public void setDataStaged(boolean dataStaged) {
this.dataStaged = dataStaged;
}
public String getStorageResourceId() {
return storageResourceId;
}
public void setStorageResourceId(String storageResourceId) {
this.storageResourceId = storageResourceId;
}
public boolean isReadOnly() {
return isReadOnly;
}
public void setReadOnly(boolean readOnly) {
isReadOnly = readOnly;
}
public String getOverrideFilename() {
return overrideFilename;
}
public void setOverrideFilename(String overrideFilename) {
this.overrideFilename = overrideFilename;
}
public ProcessEntity getProcess() {
return process;
}
public void setProcess(ProcessEntity process) {
this.process = process;
}
}
| 937 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/TaskErrorEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
/**
* The persistent class for the task_error database table.
*/
@Entity
@Table(name = "TASK_ERROR")
@IdClass(TaskErrorPK.class)
public class TaskErrorEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "ERROR_ID")
private String errorId;
@Id
@Column(name = "TASK_ID")
private String taskId;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Lob
@Column(name = "ACTUAL_ERROR_MESSAGE")
private String actualErrorMessage;
@Lob
@Column(name = "USER_FRIENDLY_MESSAGE")
private String userFriendlyMessage;
@Column(name = "TRANSIENT_OR_PERSISTENT")
private boolean transientOrPersistent;
@Lob
@Column(name = "ROOT_CAUSE_ERROR_ID_LIST")
private String rootCauseErrorIdList;
@ManyToOne(targetEntity = TaskEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "TASK_ID", referencedColumnName = "TASK_ID")
private TaskEntity task;
public TaskErrorEntity() {
}
public String getErrorId() {
return errorId;
}
public void setErrorId(String errorId) {
this.errorId = errorId;
}
public String getTaskId() {
return taskId;
}
public void setTaskId(String taskId) {
this.taskId = taskId;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public String getActualErrorMessage() {
return actualErrorMessage;
}
public void setActualErrorMessage(String actualErrorMessage) {
this.actualErrorMessage = actualErrorMessage;
}
public String getUserFriendlyMessage() {
return userFriendlyMessage;
}
public void setUserFriendlyMessage(String userFriendlyMessage) {
this.userFriendlyMessage = userFriendlyMessage;
}
public boolean isTransientOrPersistent() {
return transientOrPersistent;
}
public void setTransientOrPersistent(boolean transientOrPersistent) {
this.transientOrPersistent = transientOrPersistent;
}
public String getRootCauseErrorIdList() {
return rootCauseErrorIdList;
}
public void setRootCauseErrorIdList(String rootCauseErrorIdList) {
this.rootCauseErrorIdList = rootCauseErrorIdList;
}
public TaskEntity getTask() {
return task;
}
public void setTask(TaskEntity task) {
this.task = task;
}
} | 938 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProjectUserPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import java.io.Serializable;
/**
* The primary key class for the project_user database table.
*/
public class ProjectUserPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String projectID;
private String userName;
public ProjectUserPK() {
}
public String getProjectID() {
return projectID;
}
public void setProjectID(String projectID) {
this.projectID = projectID;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ProjectUserPK)) {
return false;
}
ProjectUserPK castOther = (ProjectUserPK) other;
return
this.projectID.equals(castOther.projectID)
&& this.userName.equals(castOther.userName);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.projectID.hashCode();
hash = hash * prime + this.userName.hashCode();
return hash;
}
}
| 939 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProcessOutputPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import java.io.Serializable;
/**
* The primary key class for the process_output database table.
*/
public class ProcessOutputPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String processId;
private String name;
public ProcessOutputPK() {
}
public String getProcessId() {
return processId;
}
public void setProcessId(String processId) {
this.processId = processId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ProcessOutputPK)) {
return false;
}
ProcessOutputPK castOther = (ProcessOutputPK) other;
return
this.processId.equals(castOther.processId)
&& this.name.equals(castOther.name);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.processId.hashCode();
hash = hash * prime + this.name.hashCode();
return hash;
}
} | 940 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/JobStatusPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import java.io.Serializable;
/**
* The primary key class for the job_status database table.
*/
public class JobStatusPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String statusId;
private String jobId;
private String taskId;
public JobStatusPK() {
}
public String getStatusId() {
return statusId;
}
public void setStatusId(String statusId) {
this.statusId = statusId;
}
public String getJobId() {
return jobId;
}
public void setJobId(String jobId) {
this.jobId = jobId;
}
public String getTaskId() {
return taskId;
}
public void setTaskId(String taskId) {
this.taskId = taskId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof JobStatusPK)) {
return false;
}
JobStatusPK castOther = (JobStatusPK) other;
return
this.statusId.equals(castOther.statusId)
&& this.jobId.equals(castOther.jobId)
&& this.taskId.equals(castOther.taskId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.statusId.hashCode();
hash = hash * prime + this.jobId.hashCode();
hash = hash * prime + this.taskId.hashCode();
return hash;
}
} | 941 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProcessWorkflowEntity.java | package org.apache.airavata.registry.core.entities.expcatalog;
import javax.persistence.*;
import java.sql.Timestamp;
@Entity
@Table(name = "PROCESS_WORKFLOW")
@IdClass(ProcessWorkflowPK.class)
public class ProcessWorkflowEntity {
@Id
@Column(name = "PROCESS_ID")
private String processId;
@Id
@Column(name = "WORKFLOW_ID")
private String workflowId;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "TYPE")
private String type;
@ManyToOne(targetEntity = ProcessEntity.class, fetch = FetchType.LAZY)
@JoinColumn(name = "PROCESS_ID", referencedColumnName = "PROCESS_ID", nullable = false, updatable = false)
private ProcessEntity process;
public String getProcessId() {
return processId;
}
public void setProcessId(String processId) {
this.processId = processId;
}
public String getWorkflowId() {
return workflowId;
}
public void setWorkflowId(String workflowId) {
this.workflowId = workflowId;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public ProcessEntity getProcess() {
return process;
}
public void setProcess(ProcessEntity process) {
this.process = process;
}
}
| 942 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/GatewayEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import org.apache.airavata.model.workspace.GatewayApprovalStatus;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the gateway database table.
*/
@Entity
@Table(name="GATEWAY")
public class GatewayEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "GATEWAY_ID")
private String gatewayId;
@Column(name = "GATEWAY_NAME")
private String gatewayName;
@Column(name = "DOMAIN")
private String domain;
@Column(name = "EMAIL_ADDRESS")
private String emailAddress;
@Column(name = "GATEWAY_APPROVAL_STATUS")
@Enumerated(EnumType.STRING)
private GatewayApprovalStatus gatewayApprovalStatus;
@Column(name = "GATEWAY_ACRONYM")
private String gatewayAcronym;
@Column(name = "GATEWAY_URL")
private String gatewayUrl;
@Column(name = "GATEWAY_PUBLIC_ABSTRACT")
private String gatewayPublicAbstract;
@Column(name = "GATEWAY_REVIEW_PROPOSAL_DESCRIPTION")
private String reviewProposalDescription;
@Column(name = "GATEWAY_ADMIN_FIRST_NAME")
private String gatewayAdminFirstName;
@Column(name = "GATEWAY_ADMIN_LAST_NAME")
private String gatewayAdminLastName;
@Column(name = "GATEWAY_ADMIN_EMAIL")
private String gatewayAdminEmail;
@Column(name = "IDENTITY_SERVER_USERNAME")
private String identityServerUserName;
@Column(name = "IDENTITY_SERVER_PASSWORD_TOKEN")
private String identityServerPasswordToken;
@Column(name = "DECLINED_REASON")
private String declinedReason;
@Column(name = "OAUTH_CLIENT_ID")
private String oauthClientId;
@Column(name = "OAUTH_CLIENT_SECRET")
private String oauthClientSecret;
@Column(name = "REQUEST_CREATION_TIME")
private Timestamp requestCreationTime;
@Column(name = "REQUESTER_USERNAME")
private String requesterUsername;
public GatewayEntity() {
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String id) {
this.gatewayId = id;
}
public String getGatewayName() {
return gatewayName;
}
public void setGatewayName(String gatewayName) {
this.gatewayName = gatewayName;
}
public String getDomain() {
return domain;
}
public void setDomain(String domain) {
this.domain = domain;
}
public String getEmailAddress() {
return emailAddress;
}
public void setEmailAddress(String emailAddress) {
this.emailAddress = emailAddress;
}
public GatewayApprovalStatus getGatewayApprovalStatus() {
return gatewayApprovalStatus;
}
public void setGatewayApprovalStatus(GatewayApprovalStatus gatewayApprovalStatus) {
this.gatewayApprovalStatus = gatewayApprovalStatus;
}
public String getGatewayAcronym() {
return gatewayAcronym;
}
public void setGatewayAcronym(String gatewayAcronym) {
this.gatewayAcronym = gatewayAcronym;
}
public String getGatewayUrl() {
return gatewayUrl;
}
public void setGatewayUrl(String gatewayUrl) {
this.gatewayUrl = gatewayUrl;
}
public String getGatewayPublicAbstract() {
return gatewayPublicAbstract;
}
public void setGatewayPublicAbstract(String gatewayPublicAbstract) {
this.gatewayPublicAbstract = gatewayPublicAbstract;
}
public String getReviewProposalDescription() {
return reviewProposalDescription;
}
public void setReviewProposalDescription(String reviewProposalDescription) {
this.reviewProposalDescription = reviewProposalDescription;
}
public String getGatewayAdminFirstName() {
return gatewayAdminFirstName;
}
public void setGatewayAdminFirstName(String gatewayAdminFirstName) {
this.gatewayAdminFirstName = gatewayAdminFirstName;
}
public String getGatewayAdminLastName() {
return gatewayAdminLastName;
}
public void setGatewayAdminLastName(String gatewayAdminLastName) {
this.gatewayAdminLastName = gatewayAdminLastName;
}
public String getGatewayAdminEmail() {
return gatewayAdminEmail;
}
public void setGatewayAdminEmail(String gatewayAdminEmail) {
this.gatewayAdminEmail = gatewayAdminEmail;
}
public String getIdentityServerUserName() {
return identityServerUserName;
}
public void setIdentityServerUserName(String identityServerUserName) {
this.identityServerUserName = identityServerUserName;
}
public String getIdentityServerPasswordToken() {
return identityServerPasswordToken;
}
public void setIdentityServerPasswordToken(String identityServerPasswordToken) {
this.identityServerPasswordToken = identityServerPasswordToken;
}
public String getRequesterUsername() {
return requesterUsername;
}
public void setRequesterUsername(String requesterUsername) {
this.requesterUsername = requesterUsername;
}
public String getDeclinedReason() {
return declinedReason;
}
public void setDeclinedReason(String declinedReason) {
this.declinedReason = declinedReason;
}
public String getOauthClientId() {
return oauthClientId;
}
public void setOauthClientId(String oauthClientId) {
this.oauthClientId = oauthClientId;
}
public String getOauthClientSecret() {
return oauthClientSecret;
}
public void setOauthClientSecret(String oauthClientSecret) {
this.oauthClientSecret = oauthClientSecret;
}
public Timestamp getRequestCreationTime() {
return requestCreationTime;
}
public void setRequestCreationTime(Timestamp requestCreationTime) {
this.requestCreationTime = requestCreationTime;
}
} | 943 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/TaskStatusEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import org.apache.airavata.model.status.TaskState;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the task_status database table.
*/
@Entity
@Table(name = "TASK_STATUS")
@IdClass(TaskStatusPK.class)
public class TaskStatusEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "STATUS_ID")
private String statusId;
@Id
@Column(name = "TASK_ID")
private String taskId;
@Column(name = "STATE")
@Enumerated(EnumType.STRING)
private TaskState state;
@Column(name = "TIME_OF_STATE_CHANGE")
private Timestamp timeOfStateChange;
@Lob
@Column(name = "REASON")
private String reason;
@ManyToOne(targetEntity = TaskEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "TASK_ID", referencedColumnName = "TASK_ID")
private TaskEntity task;
public TaskStatusEntity() {
}
public String getStatusId() {
return statusId;
}
public void setStatusId(String statusId) {
this.statusId = statusId;
}
public String getTaskId() {
return taskId;
}
public void setTaskId(String taskId) {
this.taskId = taskId;
}
public TaskState getState() {
return state;
}
public void setState(TaskState state) {
this.state = state;
}
public Timestamp getTimeOfStateChange() {
return timeOfStateChange;
}
public void setTimeOfStateChange(Timestamp timeOfStateChange) {
this.timeOfStateChange = timeOfStateChange;
}
public String getReason() {
return reason;
}
public void setReason(String reason) {
this.reason = reason;
}
public TaskEntity getTask() {
return task;
}
public void setTask(TaskEntity task) {
this.task = task;
}
} | 944 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ExperimentInputEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import org.apache.airavata.model.application.io.DataType;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the experiment_input database table.
*/
@Entity
@Table(name = "EXPERIMENT_INPUT")
@IdClass(ExperimentInputPK.class)
public class ExperimentInputEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "EXPERIMENT_ID")
private String experimentId;
@Id
@Column(name = "INPUT_NAME")
private String name;
@Lob
@Column(name = "INPUT_VALUE")
private String value;
@Column(name = "DATA_TYPE")
@Enumerated(EnumType.STRING)
private DataType type;
@Column(name = "APPLICATION_ARGUMENT")
private String applicationArgument;
@Column(name = "STANDARD_INPUT")
private boolean standardInput;
@Lob
@Column(name = "USER_FRIENDLY_DESCRIPTION")
private String userFriendlyDescription;
@Column(name = "METADATA", length = 4096)
private String metaData;
@Column(name = "INPUT_ORDER")
private int inputOrder;
@Column(name = "IS_REQUIRED")
private boolean isRequired;
@Column(name = "REQUIRED_TO_ADDED_TO_CMD")
private boolean requiredToAddedToCommandLine;
@Column(name = "DATA_STAGED")
private boolean dataStaged;
@Column(name = "STORAGE_RESOURCE_ID")
private String storageResourceId;
@Column(name = "IS_READ_ONLY")
private boolean isReadOnly;
@Column(name = "OVERRIDE_FILENAME")
private String overrideFilename;
@ManyToOne(targetEntity = ExperimentEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "EXPERIMENT_ID", referencedColumnName = "EXPERIMENT_ID")
private ExperimentEntity experiment;
public ExperimentInputEntity() {
}
public String getExperimentId() {
return experimentId;
}
public void setExperimentId(String experimentId) {
this.experimentId = experimentId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public DataType getType() {
return type;
}
public void setType(DataType type) {
this.type = type;
}
public String getApplicationArgument() {
return applicationArgument;
}
public void setApplicationArgument(String applicationArgument) {
this.applicationArgument = applicationArgument;
}
public boolean isStandardInput() {
return standardInput;
}
public void setStandardInput(boolean standardInput) {
this.standardInput = standardInput;
}
public String getUserFriendlyDescription() {
return userFriendlyDescription;
}
public void setUserFriendlyDescription(String userFriendlyDescription) {
this.userFriendlyDescription = userFriendlyDescription;
}
public String getMetaData() {
return metaData;
}
public void setMetaData(String metaData) {
this.metaData = metaData;
}
public int getInputOrder() {
return inputOrder;
}
public void setInputOrder(int inputOrder) {
this.inputOrder = inputOrder;
}
public boolean isIsRequired() {
return isRequired;
}
public void setIsRequired(boolean isRequired) {
this.isRequired = isRequired;
}
public boolean isRequiredToAddedToCommandLine() {
return requiredToAddedToCommandLine;
}
public void setRequiredToAddedToCommandLine(boolean requiredToAddedToCommandLine) {
this.requiredToAddedToCommandLine = requiredToAddedToCommandLine;
}
public boolean isDataStaged() {
return dataStaged;
}
public void setDataStaged(boolean dataStaged) {
this.dataStaged = dataStaged;
}
public String getStorageResourceId() {
return storageResourceId;
}
public void setStorageResourceId(String storageResourceId) {
this.storageResourceId = storageResourceId;
}
public ExperimentEntity getExperiment() {
return experiment;
}
public void setExperiment(ExperimentEntity experiment) {
this.experiment = experiment;
}
public boolean getIsReadOnly() { return isReadOnly; }
public void setIsReadOnly(boolean isReadOnly) {
this.isReadOnly = isReadOnly;
}
public String getOverrideFilename() {
return overrideFilename;
}
public void setOverrideFilename(String overrideFilename) {
this.overrideFilename = overrideFilename;
}
}
| 945 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ExperimentErrorEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
/**
* The persistent class for the experiment_error database table.
*/
@Entity
@Table(name = "EXPERIMENT_ERROR")
@IdClass(ExperimentErrorPK.class)
public class ExperimentErrorEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "ERROR_ID")
private String errorId;
@Id
@Column(name = "EXPERIMENT_ID")
private String experimentId;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Lob
@Column(name = "ACTUAL_ERROR_MESSAGE")
private String actualErrorMessage;
@Lob
@Column(name = "USER_FRIENDLY_MESSAGE")
private String userFriendlyMessage;
@Column(name = "TRANSIENT_OR_PERSISTENT")
private boolean transientOrPersistent;
@Lob
@Column(name = "ROOT_CAUSE_ERROR_ID_LIST")
private String rootCauseErrorIdList;
@ManyToOne(targetEntity = ExperimentEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "EXPERIMENT_ID", referencedColumnName = "EXPERIMENT_ID")
private ExperimentEntity experiment;
public ExperimentErrorEntity() {
}
public String getErrorId() {
return errorId;
}
public void setErrorId(String errorId) {
this.errorId = errorId;
}
public String getExperimentId() {
return experimentId;
}
public void setExperimentId(String experimentId) {
this.experimentId = experimentId;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public String getActualErrorMessage() {
return actualErrorMessage;
}
public void setActualErrorMessage(String actualErrorMessage) {
this.actualErrorMessage = actualErrorMessage;
}
public String getUserFriendlyMessage() {
return userFriendlyMessage;
}
public void setUserFriendlyMessage(String userFriendlyMessage) {
this.userFriendlyMessage = userFriendlyMessage;
}
public boolean isTransientOrPersistent() {
return transientOrPersistent;
}
public void setTransientOrPersistent(boolean transientOrPersistent) {
this.transientOrPersistent = transientOrPersistent;
}
public String getRootCauseErrorIdList() {
return rootCauseErrorIdList;
}
public void setRootCauseErrorIdList(String rootCauseErrorIdList) {
this.rootCauseErrorIdList = rootCauseErrorIdList;
}
public ExperimentEntity getExperiment() {
return experiment;
}
public void setExperiment(ExperimentEntity experiment) {
this.experiment = experiment;
}
} | 946 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/QueueStatusPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import java.io.Serializable;
import java.math.BigInteger;
import java.sql.Timestamp;
/**
* The primary key class for the queue_status database table.
*/
public class QueueStatusPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String hostName;
private String queueName;
private BigInteger time;
public QueueStatusPK() {
}
public String getHostName() {
return hostName;
}
public void setHostName(String hostName) {
this.hostName = hostName;
}
public String getQueueName() {
return queueName;
}
public void setQueueName(String queueName) {
this.queueName = queueName;
}
public BigInteger getTime() {
return time;
}
public void setTime(BigInteger time) {
this.time = time;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof QueueStatusPK)) {
return false;
}
QueueStatusPK castOther = (QueueStatusPK) other;
return
this.hostName.equals(castOther.hostName)
&& this.queueName.equals(castOther.queueName)
&& this.time.equals(castOther.time);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.hostName.hashCode();
hash = hash * prime + this.queueName.hashCode();
hash = hash * prime + this.time.hashCode();
return hash;
}
}
| 947 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ExperimentOutputPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import java.io.Serializable;
/**
* The primary key class for the experiment_output database table.
*/
public class ExperimentOutputPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String experimentId;
private String name;
public ExperimentOutputPK() {
}
public String getExperimentId() {
return experimentId;
}
public void setExperimentId(String experimentId) {
this.experimentId = experimentId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ExperimentOutputPK)) {
return false;
}
ExperimentOutputPK castOther = (ExperimentOutputPK) other;
return
this.experimentId.equals(castOther.experimentId)
&& this.name.equals(castOther.name);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.experimentId.hashCode();
hash = hash * prime + this.name.hashCode();
return hash;
}
} | 948 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ExperimentEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import org.apache.airavata.model.experiment.ExperimentType;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
/**
* The persistent class for the experiment database table.
*/
@Entity
@Table(name = "EXPERIMENT")
public class ExperimentEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "EXPERIMENT_ID")
public String experimentId;
@Column(name = "PROJECT_ID")
public String projectId;
@Column(name = "GATEWAY_ID")
public String gatewayId;
@Column(name = "EXPERIMENT_TYPE")
@Enumerated(EnumType.STRING)
public ExperimentType experimentType;
@Column(name = "USER_NAME")
public String userName;
@Column(name = "EXPERIMENT_NAME")
public String experimentName;
@Column(name = "CREATION_TIME")
public Timestamp creationTime;
@Column(name = "DESCRIPTION")
public String description;
@Column(name = "EXECUTION_ID")
public String executionId;
@Column(name = "GATEWAY_EXECUTION_ID")
public String gatewayExecutionId;
@Column(name = "GATEWAY_INSTANCE_ID")
public String gatewayInstanceId;
@Column(name = "ENABLE_EMAIL_NOTIFICATION")
public boolean enableEmailNotification;
@Lob
@Column(name = "EMAIL_ADDRESSES")
public String emailAddresses;
@OneToOne(targetEntity = UserConfigurationDataEntity.class, cascade = CascadeType.ALL,
mappedBy = "experiment", fetch = FetchType.EAGER)
private UserConfigurationDataEntity userConfigurationData;
@OneToMany(targetEntity = ExperimentInputEntity.class, cascade = CascadeType.ALL,
mappedBy = "experiment", fetch = FetchType.EAGER)
private List<ExperimentInputEntity> experimentInputs;
@OneToMany(targetEntity = ExperimentOutputEntity.class, cascade = CascadeType.ALL,
mappedBy = "experiment", fetch = FetchType.EAGER)
private List<ExperimentOutputEntity> experimentOutputs;
@OneToMany(targetEntity = ExperimentStatusEntity.class, cascade = CascadeType.ALL,
mappedBy = "experiment", fetch = FetchType.EAGER)
@OrderBy("timeOfStateChange ASC")
private List<ExperimentStatusEntity> experimentStatus;
@OneToMany(targetEntity = ExperimentErrorEntity.class, cascade = CascadeType.ALL,
mappedBy = "experiment", fetch = FetchType.EAGER)
private List<ExperimentErrorEntity> errors;
@OneToMany(targetEntity = ProcessEntity.class, cascade = CascadeType.ALL,
mappedBy = "experiment", fetch = FetchType.EAGER)
private List<ProcessEntity> processes;
public ExperimentEntity() {
}
public String getExperimentId() {
return experimentId;
}
public void setExperimentId(String experimentId) {
this.experimentId = experimentId;
}
public String getProjectId() {
return projectId;
}
public void setProjectId(String projectId) {
this.projectId = projectId;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public ExperimentType getExperimentType() {
return experimentType;
}
public void setExperimentType(ExperimentType experimentType) {
this.experimentType = experimentType;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getExperimentName() {
return experimentName;
}
public void setExperimentName(String experimentName) {
this.experimentName = experimentName;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getExecutionId() {
return executionId;
}
public void setExecutionId(String executionId) {
this.executionId = executionId;
}
public String getGatewayExecutionId() {
return gatewayExecutionId;
}
public void setGatewayExecutionId(String gatewayExecutionId) {
this.gatewayExecutionId = gatewayExecutionId;
}
public String getGatewayInstanceId() {
return gatewayInstanceId;
}
public void setGatewayInstanceId(String gatewayInstanceId) {
this.gatewayInstanceId = gatewayInstanceId;
}
public boolean isEnableEmailNotification() {
return enableEmailNotification;
}
public void setEnableEmailNotification(boolean enableEmailNotification) {
this.enableEmailNotification = enableEmailNotification;
}
public String getEmailAddresses() {
return emailAddresses;
}
public void setEmailAddresses(String emailAddresses) {
this.emailAddresses = emailAddresses;
}
public UserConfigurationDataEntity getUserConfigurationData() {
return userConfigurationData;
}
public void setUserConfigurationData(UserConfigurationDataEntity userConfiguration) {
this.userConfigurationData = userConfiguration;
}
public List<ExperimentInputEntity> getExperimentInputs() {
return experimentInputs;
}
public void setExperimentInputs(List<ExperimentInputEntity> experimentInputs) {
this.experimentInputs = experimentInputs;
}
public List<ExperimentOutputEntity> getExperimentOutputs() {
return experimentOutputs;
}
public void setExperimentOutputs(List<ExperimentOutputEntity> experimentOutputs) {
this.experimentOutputs = experimentOutputs;
}
public List<ExperimentErrorEntity> getErrors() {
return errors;
}
public void setErrors(List<ExperimentErrorEntity> errors) {
this.errors = errors;
}
public List<ExperimentStatusEntity> getExperimentStatus() {
return experimentStatus;
}
public void setExperimentStatus(List<ExperimentStatusEntity> experimentStatus) {
this.experimentStatus = experimentStatus;
}
public List<ProcessEntity> getProcesses() {
return processes;
}
public void setProcesses(List<ProcessEntity> processes) {
this.processes = processes;
}
}
| 949 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/JobStatusEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import org.apache.airavata.model.status.JobState;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the job_status database table.
*/
@Entity
@Table(name = "JOB_STATUS")
@IdClass(JobStatusPK.class)
public class JobStatusEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "STATUS_ID")
private String statusId;
@Id
@Column(name = "JOB_ID")
private String jobId;
@Id
@Column(name = "TASK_ID")
private String taskId;
@Column(name = "STATE")
@Enumerated(EnumType.STRING)
private JobState jobState;
@Column(name = "TIME_OF_STATE_CHANGE")
private Timestamp timeOfStateChange;
@Lob
@Column(name = "REASON")
private String reason;
@ManyToOne(targetEntity = JobEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumns({
@JoinColumn(name = "JOB_ID", referencedColumnName = "JOB_ID"),
@JoinColumn(name = "TASK_ID", referencedColumnName = "TASK_ID")
})
private JobEntity job;
public JobStatusEntity() {
}
public String getStatusId() {
return statusId;
}
public void setStatusId(String statusId) {
this.statusId = statusId;
}
public String getJobId() {
return jobId;
}
public void setJobId(String jobId) {
this.jobId = jobId;
}
public String getTaskId() {
return taskId;
}
public void setTaskId(String taskId) {
this.taskId = taskId;
}
public JobState getJobState() {
return jobState;
}
public void setJobState(JobState jobState) {
this.jobState = jobState;
}
public Timestamp getTimeOfStateChange() {
return timeOfStateChange;
}
public void setTimeOfStateChange(Timestamp timeOfStateChange) {
this.timeOfStateChange = timeOfStateChange;
}
public String getReason() {
return reason;
}
public void setReason(String reason) {
this.reason = reason;
}
public JobEntity getJob() {
return job;
}
public void setJob(JobEntity job) {
this.job = job;
}
}
| 950 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ExperimentSummaryEntity.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The class for the experiment_summary view.
*/
@Entity
@Table(name = "EXPERIMENT_SUMMARY")
public class ExperimentSummaryEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "EXPERIMENT_ID")
private String experimentId;
@Column(name = "PROJECT_ID")
private String projectId;
@Column(name = "GATEWAY_ID")
private String gatewayId;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "USER_NAME")
private String userName;
@Column(name = "EXPERIMENT_NAME")
private String name;
@Column(name = "DESCRIPTION")
private String description;
@Column(name = "EXECUTION_ID")
private String executionId;
@Column(name = "STATE")
private String experimentStatus;
@Column(name = "RESOURCE_HOST_ID")
private String resourceHostId;
@Column(name = "TIME_OF_STATE_CHANGE")
private Timestamp statusUpdateTime;
public ExperimentSummaryEntity() {
}
public String getExperimentId() {
return experimentId;
}
public void setExperimentId(String experimentId) {
this.experimentId = experimentId;
}
public String getProjectId() {
return projectId;
}
public void setProjectId(String projectId) {
this.projectId = projectId;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getExecutionId() {
return executionId;
}
public void setExecutionId(String executionId) {
this.executionId = executionId;
}
public String getExperimentStatus() {
return experimentStatus;
}
public void setExperimentStatus(String experimentStatus) {
this.experimentStatus = experimentStatus;
}
public String getResourceHostId() {
return resourceHostId;
}
public void setResourceHostId(String resourceHostId) {
this.resourceHostId = resourceHostId;
}
public Timestamp getStatusUpdateTime() {
return statusUpdateTime;
}
public void setStatusUpdateTime(Timestamp statusUpdateTime) {
this.statusUpdateTime = statusUpdateTime;
}
}
| 951 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProjectEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.expcatalog;
import javax.persistence.*;
import java.util.List;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the project database table.
*/
@Entity
@Table(name = "PROJECT")
public class ProjectEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "PROJECT_ID")
private String projectID;
@Column(name = "USER_NAME")
private String owner;
@Column(name = "GATEWAY_ID")
private String gatewayId;
@Column(name = "PROJECT_NAME")
private String name;
@Column(name = "DESCRIPTION")
private String description;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
public ProjectEntity() {
}
public String getProjectID() {
return projectID;
}
public void setProjectID(String projectID) {
this.projectID = projectID;
}
public String getOwner() {
return owner;
}
public void setOwner(String owner) {
this.owner = owner;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
} | 952 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/replicacatalog/DataProductMetadataEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.replicacatalog;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the data_product_metadata database table.
*/
@Entity
@Table(name = "DATA_PRODUCT_METADATA")
@IdClass(DataProductMetadataPK.class)
public class DataProductMetadataEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "PRODUCT_URI")
private String productUri;
@Id
@Column(name = "METADATA_KEY")
private String metadataKey;
@Column(name = "METADATA_VALUE")
private String metadataValue;
public String getProductUri() {
return productUri;
}
public void setProductUri(String productUri) {
this.productUri = productUri;
}
public String getMetadataKey() {
return metadataKey;
}
public void setMetadataKey(String metadataKey) {
this.metadataKey = metadataKey;
}
public String getMetadataValue() {
return metadataValue;
}
public void setMetadataValue(String metadataValue) {
this.metadataValue = metadataValue;
}
}
| 953 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/replicacatalog/ConfigurationPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.replicacatalog;
import java.io.Serializable;
/**
* The primary key class for the configuration database table.
*/
public class ConfigurationPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String configKey;
private String configVal;
public ConfigurationPK() {
}
public String getConfigKey() {
return configKey;
}
public void setConfigKey(String configKey) {
this.configKey = configKey;
}
public String getConfigVal() {
return configVal;
}
public void setConfigVal(String configVal) {
this.configVal = configVal;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ConfigurationPK)) {
return false;
}
ConfigurationPK castOther = (ConfigurationPK) other;
return
this.configKey.equals(castOther.configKey)
&& this.configVal.equals(castOther.configVal);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.configKey.hashCode();
hash = hash * prime + this.configVal.hashCode();
return hash;
}
}
| 954 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/replicacatalog/DataReplicaMetadataPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.replicacatalog;
import java.io.Serializable;
/**
* The primary key class for the data_replica_metadata database table.
*/
public class DataReplicaMetadataPK implements Serializable {
private static final long serialVersionUID = 1L;
private String replicaId;
private String metadataKey;
public DataReplicaMetadataPK() {
}
public String getReplicaId() {
return replicaId;
}
public void setReplicaId(String replicaId) {
this.replicaId = replicaId;
}
public String getMetadataKey() {
return metadataKey;
}
public void setMetadataKey(String metadataKey) {
this.metadataKey = metadataKey;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof DataReplicaMetadataPK)) {
return false;
}
DataReplicaMetadataPK castOther = (DataReplicaMetadataPK) other;
return
this.replicaId.equals(castOther.replicaId)
&& this.metadataKey.equals(castOther.metadataKey);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.replicaId.hashCode();
hash = hash * prime + this.metadataKey.hashCode();
return hash;
}
}
| 955 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/replicacatalog/DataProductMetadataPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.replicacatalog;
import java.io.Serializable;
/**
* The primary key class for the data_product_metadata database table.
*/
public class DataProductMetadataPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String productUri;
private String metadataKey;
public DataProductMetadataPK() {
}
public String getProductUri() {
return productUri;
}
public void setProductUri(String productUri) {
this.productUri = productUri;
}
public String getMetadataKey() {
return metadataKey;
}
public void setMetadataKey(String metadataKey) {
this.metadataKey = metadataKey;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof DataProductMetadataPK)) {
return false;
}
DataProductMetadataPK castOther = (DataProductMetadataPK) other;
return
this.productUri.equals(castOther.productUri)
&& this.metadataKey.equals(castOther.metadataKey);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.productUri.hashCode();
hash = hash * prime + this.metadataKey.hashCode();
return hash;
}
}
| 956 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/replicacatalog/DataProductEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.replicacatalog;
import org.apache.airavata.model.data.replica.DataProductType;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
import java.util.Map;
/**
* The persistent class for the data_product database table.
*/
@Entity
@Table(name = "DATA_PRODUCT")
public class DataProductEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "PRODUCT_URI")
private String productUri;
@Column(name = "GATEWAY_ID")
private String gatewayId;
@Lob
@Column(name = "PRODUCT_NAME")
private String productName;
@Column(name = "PRODUCT_DESCRIPTION")
private String productDescription;
@Column(name = "OWNER_NAME")
private String ownerName;
@Column(name = "PARENT_PRODUCT_URI")
private String parentProductUri;
@Column(name = "PRODUCT_SIZE")
private int productSize;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "LAST_MODIFIED_TIME")
private Timestamp lastModifiedTime;
@Column(name = "PRODUCT_TYPE")
@Enumerated(EnumType.STRING)
private DataProductType dataProductType;
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(name="DATA_PRODUCT_METADATA", joinColumns = @JoinColumn(name="PRODUCT_URI"))
@MapKeyColumn(name = "METADATA_KEY")
@Column(name = "METADATA_VALUE")
private Map<String, String> productMetadata;
@OneToMany(targetEntity = DataReplicaLocationEntity.class, cascade = CascadeType.ALL,
mappedBy = "dataProduct", fetch = FetchType.EAGER)
private List<DataReplicaLocationEntity> replicaLocations;
public String getProductUri() {
return productUri;
}
public void setProductUri(String productUri) {
this.productUri = productUri;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getProductDescription() {
return productDescription;
}
public void setProductDescription(String productDescription) {
this.productDescription = productDescription;
}
public String getOwnerName() {
return ownerName;
}
public void setOwnerName(String ownerName) {
this.ownerName = ownerName;
}
public String getParentProductUri() {
return parentProductUri;
}
public void setParentProductUri(String parentProductUri) {
this.parentProductUri = parentProductUri;
}
public int getProductSize() {
return productSize;
}
public void setProductSize(int productSize) {
this.productSize = productSize;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public Timestamp getLastModifiedTime() {
return lastModifiedTime;
}
public void setLastModifiedTime(Timestamp lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
}
public DataProductType getDataProductType() {
return dataProductType;
}
public void setDataProductType(DataProductType dataProductType) {
this.dataProductType = dataProductType;
}
public Map<String, String> getProductMetadata() { return productMetadata; }
public void setProductMetadata(Map<String, String> productMetadata) { this.productMetadata = productMetadata; }
public List<DataReplicaLocationEntity> getReplicaLocations() {
return replicaLocations;
}
public void setReplicaLocations(List<DataReplicaLocationEntity> replicaLocations) {
this.replicaLocations = replicaLocations;
}
}
| 957 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/replicacatalog/ConfigurationEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.replicacatalog;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the configuration database table.
*/
@Entity
@Table(name = "CONFIGURATION")
@IdClass(ConfigurationPK.class)
public class ConfigurationEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "CONFIG_KEY")
private String configKey;
@Id
@Column(name = "CONFIG_VAL")
private String configVal;
public String getConfigKey() {
return configKey;
}
public void setConfigKey(String configKey) {
this.configKey = configKey;
}
public String getConfigVal() {
return configVal;
}
public void setConfigVal(String configVal) {
this.configVal = configVal;
}
}
| 958 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/replicacatalog/DataReplicaLocationEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.replicacatalog;
import org.apache.airavata.model.data.replica.ReplicaLocationCategory;
import org.apache.airavata.model.data.replica.ReplicaPersistentType;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Map;
/**
* The persistent class for the data_replica_location database table.
*/
@Entity
@Table(name = "DATA_REPLICA_LOCATION")
public class DataReplicaLocationEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "REPLICA_ID")
private String replicaId;
@Column(name = "PRODUCT_URI")
private String productUri;
@Lob
@Column(name = "REPLICA_NAME")
private String replicaName;
@Column(name = "REPLICA_DESCRIPTION")
private String replicaDescription;
@Column(name = "STORAGE_RESOURCE_ID")
private String storageResourceId;
@Column(name = "FILE_PATH")
private String filePath;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "LAST_MODIFIED_TIME")
private Timestamp lastModifiedTime;
@Column(name = "VALID_UNTIL_TIME")
private Timestamp validUntilTime;
@Column(name = "REPLICA_LOCATION_CATEGORY")
@Enumerated(EnumType.STRING)
private ReplicaLocationCategory replicaLocationCategory;
@Column(name = "REPLICA_PERSISTENT_TYPE")
@Enumerated(EnumType.STRING)
private ReplicaPersistentType replicaPersistentType;
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(name="DATA_REPLICA_METADATA", joinColumns = @JoinColumn(name="REPLICA_ID"))
@MapKeyColumn(name = "METADATA_KEY")
@Column(name = "METADATA_VALUE")
private Map<String, String> replicaMetadata;
@ManyToOne(targetEntity = DataProductEntity.class)
@JoinColumn(name = "PRODUCT_URI", nullable = false, updatable = false)
private DataProductEntity dataProduct;
public String getReplicaId() {
return replicaId;
}
public void setReplicaId(String replicaId) {
this.replicaId = replicaId;
}
public String getProductUri() {
return productUri;
}
public void setProductUri(String productUri) {
this.productUri = productUri;
}
public String getReplicaName() {
return replicaName;
}
public void setReplicaName(String replicaName) {
this.replicaName = replicaName;
}
public String getReplicaDescription() {
return replicaDescription;
}
public void setReplicaDescription(String replicaDescription) {
this.replicaDescription = replicaDescription;
}
public String getStorageResourceId() {
return storageResourceId;
}
public void setStorageResourceId(String storageResourceId) {
this.storageResourceId = storageResourceId;
}
public String getFilePath() {
return filePath;
}
public void setFilePath(String filePath) {
this.filePath = filePath;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public Timestamp getLastModifiedTime() {
return lastModifiedTime;
}
public void setLastModifiedTime(Timestamp lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
}
public Timestamp getValidUntilTime() {
return validUntilTime;
}
public void setValidUntilTime(Timestamp validUntilTime) {
this.validUntilTime = validUntilTime;
}
public ReplicaLocationCategory getReplicaLocationCategory() {
return replicaLocationCategory;
}
public void setReplicaLocationCategory(ReplicaLocationCategory replicaLocationCategory) {
this.replicaLocationCategory = replicaLocationCategory;
}
public ReplicaPersistentType getReplicaPersistentType() {
return replicaPersistentType;
}
public void setReplicaPersistentType(ReplicaPersistentType replicaPersistentType) {
this.replicaPersistentType = replicaPersistentType;
}
public Map<String, String> getReplicaMetadata() {
return replicaMetadata;
}
public void setReplicaMetadata(Map<String, String> replicaMetadata) {
this.replicaMetadata = replicaMetadata;
}
public DataProductEntity getDataProduct() {
return dataProduct;
}
public void setDataProduct(DataProductEntity dataProduct) {
this.dataProduct = dataProduct;
}
}
| 959 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/replicacatalog/DataReplicaMetadataEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.replicacatalog;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the data_replica_metadata database table.
*/
@Entity
@Table(name = "DATA_REPLICA_METADATA")
@IdClass(DataReplicaMetadataPK.class)
public class DataReplicaMetadataEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "REPLICA_ID")
private String replicaId;
@Id
@Column(name = "METADATA_KEY")
private String metadataKey;
@Column(name = "METADATA_VALUE")
private String metadataValue;
public String getReplicaId() {
return replicaId;
}
public void setReplicaId(String replicaId) {
this.replicaId = replicaId;
}
public String getMetadataKey() {
return metadataKey;
}
public void setMetadataKey(String metadataKey) {
this.metadataKey = metadataKey;
}
public String getMetadataValue() {
return metadataValue;
}
public void setMetadataValue(String metadataValue) {
this.metadataValue = metadataValue;
}
}
| 960 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ComputeResourceReservationEntity.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.apache.openjpa.persistence.jdbc.ForeignKey;
import org.apache.openjpa.persistence.jdbc.ForeignKeyAction;
/**
* The persistent class for the COMPUTE_RESOURCE_RESERVATION database table.
*/
@Entity
@Table(name = "COMPUTE_RESOURCE_RESERVATION")
public class ComputeResourceReservationEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "RESERVATION_ID")
private String reservationId;
@Column(name = "RESERVATION_NAME", nullable = false)
private String reservationName;
@Column(name = "START_TIME", nullable = false)
private Timestamp startTime;
@Column(name = "END_TIME", nullable = false)
private Timestamp endTime;
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(name="COMPUTE_RESOURCE_RESERVATION_QUEUE", joinColumns = @JoinColumn(name="RESERVATION_ID"))
@Column(name = "QUEUE_NAME", nullable = false)
private List<String> queueNames;
// TODO: FK queue table to BatchQueueEntity?
@ManyToOne(targetEntity = GroupComputeResourcePrefEntity.class)
@JoinColumns({
@JoinColumn(name = "RESOURCE_ID", referencedColumnName = "RESOURCE_ID", nullable = false, updatable = false),
@JoinColumn(name = "GROUP_RESOURCE_PROFILE_ID", referencedColumnName = "GROUP_RESOURCE_PROFILE_ID", nullable = false, updatable = false)
})
@ForeignKey(deleteAction = ForeignKeyAction.CASCADE)
private GroupComputeResourcePrefEntity groupComputeResourcePref;
public ComputeResourceReservationEntity() {
}
public String getReservationId() {
return reservationId;
}
public void setReservationId(String reservationId) {
this.reservationId = reservationId;
}
public String getReservationName() {
return reservationName;
}
public void setReservationName(String reservationName) {
this.reservationName = reservationName;
}
public Timestamp getStartTime() {
return startTime;
}
public void setStartTime(Timestamp startTime) {
this.startTime = startTime;
}
public Timestamp getEndTime() {
return endTime;
}
public void setEndTime(Timestamp endTime) {
this.endTime = endTime;
}
public List<String> getQueueNames() {
return queueNames;
}
public void setQueueNames(List<String> queueNames) {
this.queueNames = queueNames;
}
public GroupComputeResourcePrefEntity getGroupComputeResourcePref() {
return groupComputeResourcePref;
}
public void setGroupComputeResourcePref(GroupComputeResourcePrefEntity groupComputeResourcePref) {
this.groupComputeResourcePref = groupComputeResourcePref;
}
}
| 961 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GsisshExportPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the gsissh_export database table.
*
*/
public class GsisshExportPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String submissionId;
private String export;
public GsisshExportPK() {
}
public String getSubmissionId() {
return submissionId;
}
public void setSubmissionId(String submissionId) {
this.submissionId = submissionId;
}
public String getExport() {
return export;
}
public void setExport(String export) {
this.export = export;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof GsisshExportPK)) {
return false;
}
GsisshExportPK castOther = (GsisshExportPK)other;
return
this.submissionId.equals(castOther.submissionId)
&& this.export.equals(castOther.export);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.submissionId.hashCode();
hash = hash * prime + this.export.hashCode();
return hash;
}
} | 962 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ModuleLoadCmdEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.openjpa.persistence.jdbc.ForeignKey;
import org.apache.openjpa.persistence.jdbc.ForeignKeyAction;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the module_load_cmd database table.
*/
@Entity
@Table(name = "MODULE_LOAD_CMD")
@IdClass(ModuleLoadCmdPK.class)
public class ModuleLoadCmdEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "APP_DEPLOYMENT_ID")
private String appdeploymentId;
@Id
@Column(name = "CMD")
private String command;
@Column(name = "COMMAND_ORDER")
private int commandOrder;
@ManyToOne(targetEntity = ApplicationDeploymentEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "APP_DEPLOYMENT_ID")
@ForeignKey(deleteAction = ForeignKeyAction.CASCADE)
private ApplicationDeploymentEntity applicationDeployment;
public ModuleLoadCmdEntity() {
}
public String getAppdeploymentId() {
return appdeploymentId;
}
public void setAppdeploymentId(String appdeploymentId) {
this.appdeploymentId = appdeploymentId;
}
public String getCommand() {
return command;
}
public void setCommand(String command) {
this.command = command;
}
public int getCommandOrder() {
return commandOrder;
}
public void setCommandOrder(int commandOrder) {
this.commandOrder = commandOrder;
}
public ApplicationDeploymentEntity getApplicationDeployment() {
return applicationDeployment;
}
public void setApplicationDeployment(ApplicationDeploymentEntity applicationDeployment) {
this.applicationDeployment = applicationDeployment;
}
}
| 963 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/LibraryPrependPathPK.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
public class LibraryPrependPathPK implements Serializable {
// default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String deploymentId;
private String name;
public String getDeploymentId() {
return deploymentId;
}
public void setDeploymentId(String deploymentId) {
this.deploymentId = deploymentId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof LibraryPrependPathPK)) return false;
LibraryPrependPathPK that = (LibraryPrependPathPK) o;
if (!deploymentId.equals(that.deploymentId)) return false;
return name.equals(that.name);
}
@Override
public int hashCode() {
int result = deploymentId.hashCode();
result = 31 * result + name.hashCode();
return result;
}
}
| 964 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ComputeResourceFileSystemPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.appcatalog.computeresource.FileSystems;
import java.io.Serializable;
/**
* The primary key class for the compute_resource_file_system database table.
*
*/
public class ComputeResourceFileSystemPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String computeResourceId;
private FileSystems fileSystem;
public ComputeResourceFileSystemPK() {
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public FileSystems getFileSystem() {
return fileSystem;
}
public void setFileSystem(FileSystems fileSystem) {
this.fileSystem = fileSystem;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ComputeResourceFileSystemPK)) {
return false;
}
ComputeResourceFileSystemPK castOther = (ComputeResourceFileSystemPK)other;
return
this.computeResourceId.equals(castOther.computeResourceId)
&& this.fileSystem.equals(castOther.fileSystem);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.computeResourceId.hashCode();
hash = hash * prime + this.fileSystem.hashCode();
return hash;
}
} | 965 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GsisshPostjobcommandPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the gsissh_postjobcommand database table.
*
*/
public class GsisshPostjobcommandPK implements Serializable {
// default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String submissionId;
private String command;
public GsisshPostjobcommandPK() {
}
public String getSubmissionId() {
return submissionId;
}
public void setSubmissionId(String submissionId) {
this.submissionId = submissionId;
}
public String getCommand() {
return command;
}
public void setCommand(String command) {
this.command = command;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof GsisshPostjobcommandPK)) {
return false;
}
GsisshPostjobcommandPK castOther = (GsisshPostjobcommandPK) other;
return this.submissionId.equals(castOther.submissionId) && this.command.equals(castOther.command);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.submissionId.hashCode();
hash = hash * prime + this.command.hashCode();
return hash;
}
} | 966 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/AppEnvironmentPK.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
public class AppEnvironmentPK implements Serializable {
// default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String deploymentId;
private String name;
public AppEnvironmentPK() {
}
public String getDeploymentId() {
return deploymentId;
}
public void setDeploymentId(String deploymentId) {
this.deploymentId = deploymentId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof AppEnvironmentPK)) return false;
AppEnvironmentPK that = (AppEnvironmentPK) o;
if (!deploymentId.equals(that.deploymentId)) return false;
return name.equals(that.name);
}
@Override
public int hashCode() {
int result = deploymentId.hashCode();
result = 31 * result + name.hashCode();
return result;
}
}
| 967 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GsisshPrejobcommandPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the gsissh_prejobcommand database table.
*
*/
public class GsisshPrejobcommandPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String submissionId;
private String command;
public GsisshPrejobcommandPK() {
}
public String getSubmissionId() {
return submissionId;
}
public void setSubmissionId(String submissionId) {
this.submissionId = submissionId;
}
public String getCommand() {
return command;
}
public void setCommand(String command) {
this.command = command;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof GsisshPrejobcommandPK)) {
return false;
}
GsisshPrejobcommandPK castOther = (GsisshPrejobcommandPK)other;
return
this.submissionId.equals(castOther.submissionId)
&& this.command.equals(castOther.command);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.submissionId.hashCode();
hash = hash * prime + this.command.hashCode();
return hash;
}
} | 968 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/AppModuleMappingEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the app_module_mapping database table.
*
*/
@Entity
@Table(name="APP_MODULE_MAPPING")
@IdClass(AppModuleMappingPK.class)
public class AppModuleMappingEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name="INTERFACE_ID")
private String interfaceId;
@Id
@Column(name="MODULE_ID")
private String moduleId;
@ManyToOne(targetEntity = ApplicationInterfaceEntity.class)
@JoinColumn(name = "INTERFACE_ID")
private ApplicationInterfaceEntity applicationInterface;
@ManyToOne(targetEntity = ApplicationModuleEntity.class)
@JoinColumn(name = "MODULE_ID")
private ApplicationModuleEntity applicationModule;
public AppModuleMappingEntity() {
}
public String getInterfaceId() {
return interfaceId;
}
public void setInterfaceId(String interfaceId) {
this.interfaceId = interfaceId;
}
public String getModuleId() {
return moduleId;
}
public void setModuleId(String moduleId) {
this.moduleId = moduleId;
}
public ApplicationInterfaceEntity getApplicationInterface() {
return applicationInterface;
}
public void setApplicationInterface(ApplicationInterfaceEntity applicationInterface) {
this.applicationInterface = applicationInterface;
}
public ApplicationModuleEntity getApplicationModule() {
return applicationModule;
}
public void setApplicationModule(ApplicationModuleEntity applicationModule) {
this.applicationModule = applicationModule;
}
} | 969 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GroupResourceProfileEntity.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.List;
/**
* The persistent class for the group_resource_profile database table.
*/
@Entity
@Table(name = "GROUP_RESOURCE_PROFILE")
public class GroupResourceProfileEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "GROUP_RESOURCE_PROFILE_ID")
private String groupResourceProfileId;
@Column(name = "GATEWAY_ID")
private String gatewayId;
@Column(name = "GROUP_RESOURCE_PROFILE_NAME")
private String groupResourceProfileName;
// TODO: change these timestamp to actual Timestamp
@Column(name = "CREATION_TIME", updatable = false)
private Long creationTime;
@Column(name = "UPDATE_TIME")
private Long updatedTime;
@Column(name = "DEFAULT_CREDENTIAL_STORE_TOKEN")
private String defaultCredentialStoreToken;
@OneToMany(targetEntity = GroupComputeResourcePrefEntity.class, cascade = CascadeType.ALL,
mappedBy = "groupResourceProfile", fetch = FetchType.EAGER, orphanRemoval = true)
private List<GroupComputeResourcePrefEntity> computePreferences;
@OneToMany(targetEntity = ComputeResourcePolicyEntity.class, cascade = CascadeType.ALL,
mappedBy = "groupResourceProfile", fetch = FetchType.EAGER, orphanRemoval = true)
private List<ComputeResourcePolicyEntity> computeResourcePolicies;
@OneToMany(targetEntity = BatchQueueResourcePolicyEntity.class, cascade = CascadeType.ALL,
mappedBy = "groupResourceProfile", fetch = FetchType.EAGER, orphanRemoval = true)
private List<BatchQueueResourcePolicyEntity> batchQueueResourcePolicies;
public GroupResourceProfileEntity() {
}
public String getGroupResourceProfileId() {
return groupResourceProfileId;
}
public void setGroupResourceProfileId(String groupResourceProfileId) {
this.groupResourceProfileId = groupResourceProfileId;
}
public String getGroupResourceProfileName() {
return groupResourceProfileName;
}
public void setGroupResourceProfileName(String groupResourceProfileName) {
this.groupResourceProfileName = groupResourceProfileName;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public Long getCreationTime() {
return creationTime;
}
public void setCreationTime(Long creationTime) {
this.creationTime = creationTime;
}
public Long getUpdatedTime() {
return updatedTime;
}
public void setUpdatedTime(Long updatedTime) {
this.updatedTime = updatedTime;
}
public String getDefaultCredentialStoreToken() {
return defaultCredentialStoreToken;
}
public void setDefaultCredentialStoreToken(String defaultCredentialStoreToken) {
this.defaultCredentialStoreToken = defaultCredentialStoreToken;
}
public List<GroupComputeResourcePrefEntity> getComputePreferences() {
return computePreferences;
}
public void setComputePreferences(List<GroupComputeResourcePrefEntity> computePreferences) {
this.computePreferences = computePreferences;
}
public List<ComputeResourcePolicyEntity> getComputeResourcePolicies() {
return computeResourcePolicies;
}
public void setComputeResourcePolicies(List<ComputeResourcePolicyEntity> computeResourcePolicies) {
this.computeResourcePolicies = computeResourcePolicies;
}
public List<BatchQueueResourcePolicyEntity> getBatchQueueResourcePolicies() {
return batchQueueResourcePolicies;
}
public void setBatchQueueResourcePolicies(List<BatchQueueResourcePolicyEntity> batchQueueResourcePolicies) {
this.batchQueueResourcePolicies = batchQueueResourcePolicies;
}
}
| 970 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ComputeResourcePreferenceEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.appcatalog.computeresource.JobSubmissionProtocol;
import org.apache.airavata.model.data.movement.DataMovementProtocol;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
/**
* The persistent class for the compute_resource_preference database table.
*/
@Entity
@Table(name = "COMPUTE_RESOURCE_PREFERENCE")
@IdClass(ComputeResourcePreferencePK.class)
public class ComputeResourcePreferenceEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Column(name = "GATEWAY_ID")
@Id
private String gatewayId;
@Column(name = "RESOURCE_ID")
@Id
private String computeResourceId;
@Column(name = "ALLOCATION_PROJECT_NUMBER")
private String allocationProjectNumber;
@Column(name = "LOGIN_USERNAME")
private String loginUserName;
@Column(name = "OVERRIDE_BY_AIRAVATA")
private boolean overridebyAiravata;
@Column(name = "PREFERED_BATCH_QUEUE")
private String preferredBatchQueue;
@Column(name = "PREFERED_DATA_MOVE_PROTOCOL")
@Enumerated(EnumType.STRING)
private DataMovementProtocol preferredDataMovementProtocol;
@Column(name = "PREFERED_JOB_SUB_PROTOCOL")
@Enumerated(EnumType.STRING)
private JobSubmissionProtocol preferredJobSubmissionProtocol;
@Column(name = "QUALITY_OF_SERVICE")
private String qualityOfService;
@Column(name = "RESERVATION")
private String reservation;
@Column(name = "RESERVATION_END_TIME")
private Timestamp reservationEndTime;
@Column(name = "RESERVATION_START_TIME")
private Timestamp reservationStartTime;
@Column(name = "RESOURCE_CS_TOKEN")
private String resourceSpecificCredentialStoreToken;
@Column(name = "SCRATCH_LOCATION")
private String scratchLocation;
@Column(name = "USAGE_REPORTING_GATEWAY_ID")
private String usageReportingGatewayId;
@Column(name = "SSH_ACCOUNT_PROVISIONER")
private String sshAccountProvisioner;
@Column(name = "SSH_ACCOUNT_PROVISIONER_ADDITIONAL_INFO")
private String sshAccountProvisionerAdditionalInfo;
@OneToMany(targetEntity = SSHAccountProvisionerConfiguration.class, mappedBy = "computeResourcePreference", cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true)
private List<SSHAccountProvisionerConfiguration> sshAccountProvisionerConfigurations;
@ManyToOne(targetEntity = GatewayProfileEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "GATEWAY_ID")
private GatewayProfileEntity gatewayProfileResource;
public ComputeResourcePreferenceEntity() {
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public String getAllocationProjectNumber() {
return allocationProjectNumber;
}
public void setAllocationProjectNumber(String allocationProjectNumber) {
this.allocationProjectNumber = allocationProjectNumber;
}
public String getQualityOfService() {
return qualityOfService;
}
public void setQualityOfService(String qualityOfService) {
this.qualityOfService = qualityOfService;
}
public String getReservation() {
return reservation;
}
public void setReservation(String reservation) {
this.reservation = reservation;
}
public Timestamp getReservationEndTime() {
return reservationEndTime;
}
public void setReservationEndTime(Timestamp reservationEndTime) {
this.reservationEndTime = reservationEndTime;
}
public Timestamp getReservationStartTime() {
return reservationStartTime;
}
public void setReservationStartTime(Timestamp reservationStartTime) {
this.reservationStartTime = reservationStartTime;
}
public String getScratchLocation() {
return scratchLocation;
}
public void setScratchLocation(String scratchLocation) {
this.scratchLocation = scratchLocation;
}
public String getUsageReportingGatewayId() {
return usageReportingGatewayId;
}
public void setUsageReportingGatewayId(String usageReportingGatewayId) {
this.usageReportingGatewayId = usageReportingGatewayId;
}
public String getSshAccountProvisioner() {
return sshAccountProvisioner;
}
public void setSshAccountProvisioner(String sshAccountProvisioner) {
this.sshAccountProvisioner = sshAccountProvisioner;
}
public String getSshAccountProvisionerAdditionalInfo() {
return sshAccountProvisionerAdditionalInfo;
}
public void setSshAccountProvisionerAdditionalInfo(String sshAccountProvisionerAdditionalInfo) {
this.sshAccountProvisionerAdditionalInfo = sshAccountProvisionerAdditionalInfo;
}
public GatewayProfileEntity getGatewayProfileResource() {
return gatewayProfileResource;
}
public void setGatewayProfileResource(GatewayProfileEntity gatewayProfileResource) {
this.gatewayProfileResource = gatewayProfileResource;
}
public String getLoginUserName() {
return loginUserName;
}
public void setLoginUserName(String loginUserName) {
this.loginUserName = loginUserName;
}
public boolean isOverridebyAiravata() {
return overridebyAiravata;
}
public void setOverridebyAiravata(boolean overridebyAiravata) {
this.overridebyAiravata = overridebyAiravata;
}
public String getPreferredBatchQueue() {
return preferredBatchQueue;
}
public void setPreferredBatchQueue(String preferredBatchQueue) {
this.preferredBatchQueue = preferredBatchQueue;
}
public DataMovementProtocol getPreferredDataMovementProtocol() {
return preferredDataMovementProtocol;
}
public void setPreferredDataMovementProtocol(DataMovementProtocol preferredDataMovementProtocol) {
this.preferredDataMovementProtocol = preferredDataMovementProtocol;
}
public JobSubmissionProtocol getPreferredJobSubmissionProtocol() {
return preferredJobSubmissionProtocol;
}
public void setPreferredJobSubmissionProtocol(JobSubmissionProtocol preferredJobSubmissionProtocol) {
this.preferredJobSubmissionProtocol = preferredJobSubmissionProtocol;
}
public String getResourceSpecificCredentialStoreToken() {
return resourceSpecificCredentialStoreToken;
}
public void setResourceSpecificCredentialStoreToken(String resourceSpecificCredentialStoreToken) {
this.resourceSpecificCredentialStoreToken = resourceSpecificCredentialStoreToken;
}
public List<SSHAccountProvisionerConfiguration> getSshAccountProvisionerConfigurations() {
return sshAccountProvisionerConfigurations;
}
public void setSshAccountProvisionerConfigurations(List<SSHAccountProvisionerConfiguration> sshAccountProvisionerConfigurations) {
this.sshAccountProvisionerConfigurations = sshAccountProvisionerConfigurations;
}
}
| 971 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/BatchQueuePK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the batch_queue database table.
*
*/
public class BatchQueuePK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String computeResourceId;
private String queueName;
public BatchQueuePK() {
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public String getQueueName() {
return queueName;
}
public void setQueueName(String queueName) {
this.queueName = queueName;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof BatchQueuePK)) {
return false;
}
BatchQueuePK castOther = (BatchQueuePK)other;
return
this.computeResourceId.equals(castOther.computeResourceId)
&& this.queueName.equals(castOther.queueName);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.computeResourceId.hashCode();
hash = hash * prime + this.queueName.hashCode();
return hash;
}
} | 972 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/PostjobCommandPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the postjob_command database table.
*/
public class PostjobCommandPK implements Serializable {
// default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String appdeploymentId;
private String command;
public PostjobCommandPK() {
}
public String getAppdeploymentId() {
return appdeploymentId;
}
public void setAppdeploymentId(String appdeploymentId) {
this.appdeploymentId = appdeploymentId;
}
public String getCommand() {
return command;
}
public void setCommand(String command) {
this.command = command;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof PostjobCommandPK)) {
return false;
}
PostjobCommandPK castOther = (PostjobCommandPK) other;
return this.appdeploymentId.equals(castOther.appdeploymentId) && this.command.equals(castOther.command);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.appdeploymentId.hashCode();
hash = hash * prime + this.command.hashCode();
return hash;
}
} | 973 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/PrejobCommandEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.openjpa.persistence.jdbc.ForeignKey;
import org.apache.openjpa.persistence.jdbc.ForeignKeyAction;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the prejob_command database table.
*/
@Entity
@Table(name = "PREJOB_COMMAND")
@IdClass(PrejobCommandPK.class)
public class PrejobCommandEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "APPDEPLOYMENT_ID")
private String appdeploymentId;
@Id
@Column(name = "COMMAND")
private String command;
@Column(name = "COMMAND_ORDER")
private int commandOrder;
@ManyToOne(targetEntity = ApplicationDeploymentEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "APPDEPLOYMENT_ID")
@ForeignKey(deleteAction = ForeignKeyAction.CASCADE)
private ApplicationDeploymentEntity applicationDeployment;
public PrejobCommandEntity() {
}
public String getAppdeploymentId() {
return appdeploymentId;
}
public void setAppdeploymentId(String appdeploymentId) {
this.appdeploymentId = appdeploymentId;
}
public String getCommand() {
return command;
}
public void setCommand(String command) {
this.command = command;
}
public int getCommandOrder() { return commandOrder; }
public void setCommandOrder(int commandOrder) { this.commandOrder = commandOrder; }
public ApplicationDeploymentEntity getApplicationDeployment() {
return applicationDeployment;
}
public void setApplicationDeployment(ApplicationDeploymentEntity applicationDeployment) {
this.applicationDeployment = applicationDeployment;
}
} | 974 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GatewayGroupsEntity.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
@Entity
@Table(name = "GATEWAY_GROUPS")
public class GatewayGroupsEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "GATEWAY_ID")
private String gatewayId;
@Column(name = "ADMINS_GROUP_ID")
private String adminsGroupId;
@Column(name = "READ_ONLY_ADMINS_GROUP_ID")
private String readOnlyAdminsGroupId;
@Column(name = "DEFAULT_GATEWAY_USERS_GROUP_ID")
private String defaultGatewayUsersGroupId;
public GatewayGroupsEntity() {
}
public GatewayGroupsEntity(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getAdminsGroupId() {
return adminsGroupId;
}
public void setAdminsGroupId(String adminsGroupId) {
this.adminsGroupId = adminsGroupId;
}
public String getReadOnlyAdminsGroupId() {
return readOnlyAdminsGroupId;
}
public void setReadOnlyAdminsGroupId(String readOnlyAdminsGroupId) {
this.readOnlyAdminsGroupId = readOnlyAdminsGroupId;
}
public String getDefaultGatewayUsersGroupId() {
return defaultGatewayUsersGroupId;
}
public void setDefaultGatewayUsersGroupId(String defaultGatewayUsersGroupId) {
this.defaultGatewayUsersGroupId = defaultGatewayUsersGroupId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof GatewayGroupsEntity)) return false;
GatewayGroupsEntity that = (GatewayGroupsEntity) o;
return gatewayId.equals(that.gatewayId);
}
@Override
public int hashCode() {
return gatewayId.hashCode();
}
}
| 975 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ParserConnectorInputEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Table(name = "PARSER_CONNECTOR_INPUT")
public class ParserConnectorInputEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "PARSER_CONNECTOR_INPUT_ID")
private String id;
@Column(name = "PARSER_INPUT_ID")
private String inputId;
@Column(name = "PARSER_OUTPUT_ID")
private String parentOutputId;
@Column(name = "VALUE")
private String value;
@Column(name = "PARSER_CONNECTOR_ID")
private String parserConnectorId;
@ManyToOne(targetEntity = ParserInputEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "PARSER_INPUT_ID")
private ParserInputEntity input;
@ManyToOne(targetEntity = ParserOutputEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "PARSER_OUTPUT_ID")
private ParserOutputEntity output;
@ManyToOne(targetEntity = ParserConnectorEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "PARSER_CONNECTOR_ID")
private ParserConnectorEntity parserConnector;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getInputId() {
return inputId;
}
public void setInputId(String inputId) {
this.inputId = inputId;
}
public String getParentOutputId() {
return parentOutputId;
}
public void setParentOutputId(String parentOutputId) {
this.parentOutputId = parentOutputId;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getParserConnectorId() {
return parserConnectorId;
}
public void setParserConnectorId(String parserConnectorId) {
this.parserConnectorId = parserConnectorId;
}
public ParserInputEntity getInput() {
return input;
}
public void setInput(ParserInputEntity input) {
this.input = input;
}
public ParserOutputEntity getOutput() {
return output;
}
public void setOutput(ParserOutputEntity output) {
this.output = output;
}
public ParserConnectorEntity getParserConnector() {
return parserConnector;
}
public void setParserConnector(ParserConnectorEntity parserConnector) {
this.parserConnector = parserConnector;
}
}
| 976 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ParallelismCommandEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.parallelism.ApplicationParallelismType;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the parallelism_command database table.
*/
@Entity
@Table(name = "PARALLELISM_COMMAND")
@IdClass(ParallelismCommandPK.class)
public class ParallelismCommandEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "RESOURCE_JOB_MANAGER_ID")
private String resourceJobManagerId;
@Id
@Column(name = "COMMAND_TYPE")
@Enumerated(EnumType.STRING)
private ApplicationParallelismType commandType;
@Column(name = "COMMAND")
private String command;
@ManyToOne(cascade= CascadeType.MERGE)
@JoinColumn(name = "RESOURCE_JOB_MANAGER_ID")
private ResourceJobManagerEntity resourceJobManager;
public ParallelismCommandEntity() {
}
public String getResourceJobManagerId() {
return resourceJobManagerId;
}
public void setResourceJobManagerId(String resourceJobManagerId) {
this.resourceJobManagerId = resourceJobManagerId;
}
public ApplicationParallelismType getCommandType() {
return commandType;
}
public void setCommandType(ApplicationParallelismType commandType) {
this.commandType = commandType;
}
public String getCommand() {
return command;
}
public void setCommand(String command) {
this.command = command;
}
public ResourceJobManagerEntity getResourceJobManager() {
return resourceJobManager;
}
public void setResourceJobManager(ResourceJobManagerEntity resourceJobManager) {
this.resourceJobManager = resourceJobManager;
}
} | 977 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/SSHAccountProvisionerConfiguration.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
/**
* The persistent class for the ssh_account_provisioner_config database table.
*
*/
@Entity
@Table(name = "SSH_ACCOUNT_PROVISIONER_CONFIG")
@IdClass(SSHAccountProvisionerConfigurationPK.class)
public class SSHAccountProvisionerConfiguration {
@Id
@Column(name = "GATEWAY_ID")
private String gatewayId;
@Id
@Column(name = "RESOURCE_ID")
private String resourceId;
@Id
@Column(name = "CONFIG_NAME")
private String configName;
@Column(name = "CONFIG_VALUE")
private String configValue;
@ManyToOne(targetEntity = ComputeResourcePreferenceEntity.class, cascade= CascadeType.MERGE)
@JoinColumns({
@JoinColumn(name = "GATEWAY_ID", referencedColumnName = "GATEWAY_ID", nullable = false),
@JoinColumn(name = "RESOURCE_ID", referencedColumnName = "RESOURCE_ID", nullable = false)
})
private ComputeResourcePreferenceEntity computeResourcePreference;
public SSHAccountProvisionerConfiguration() {}
public SSHAccountProvisionerConfiguration(String configName, String configValue, ComputeResourcePreferenceEntity computeResourcePreference) {
this.gatewayId = computeResourcePreference.getGatewayId();
this.resourceId = computeResourcePreference.getComputeResourceId();
this.configName = configName;
this.configValue = configValue;
this.computeResourcePreference = computeResourcePreference;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getResourceId() {
return resourceId;
}
public void setResourceId(String resourceId) {
this.resourceId = resourceId;
}
public String getConfigName() {
return configName;
}
public void setConfigName(String configName) {
this.configName = configName;
}
public String getConfigValue() {
return configValue;
}
public void setConfigValue(String configValue) {
this.configValue = configValue;
}
public ComputeResourcePreferenceEntity getComputeResourcePreference() {
return computeResourcePreference;
}
public void setComputeResourcePreference(ComputeResourcePreferenceEntity computeResourcePreference) {
this.computeResourcePreference = computeResourcePreference;
}
}
| 978 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ApplicationDeploymentEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.parallelism.ApplicationParallelismType;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
/**
* The persistent class for the application_deployment database table.
*/
@Entity
@Table(name = "APPLICATION_DEPLOYMENT")
public class ApplicationDeploymentEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "DEPLOYMENT_ID")
private String appDeploymentId;
@Column(name = "APPLICATION_DESC")
private String appDeploymentDescription;
@Column(name = "CREATION_TIME", nullable = false, updatable = false)
private Timestamp creationTime;
@Column(name = "ENV_MODULE_LOAD_CMD")
private String envModuleLoadCmd;
@Column(name = "EXECUTABLE_PATH")
private String executablePath;
@Column(name = "GATEWAY_ID", nullable = false, updatable = false)
private String gatewayId;
@Column(name = "parallelism")
@Enumerated(EnumType.STRING)
private ApplicationParallelismType parallelism;
@Column(name = "UPDATE_TIME", nullable = false)
private Timestamp updateTime;
@Column(name = "COMPUTE_HOSTID")
private String computeHostId;
@Column(name = "APP_MODULE_ID")
private String appModuleId;
@Column(name = "DEFAULT_NODE_COUNT")
private int defaultNodeCount;
@Column(name = "DEFAULT_CPU_COUNT")
private int defaultCPUCount;
@Column(name = "DEFAULT_WALLTIME")
private int defaultWallTime;
@Column(name = "DEFAULT_QUEUE_NAME")
private String defaultQueueName;
@Column(name = "EDITABLE_BY_USER")
private boolean editableByUser;
@OneToMany(targetEntity = ModuleLoadCmdEntity.class, cascade = CascadeType.ALL, orphanRemoval = true,
mappedBy = "applicationDeployment", fetch = FetchType.EAGER)
private List<ModuleLoadCmdEntity> moduleLoadCmds;
@OneToMany(targetEntity = AppEnvironmentEntity.class, cascade = CascadeType.ALL, orphanRemoval = true,
mappedBy = "applicationDeployment", fetch = FetchType.EAGER)
private List<AppEnvironmentEntity> setEnvironment;
@OneToMany(targetEntity = LibraryPrependPathEntity.class, cascade = CascadeType.ALL, orphanRemoval = true,
mappedBy = "applicationDeployment", fetch = FetchType.EAGER)
private List<LibraryPrependPathEntity> libPrependPaths;
@OneToMany(targetEntity = LibraryApendPathEntity.class, cascade = CascadeType.ALL, orphanRemoval = true,
mappedBy = "applicationDeployment", fetch = FetchType.EAGER)
private List<LibraryApendPathEntity> libAppendPaths;
@OneToMany(targetEntity = PrejobCommandEntity.class, cascade = CascadeType.ALL, orphanRemoval = true,
mappedBy = "applicationDeployment", fetch = FetchType.EAGER)
private List<PrejobCommandEntity> preJobCommands;
@OneToMany(targetEntity = PostjobCommandEntity.class, cascade = CascadeType.ALL, orphanRemoval = true,
mappedBy = "applicationDeployment", fetch = FetchType.EAGER)
private List<PostjobCommandEntity> postJobCommands;
public ApplicationDeploymentEntity() {
}
public String getAppDeploymentId() {
return appDeploymentId;
}
public void setAppDeploymentId(String appDeploymentId) {
this.appDeploymentId = appDeploymentId;
}
public String getAppDeploymentDescription() {
return appDeploymentDescription;
}
public void setAppDeploymentDescription(String appDeploymentDescription) {
this.appDeploymentDescription = appDeploymentDescription;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public String getEnvModuleLoadCmd() {
return envModuleLoadCmd;
}
public void setEnvModuleLoadCmd(String envModuleLoadCmd) {
this.envModuleLoadCmd = envModuleLoadCmd;
}
public String getExecutablePath() {
return executablePath;
}
public void setExecutablePath(String executablePath) {
this.executablePath = executablePath;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public ApplicationParallelismType getParallelism() {
return parallelism;
}
public void setParallelism(ApplicationParallelismType parallelism) {
this.parallelism = parallelism;
}
public Timestamp getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
}
public String getComputeHostId() {
return computeHostId;
}
public void setComputeHostId(String computeHostId) {
this.computeHostId = computeHostId;
}
public String getAppModuleId() {
return appModuleId;
}
public void setAppModuleId(String appModuleId) {
this.appModuleId = appModuleId;
}
public int getDefaultNodeCount() {
return defaultNodeCount;
}
public void setDefaultNodeCount(int defaultNodeCount) {
this.defaultNodeCount = defaultNodeCount;
}
public int getDefaultCPUCount() {
return defaultCPUCount;
}
public void setDefaultCPUCount(int defaultCPUCount) {
this.defaultCPUCount = defaultCPUCount;
}
public int getDefaultWallTime() {
return defaultWallTime;
}
public void setDefaultWallTime(int defaultWallTime) {
this.defaultWallTime = defaultWallTime;
}
public String getDefaultQueueName() {
return defaultQueueName;
}
public void setDefaultQueueName(String defaultQueueName) {
this.defaultQueueName = defaultQueueName;
}
public boolean getEditableByUser() {
return editableByUser;
}
public void setEditableByUser(boolean editableByUser) {
this.editableByUser = editableByUser;
}
public List<ModuleLoadCmdEntity> getModuleLoadCmds() {
return moduleLoadCmds;
}
public void setModuleLoadCmds(List<ModuleLoadCmdEntity> moduleLoadCmds) {
this.moduleLoadCmds = moduleLoadCmds;
}
public List<AppEnvironmentEntity> getSetEnvironment() {
return setEnvironment;
}
public void setSetEnvironment(List<AppEnvironmentEntity> setEnvironment) {
this.setEnvironment = setEnvironment;
}
public List<LibraryPrependPathEntity> getLibPrependPaths() {
return libPrependPaths;
}
public void setLibPrependPaths(List<LibraryPrependPathEntity> libPrependPaths) {
this.libPrependPaths = libPrependPaths;
}
public List<LibraryApendPathEntity> getLibAppendPaths() {
return libAppendPaths;
}
public void setLibAppendPaths(List<LibraryApendPathEntity> libAppendPaths) {
this.libAppendPaths = libAppendPaths;
}
public List<PrejobCommandEntity> getPreJobCommands() {
return preJobCommands;
}
public void setPreJobCommands(List<PrejobCommandEntity> preJobCommands) {
this.preJobCommands = preJobCommands;
}
public List<PostjobCommandEntity> getPostJobCommands() {
return postJobCommands;
}
public void setPostJobCommands(List<PostjobCommandEntity> postJobCommands) {
this.postJobCommands = postJobCommands;
}
}
| 979 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/PostjobCommandEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.openjpa.persistence.jdbc.ForeignKey;
import org.apache.openjpa.persistence.jdbc.ForeignKeyAction;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the postjob_command database table.
*/
@Entity
@Table(name = "POSTJOB_COMMAND")
@IdClass(PostjobCommandPK.class)
public class PostjobCommandEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "APPDEPLOYMENT_ID")
private String appdeploymentId;
@Id
@Column(name = "COMMAND")
private String command;
@Column(name = "COMMAND_ORDER")
private int commandOrder;
@ManyToOne(targetEntity = ApplicationDeploymentEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "APPDEPLOYMENT_ID")
@ForeignKey(deleteAction = ForeignKeyAction.CASCADE)
private ApplicationDeploymentEntity applicationDeployment;
public PostjobCommandEntity() {
}
public String getAppdeploymentId() {
return appdeploymentId;
}
public void setAppdeploymentId(String appdeploymentId) {
this.appdeploymentId = appdeploymentId;
}
public String getCommand() {
return command;
}
public void setCommand(String command) {
this.command = command;
}
public int getCommandOrder() { return commandOrder; }
public void setCommandOrder(int commandOrder) { this.commandOrder = commandOrder; }
public ApplicationDeploymentEntity getApplicationDeployment() {
return applicationDeployment;
}
public void setApplicationDeployment(ApplicationDeploymentEntity applicationDeployment) {
this.applicationDeployment = applicationDeployment;
}
} | 980 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/LibraryAppendPathPK.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
public class LibraryAppendPathPK implements Serializable{
private static final long serialVersionUID = 1L;
private String deploymentId;
private String name;
public String getDeploymentId() {
return deploymentId;
}
public void setDeploymentId(String deploymentId) {
this.deploymentId = deploymentId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof LibraryAppendPathPK)) return false;
LibraryAppendPathPK that = (LibraryAppendPathPK) o;
if (!deploymentId.equals(that.deploymentId)) return false;
return name.equals(that.name);
}
@Override
public int hashCode() {
int result = deploymentId.hashCode();
result = 31 * result + name.hashCode();
return result;
}
}
| 981 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GridftpEndpointEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the gridftp_endpoint database table.
*/
@Entity
@Table(name = "GRIDFTP_ENDPOINT")
@IdClass(GridftpEndpointPK.class)
public class GridftpEndpointEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "DATA_MOVEMENT_INTERFACE_ID")
private String dataMovementInterfaceId;
@Id
@Column(name = "ENDPOINT")
private String endpoint;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "UPDATE_TIME")
private Timestamp updateTime;
@ManyToOne(cascade= CascadeType.MERGE)
@JoinColumn(name = "DATA_MOVEMENT_INTERFACE_ID")
private GridftpDataMovementEntity gridftpDataMovement;
public GridftpEndpointEntity() {
}
public String getDataMovementInterfaceId() {
return dataMovementInterfaceId;
}
public void setDataMovementInterfaceId(String dataMovementInterfaceId) {
this.dataMovementInterfaceId = dataMovementInterfaceId;
}
public String getEndpoint() {
return endpoint;
}
public void setEndpoint(String endpoint) {
this.endpoint = endpoint;
}
public GridftpDataMovementEntity getGridftpDataMovement() {
return gridftpDataMovement;
}
public void setGridftpDataMovement(GridftpDataMovementEntity gridftpDataMovement) {
this.gridftpDataMovement = gridftpDataMovement;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public Timestamp getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
}
} | 982 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/StorageInterfacePK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the storage_interface database table.
*
*/
public class StorageInterfacePK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String storageResourceId;
private String dataMovementInterfaceId;
public StorageInterfacePK() {
}
public String getStorageResourceId() {
return storageResourceId;
}
public void setStorageResourceId(String storageResourceId) {
this.storageResourceId = storageResourceId;
}
public String getDataMovementInterfaceId() {
return dataMovementInterfaceId;
}
public void setDataMovementInterfaceId(String dataMovementInterfaceId) {
this.dataMovementInterfaceId = dataMovementInterfaceId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof StorageInterfacePK)) {
return false;
}
StorageInterfacePK castOther = (StorageInterfacePK)other;
return
this.storageResourceId.equals(castOther.storageResourceId)
&& this.dataMovementInterfaceId.equals(castOther.dataMovementInterfaceId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.storageResourceId.hashCode();
hash = hash * prime + this.dataMovementInterfaceId.hashCode();
return hash;
}
} | 983 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GroupComputeResourcePrefPK.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the group_compute_resource_preference database table.
*/
public class GroupComputeResourcePrefPK implements Serializable {
private static final long serialVersionUID = 1L;
private String computeResourceId;
private String groupResourceProfileId;
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public String getGroupResourceProfileId() {
return groupResourceProfileId;
}
public void setGroupResourceProfileId(String groupResourceProfileId) {
this.groupResourceProfileId = groupResourceProfileId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GroupComputeResourcePrefPK that = (GroupComputeResourcePrefPK) o;
if (computeResourceId != null ? !computeResourceId.equals(that.computeResourceId) : that.computeResourceId != null)
return false;
return groupResourceProfileId != null ? groupResourceProfileId.equals(that.groupResourceProfileId) : that.groupResourceProfileId == null;
}
@Override
public int hashCode() {
int result = computeResourceId != null ? computeResourceId.hashCode() : 0;
result = 31 * result + (groupResourceProfileId != null ? groupResourceProfileId.hashCode() : 0);
return result;
}
}
| 984 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ComputeResourcePolicyEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.openjpa.persistence.jdbc.ForeignKey;
import org.apache.openjpa.persistence.jdbc.ForeignKeyAction;
import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.List;
/**
* The persistent class for the compute_resource_policy database table.
*/
@Entity
@Table(name = "COMPUTE_RESOURCE_POLICY")
public class ComputeResourcePolicyEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "RESOURCE_POLICY_ID")
private String resourcePolicyId;
@Column(name = "COMPUTE_RESOURCE_ID")
private String computeResourceId;
@Column(name = "GROUP_RESOURCE_PROFILE_ID")
private String groupResourceProfileId;
// TODO: Store COMPUTE_RESOURCE_ID and QUEUE_NAME in table so it can FK to BATCH_QUEUE
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(name="COMPUTE_RESOURCE_POLICY_QUEUES", joinColumns = {
@JoinColumn(name = "RESOURCE_POLICY_ID")})
@Column(name = "QUEUE_NAME")
private List<String> allowedBatchQueues;
@ManyToOne(targetEntity = GroupResourceProfileEntity.class)
@JoinColumn(name = "GROUP_RESOURCE_PROFILE_ID", nullable = false, updatable = false)
@ForeignKey(deleteAction = ForeignKeyAction.CASCADE)
private GroupResourceProfileEntity groupResourceProfile;
public ComputeResourcePolicyEntity() {
}
public String getResourcePolicyId() {
return resourcePolicyId;
}
public void setResourcePolicyId(String resourcePolicyId) {
this.resourcePolicyId = resourcePolicyId;
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public String getGroupResourceProfileId() {
return groupResourceProfileId;
}
public void setGroupResourceProfileId(String groupResourceProfileId) {
this.groupResourceProfileId = groupResourceProfileId;
}
public List<String> getAllowedBatchQueues() {
return allowedBatchQueues;
}
public void setAllowedBatchQueues(List<String> allowedBatchQueues) {
this.allowedBatchQueues = allowedBatchQueues;
}
public GroupResourceProfileEntity getGroupResourceProfile() {
return groupResourceProfile;
}
public void setGroupResourceProfile(GroupResourceProfileEntity groupResourceProfile) {
this.groupResourceProfile = groupResourceProfile;
}
}
| 985 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/UserResourceProfilePK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the user_resource_profile database table.
*
*/
public class UserResourceProfilePK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String userId;
private String gatewayId;
public UserResourceProfilePK() {
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof UserResourceProfilePK)) {
return false;
}
UserResourceProfilePK castOther = (UserResourceProfilePK)other;
return
this.userId.equals(castOther.userId)
&& this.gatewayId.equals(castOther.gatewayId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.userId.hashCode();
hash = hash * prime + this.gatewayId.hashCode();
return hash;
}
}
| 986 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/LocalSubmissionEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.data.movement.SecurityProtocol;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the local_submission database table.
*/
@Entity
@Table(name = "LOCAL_SUBMISSION")
public class LocalSubmissionEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "JOB_SUBMISSION_INTERFACE_ID")
private String jobSubmissionInterfaceId;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "UPDATE_TIME")
private Timestamp updateTime;
@Column(name = "RESOURCE_JOB_MANAGER_ID")
private String resourceJobManagerId;
@Column(name = "SECURITY_PROTOCOL")
@Enumerated(EnumType.STRING)
private SecurityProtocol securityProtocol;
@ManyToOne(cascade= CascadeType.MERGE)
@JoinColumn(name = "RESOURCE_JOB_MANAGER_ID")
private ResourceJobManagerEntity resourceJobManager;
public LocalSubmissionEntity() {
}
public String getJobSubmissionInterfaceId() {
return jobSubmissionInterfaceId;
}
public void setJobSubmissionInterfaceId(String jobSubmissionInterfaceId) {
this.jobSubmissionInterfaceId = jobSubmissionInterfaceId;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public Timestamp getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
}
public String getResourceJobManagerId() {
return resourceJobManagerId;
}
public void setResourceJobManagerId(String resourceJobManagerId) {
this.resourceJobManagerId = resourceJobManagerId;
}
public SecurityProtocol getSecurityProtocol() {
return securityProtocol;
}
public void setSecurityProtocol(SecurityProtocol securityProtocol) {
this.securityProtocol = securityProtocol;
}
public ResourceJobManagerEntity getResourceJobManager() {
return resourceJobManager;
}
public void setResourceJobManager(ResourceJobManagerEntity resourceJobManager) {
this.resourceJobManager = resourceJobManager;
}
} | 987 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/StoragePreferenceEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the storage_preference database table.
*/
@Entity
@Table(name = "STORAGE_PREFERENCE")
@IdClass(StoragePreferencePK.class)
public class StoragePreferenceEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Column(name = "GATEWAY_ID")
@Id
private String gatewayId;
@Column(name = "STORAGE_RESOURCE_ID")
@Id
private String storageResourceId;
@Column(name = "FS_ROOT_LOCATION")
private String fileSystemRootLocation;
@Column(name = "LOGIN_USERNAME")
private String loginUserName;
@Column(name = "RESOURCE_CS_TOKEN")
private String resourceSpecificCredentialStoreToken;
@ManyToOne(targetEntity = GatewayProfileEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "GATEWAY_ID")
private GatewayProfileEntity gatewayProfileResource;
public StoragePreferenceEntity() {
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getStorageResourceId() {
return storageResourceId;
}
public void setStorageResourceId(String storageResourceId) {
this.storageResourceId = storageResourceId;
}
public String getFileSystemRootLocation() {
return fileSystemRootLocation;
}
public void setFileSystemRootLocation(String fileSystemRootLocation) {
this.fileSystemRootLocation = fileSystemRootLocation;
}
public String getLoginUserName() {
return loginUserName;
}
public void setLoginUserName(String loginUserName) {
this.loginUserName = loginUserName;
}
public String getResourceSpecificCredentialStoreToken() {
return resourceSpecificCredentialStoreToken;
}
public void setResourceSpecificCredentialStoreToken(String resourceSpecificCredentialStoreToken) {
this.resourceSpecificCredentialStoreToken = resourceSpecificCredentialStoreToken;
}
public GatewayProfileEntity getGatewayProfileResource() {
return gatewayProfileResource;
}
public void setGatewayProfileResource(GatewayProfileEntity gatewayProfileResource) {
this.gatewayProfileResource = gatewayProfileResource;
}
}
| 988 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/UserStoragePreferencePK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the user_storage_preference database table.
*
*/
public class UserStoragePreferencePK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String storageResourceId;
private String userId;
private String gatewayId;
public UserStoragePreferencePK() {
}
public String getStorageResourceId() {
return storageResourceId;
}
public void setStorageResourceId(String storageResourceId) {
this.storageResourceId = storageResourceId;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof UserStoragePreferencePK)) {
return false;
}
UserStoragePreferencePK castOther = (UserStoragePreferencePK)other;
return
this.storageResourceId.equals(castOther.storageResourceId)
&& this.userId.equals(castOther.userId)
&& this.gatewayId.equals(castOther.gatewayId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.storageResourceId.hashCode();
hash = hash * prime + this.userId.hashCode();
hash = hash * prime + this.gatewayId.hashCode();
return hash;
}
}
| 989 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GlobusGkEndpointPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the globus_gk_endpoint database table.
*
*/
public class GlobusGkEndpointPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String submissionId;
private String endpoint;
public GlobusGkEndpointPK() {
}
public String getSubmissionId() {
return submissionId;
}
public void setSubmissionId(String submissionId) {
this.submissionId = submissionId;
}
public String getEndpoint() {
return endpoint;
}
public void setEndpoint(String endpoint) {
this.endpoint = endpoint;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof GlobusGkEndpointPK)) {
return false;
}
GlobusGkEndpointPK castOther = (GlobusGkEndpointPK)other;
return
this.submissionId.equals(castOther.submissionId)
&& this.endpoint.equals(castOther.endpoint);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.submissionId.hashCode();
hash = hash * prime + this.endpoint.hashCode();
return hash;
}
} | 990 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GsisshPostjobcommandEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the gsissh_postjobcommand database table.
*
*/
@Entity
@Table(name = "GSISSH_POSTJOBCOMMAND")
@IdClass(GsisshPostjobcommandPK.class)
public class GsisshPostjobcommandEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "SUBMISSION_ID")
private String submissionId;
@Id
@Column(name = "COMMAND")
private String command;
public GsisshPostjobcommandEntity() {
}
public String getSubmissionId() {
return submissionId;
}
public void setSubmissionId(String submissionId) {
this.submissionId = submissionId;
}
public String getCommand() {
return command;
}
public void setCommand(String command) {
this.command = command;
}
} | 991 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/LibraryApendPathEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.openjpa.persistence.jdbc.ForeignKey;
import org.apache.openjpa.persistence.jdbc.ForeignKeyAction;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the library_apend_path database table.
*/
@Entity
@Table(name = "LIBRARY_APEND_PATH")
@IdClass(LibraryAppendPathPK.class)
public class LibraryApendPathEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "DEPLOYMENT_ID")
private String deploymentId;
@Column(name = "VALUE")
private String value;
@Id
@Column(name = "NAME")
private String name;
@ManyToOne(targetEntity = ApplicationDeploymentEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "DEPLOYMENT_ID")
@ForeignKey(deleteAction = ForeignKeyAction.CASCADE)
private ApplicationDeploymentEntity applicationDeployment;
public LibraryApendPathEntity() {
}
public String getDeploymentId() {
return deploymentId;
}
public void setDeploymentId(String deploymentId) {
this.deploymentId = deploymentId;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ApplicationDeploymentEntity getApplicationDeployment() {
return applicationDeployment;
}
public void setApplicationDeployment(ApplicationDeploymentEntity applicationDeployment) {
this.applicationDeployment = applicationDeployment;
}
} | 992 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ApplicationInterfaceEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
/**
* The persistent class for the application_interface database table.
*
*/
@Entity
@Table(name="APPLICATION_INTERFACE")
public class ApplicationInterfaceEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name="INTERFACE_ID")
private String applicationInterfaceId;
@Column(name="APPLICATION_DESCRIPTION")
private String applicationDescription;
@Column(name="APPLICATION_NAME")
private String applicationName;
@Column(name="ARCHIVE_WORKING_DIRECTORY")
private boolean archiveWorkingDirectory;
@Column(name="CREATION_TIME", nullable = false, updatable = false)
private Timestamp creationTime;
@Column(name="GATEWAY_ID", nullable = false, updatable = false)
private String gatewayId;
@Column(name="UPDATE_TIME", nullable = false)
private Timestamp updateTime;
@Column(name="HAS_OPTIONAL_FILE_INPUTS")
private boolean hasOptionalFileInputs;
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(name="APP_MODULE_MAPPING", joinColumns = @JoinColumn(name="INTERFACE_ID"))
@Column(name = "MODULE_ID")
private List<String> applicationModules;
@OneToMany(targetEntity = ApplicationInputEntity.class, cascade = CascadeType.ALL, orphanRemoval = true,
mappedBy = "applicationInterface", fetch = FetchType.EAGER)
private List<ApplicationInputEntity> applicationInputs;
@OneToMany(targetEntity = ApplicationOutputEntity.class, cascade = CascadeType.ALL, orphanRemoval = true,
mappedBy = "applicationInterface", fetch = FetchType.EAGER)
private List<ApplicationOutputEntity> applicationOutputs;
public ApplicationInterfaceEntity() {
}
public String getApplicationInterfaceId() {
return applicationInterfaceId;
}
public void setApplicationInterfaceId(String applicationInterfaceId) {
this.applicationInterfaceId = applicationInterfaceId;
}
public String getApplicationDescription() {
return applicationDescription;
}
public void setApplicationDescription(String applicationDescription) {
this.applicationDescription = applicationDescription;
}
public String getApplicationName() {
return applicationName;
}
public void setApplicationName(String applicationName) {
this.applicationName = applicationName;
}
public boolean getArchiveWorkingDirectory() {
return archiveWorkingDirectory;
}
public void setArchiveWorkingDirectory(boolean archiveWorkingDirectory) {
this.archiveWorkingDirectory = archiveWorkingDirectory;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public Timestamp getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
}
public boolean getHasOptionalFileInputs() {
return hasOptionalFileInputs;
}
public void setHasOptionalFileInputs(boolean hasOptionalFileInputs) {
this.hasOptionalFileInputs = hasOptionalFileInputs;
}
public List<String> getApplicationModules() { return applicationModules; }
public void setApplicationModules(List<String> applicationModules) { this.applicationModules = applicationModules; }
public List<ApplicationInputEntity> getApplicationInputs() {
return applicationInputs;
}
public void setApplicationInputs(List<ApplicationInputEntity> applicationInputs) {
this.applicationInputs = applicationInputs;
}
public List<ApplicationOutputEntity> getApplicationOutputs() {
return applicationOutputs;
}
public void setApplicationOutputs(List<ApplicationOutputEntity> applicationOutputs) {
this.applicationOutputs = applicationOutputs;
}
}
| 993 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/SshJobSubmissionEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.common.utils.AiravataUtils;
import org.apache.airavata.model.data.movement.SecurityProtocol;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the ssh_job_submission database table.
*
*/
@Entity
@Table(name="SSH_JOB_SUBMISSION")
public class SshJobSubmissionEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name="JOB_SUBMISSION_INTERFACE_ID")
private String jobSubmissionInterfaceId;
@ManyToOne(cascade= CascadeType.MERGE)
@JoinColumn(name = "RESOURCE_JOB_MANAGER_ID", nullable = false, updatable = false)
private ResourceJobManagerEntity resourceJobManager;
@Column(name="ALTERNATIVE_SSH_HOSTNAME")
private String alternativeSshHostname;
@Column(name="CREATION_TIME", nullable = false, updatable = false)
private Timestamp creationTime = AiravataUtils.getCurrentTimestamp();
@Column(name="MONITOR_MODE")
private String monitorMode;
@Column(name="SECURITY_PROTOCOL")
@Enumerated(EnumType.STRING)
private SecurityProtocol securityProtocol;
@Column(name="SSH_PORT")
private int sshPort;
@Column(name="UPDATE_TIME")
private Timestamp updateTime;
public SshJobSubmissionEntity() {
}
public String getJobSubmissionInterfaceId() {
return jobSubmissionInterfaceId;
}
public void setJobSubmissionInterfaceId(String jobSubmissionInterfaceId) {
this.jobSubmissionInterfaceId = jobSubmissionInterfaceId;
}
public String getAlternativeSshHostname() {
return alternativeSshHostname;
}
public void setAlternativeSshHostname(String alternativeSshHostname) {
this.alternativeSshHostname = alternativeSshHostname;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public String getMonitorMode() {
return monitorMode;
}
public void setMonitorMode(String monitorMode) {
this.monitorMode = monitorMode;
}
public SecurityProtocol getSecurityProtocol() {
return securityProtocol;
}
public void setSecurityProtocol(SecurityProtocol securityProtocol) {
this.securityProtocol = securityProtocol;
}
public int getSshPort() {
return sshPort;
}
public void setSshPort(int sshPort) {
this.sshPort = sshPort;
}
public Timestamp getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
}
public ResourceJobManagerEntity getResourceJobManager() {
return resourceJobManager;
}
public void setResourceJobManager(ResourceJobManagerEntity resourceJobManager) {
this.resourceJobManager = resourceJobManager;
}
}
| 994 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/BatchQueueResourcePolicyEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.openjpa.persistence.jdbc.ForeignKey;
import org.apache.openjpa.persistence.jdbc.ForeignKeyAction;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import java.io.Serializable;
/**
* The persistent class for the batch_queue_resource_policy database table.
*/
@Entity
@Table(name = "BATCH_QUEUE_RESOURCE_POLICY")
public class BatchQueueResourcePolicyEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "RESOURCE_POLICY_ID")
private String resourcePolicyId;
@Column(name = "COMPUTE_RESOURCE_ID")
private String computeResourceId;
@Column(name = "GROUP_RESOURCE_PROFILE_ID")
private String groupResourceProfileId;
@Column(name = "QUEUE_NAME")
private String queuename;
@Column(name = "MAX_ALLOWED_NODES")
private Integer maxAllowedNodes;
@Column(name = "MAX_ALLOWED_CORES")
private Integer maxAllowedCores;
@Column(name = "MAX_ALLOWED_WALLTIME")
private Integer maxAllowedWalltime;
@ManyToOne(targetEntity = GroupResourceProfileEntity.class)
@JoinColumn(name = "GROUP_RESOURCE_PROFILE_ID", nullable = false, updatable = false)
@ForeignKey(deleteAction = ForeignKeyAction.CASCADE)
private GroupResourceProfileEntity groupResourceProfile;
public BatchQueueResourcePolicyEntity() {
}
public String getResourcePolicyId() {
return resourcePolicyId;
}
public void setResourcePolicyId(String resourcePolicyId) {
this.resourcePolicyId = resourcePolicyId;
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public String getGroupResourceProfileId() {
return groupResourceProfileId;
}
public void setGroupResourceProfileId(String groupResourceProfileId) {
this.groupResourceProfileId = groupResourceProfileId;
}
public String getQueuename() {
return queuename;
}
public void setQueuename(String queuename) {
this.queuename = queuename;
}
public Integer getMaxAllowedNodes() {
return maxAllowedNodes;
}
public void setMaxAllowedNodes(Integer maxAllowedNodes) {
this.maxAllowedNodes = maxAllowedNodes;
}
public Integer getMaxAllowedCores() {
return maxAllowedCores;
}
public void setMaxAllowedCores(Integer maxAllowedCores) {
this.maxAllowedCores = maxAllowedCores;
}
public Integer getMaxAllowedWalltime() {
return maxAllowedWalltime;
}
public void setMaxAllowedWalltime(Integer maxAllowedWalltime) {
this.maxAllowedWalltime = maxAllowedWalltime;
}
public GroupResourceProfileEntity getGroupResourceProfile() {
return groupResourceProfile;
}
public void setGroupResourceProfile(GroupResourceProfileEntity groupResourceProfile) {
this.groupResourceProfile = groupResourceProfile;
}
}
| 995 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GlobusSubmissionEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.data.movement.SecurityProtocol;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the globus_submission database table.
*
*/
@Entity
@Table(name = "GLOBUS_SUBMISSION")
public class GlobusSubmissionEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "SUBMISSION_ID")
private String submissionId;
@Column(name = "RESOURCE_JOB_MANAGER")
private String resourceJobManager;
@Column(name = "SECURITY_PROTOCAL")
@Enumerated(EnumType.STRING)
private SecurityProtocol securityProtocal;
public GlobusSubmissionEntity() {
}
public String getSubmissionId() {
return submissionId;
}
public void setSubmissionId(String submissionId) {
this.submissionId = submissionId;
}
public String getResourceJobManager() {
return resourceJobManager;
}
public void setResourceJobManager(String resourceJobManager) {
this.resourceJobManager = resourceJobManager;
}
public SecurityProtocol getSecurityProtocal() {
return securityProtocal;
}
public void setSecurityProtocal(SecurityProtocol securityProtocal) {
this.securityProtocal = securityProtocal;
}
} | 996 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/StorageResourceEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
/**
* The persistent class for the storage_resource database table.
*/
@Entity
@Table(name = "STORAGE_RESOURCE")
public class StorageResourceEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "STORAGE_RESOURCE_ID")
private String storageResourceId;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "DESCRIPTION")
private String storageResourceDescription;
@Column(name = "ENABLED")
private boolean enabled;
@Column(name = "HOST_NAME")
private String hostName;
@Column(name = "UPDATE_TIME")
private Timestamp updateTime;
@OneToMany(targetEntity = StorageInterfaceEntity.class, cascade = CascadeType.ALL,
mappedBy = "storageResource", fetch = FetchType.EAGER)
private List<StorageInterfaceEntity> dataMovementInterfaces;
public StorageResourceEntity() {
}
public String getStorageResourceId() {
return storageResourceId;
}
public void setStorageResourceId(String storageResourceId) {
this.storageResourceId = storageResourceId;
}
public String getStorageResourceDescription() {
return storageResourceDescription;
}
public void setStorageResourceDescription(String storageResourceDescription) {
this.storageResourceDescription = storageResourceDescription;
}
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public String getHostName() {
return hostName;
}
public void setHostName(String hostName) {
this.hostName = hostName;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public Timestamp getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
}
public List<StorageInterfaceEntity> getDataMovementInterfaces() {
return dataMovementInterfaces;
}
public void setDataMovementInterfaces(List<StorageInterfaceEntity> dataMovementInterfaces) {
this.dataMovementInterfaces = dataMovementInterfaces;
}
} | 997 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/UserComputeResourcePreferencePK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the user_compute_resource_preference database table.
*
*/
public class UserComputeResourcePreferencePK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String computeResourceId;
private String userId;
private String gatewayId;
public UserComputeResourcePreferencePK() {
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof UserComputeResourcePreferencePK)) {
return false;
}
UserComputeResourcePreferencePK castOther = (UserComputeResourcePreferencePK)other;
return
this.computeResourceId.equals(castOther.computeResourceId)
&& this.userId.equals(castOther.userId)
&& this.gatewayId.equals(castOther.gatewayId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.computeResourceId.hashCode();
hash = hash * prime + this.userId.hashCode();
hash = hash * prime + this.gatewayId.hashCode();
return hash;
}
}
| 998 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ApplicationInputPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the application_input database table.
*
*/
public class ApplicationInputPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String interfaceId;
private String name;
public ApplicationInputPK() {
}
public String getInterfaceId() {
return interfaceId;
}
public void setInterfaceId(String interfaceId) {
this.interfaceId = interfaceId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ApplicationInputPK)) {
return false;
}
ApplicationInputPK castOther = (ApplicationInputPK)other;
return
this.interfaceId.equals(castOther.interfaceId)
&& this.name.equals(castOther.name);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.interfaceId.hashCode();
hash = hash * prime + this.name.hashCode();
return hash;
}
} | 999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.