/** * * 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.app.catalog.model; import javax.persistence.*; import java.io.Serializable; import java.sql.Timestamp; @Entity @Table(name = "APPLICATION_DEPLOYMENT") public class ApplicationDeployment implements Serializable { @Id @Column(name = "DEPLOYMENT_ID") private String deploymentID; @Column(name = "APP_MODULE_ID") private String appModuleID; @Column(name = "COMPUTE_HOSTID") private String hostID; @Column(name = "EXECUTABLE_PATH") private String executablePath; @Column(name = "APPLICATION_DESC") private String applicationDesc; @Column(name = "PARALLELISM") private String parallelism; @Column(name = "GATEWAY_ID") private String gatewayId; @Column(name = "DEFAULT_QUEUE_NAME") private String defaultQueueName; @Column(name = "DEFAULT_NODE_COUNT") private int defaultNodeCount; @Column(name = "DEFAULT_CPU_COUNT") private int defaultCPUCount; @Column(name = "EDITABLE_BY_USER") private boolean editableByUser; @ManyToOne(cascade= CascadeType.MERGE) @JoinColumn(name = "APP_MODULE_ID") private ApplicationModule applicationModule; @ManyToOne(cascade= CascadeType.MERGE) @JoinColumn(name = "COMPUTE_HOSTID") private ComputeResource computeResource; @Column(name = "CREATION_TIME") private Timestamp creationTime; @Column(name = "UPDATE_TIME") private Timestamp updateTime; 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 Timestamp getUpdateTime() { return updateTime; } public void setUpdateTime(Timestamp updateTime) { this.updateTime = updateTime; } public String getDeploymentID() { return deploymentID; } public void setDeploymentID(String deploymentID) { this.deploymentID = deploymentID; } public String getAppModuleID() { return appModuleID; } public void setAppModuleID(String appModuleID) { this.appModuleID = appModuleID; } public String getHostID() { return hostID; } public void setHostID(String hostID) { this.hostID = hostID; } public String getExecutablePath() { return executablePath; } public void setExecutablePath(String executablePath) { this.executablePath = executablePath; } public String getApplicationDesc() { return applicationDesc; } public void setApplicationDesc(String applicationDesc) { this.applicationDesc = applicationDesc; } public ApplicationModule getApplicationModule() { return applicationModule; } public void setApplicationModule(ApplicationModule applicationModule) { this.applicationModule = applicationModule; } public ComputeResource getComputeResource() { return computeResource; } public void setComputeResource(ComputeResource computeResource) { this.computeResource = computeResource; } public String getParallelism() { return parallelism; } public void setParallelism(String parallelism) { this.parallelism = parallelism; } public String getDefaultQueueName() { return defaultQueueName; } public void setDefaultQueueName(String defaultQueueName) { this.defaultQueueName = defaultQueueName; } 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 boolean isEditableByUser() { return editableByUser; } public void setEditableByUser(boolean editableByUser) { this.editableByUser = editableByUser; } }