| /* |
| * 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.hadoop.hive.metastore.model; |
| |
| import java.util.Set; |
| |
| /** |
| * Storage class for ResourcePlan. |
| */ |
| public class MWMResourcePlan { |
| private String name; |
| private String ns; |
| private Integer queryParallelism; |
| private Status status; |
| private Set<MWMPool> pools; |
| private Set<MWMTrigger> triggers; |
| private Set<MWMMapping> mappings; |
| private MWMPool defaultPool; |
| |
| |
| public enum Status { |
| ACTIVE, |
| ENABLED, |
| DISABLED |
| } |
| |
| public MWMResourcePlan() {} |
| |
| public MWMResourcePlan(String name, Integer queryParallelism, Status status) { |
| this.name = name; |
| this.queryParallelism = queryParallelism; |
| this.status = status; |
| } |
| |
| public String getName() { |
| return name; |
| } |
| |
| public void setNs(String name) { |
| this.ns = name; |
| } |
| |
| public String getNs() { |
| return ns; |
| } |
| |
| public void setName(String name) { |
| this.name = name; |
| } |
| |
| public Integer getQueryParallelism() { |
| return queryParallelism; |
| } |
| |
| public void setQueryParallelism(Integer queryParallelism) { |
| this.queryParallelism = queryParallelism; |
| } |
| |
| public Status getStatus() { |
| return status; |
| } |
| |
| public void setStatus(Status status) { |
| this.status = status; |
| } |
| |
| public Set<MWMPool> getPools() { |
| return pools; |
| } |
| |
| public void setPools(Set<MWMPool> pools) { |
| this.pools = pools; |
| } |
| |
| public MWMPool getDefaultPool() { |
| return defaultPool; |
| } |
| |
| public void setDefaultPool(MWMPool defaultPool) { |
| this.defaultPool = defaultPool; |
| } |
| |
| public Set<MWMTrigger> getTriggers() { |
| return triggers; |
| } |
| |
| public void setTriggers(Set<MWMTrigger> triggers) { |
| this.triggers = triggers; |
| } |
| |
| public Set<MWMMapping> getMappings() { |
| return mappings; |
| } |
| |
| public void setMappings(Set<MWMMapping> mappings) { |
| this.mappings = mappings; |
| } |
| } |